* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #3787ff 0%, #66a2fb 100%);
}

.login-box {
    background: rgba(255, 255, 255, 0.98);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(78, 101, 255, 0.15);
    width: 90%;
    max-width: 360px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header i {
    font-size: 2.8rem;
    background: linear-gradient(45deg, #4990fb, #6da5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.login-header h2 {
    color: #1a1f36;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.login-header p {
    color: #6b7280;
    font-size: 0.9rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.2rem;
}

.input-group i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 1rem;
}

.input-group input {
    width: 100%;
    padding: 10px 12px 10px 38px;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    background: white;
    border-color: #4E65FF;
    box-shadow: 0 0 0 3px rgba(78, 101, 255, 0.1);
    outline: none;
}

.form-options {
    margin-bottom: 1.2rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #6b7280;
}

.remember-me input[type="checkbox"] {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1.5px solid #4E65FF;
    cursor: pointer;
}

.remember-me input[type="checkbox"]:checked {
    background-color: #4E65FF;
    border-color: #4E65FF;
}

.login-form button {
    width: 100%;
    padding: 10px;
    background: linear-gradient(45deg, #4E65FF, #6B7FFF);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(78, 101, 255, 0.3);
    background: linear-gradient(45deg, #3B52FF, #4E65FF);
}

.login-form button i {
    font-size: 1rem;
}

.privacy-terms {
    margin-top: 1.2rem;
    text-align: center;
    font-size: 0.8rem;
    color: #6b7280;
}

.privacy-terms a {
    color: #4E65FF;
    text-decoration: none;
    font-weight: 500;
}

.privacy-terms a:hover {
    text-decoration: underline;
}

.error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #dc2626;
    font-size: 0.85rem;
}

.error i {
    font-size: 1rem;
}

/* Mobil uyumluluk için medya sorguları */
@media (max-width: 480px) {
    .login-box {
        width: 95%;
        padding: 1.5rem;
    }

    .login-header i {
        font-size: 2.5rem;
    }

    .login-header h2 {
        font-size: 1.3rem;
    }
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.logout-btn {
    padding: 8px 16px;
    background: #3776d8;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}



.logo {
    display: flex;
    align-items: center; /* Dikeyde ortalama */
    justify-content: center; /* Yatayda ortalama */
    gap: 10px; /* Resim ile metin arasındaki boşluk */
}

.logo img {
    width: 30px; /* Logonun boyutunu ayarlayabilirsin */
    height: 30px;
}

.logo span {
    font-size: 24px; /* Yazı boyutunu ayarlayabilirsin */
    font-weight: bold;
}

.device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.device-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #eef0f2;
}

.device-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.device-card h4 {
    color: #2c3e50;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.device-card p {
    color: #6c757d;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.device-card p:before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.device-card p:nth-child(2):before {
    background-color: #20c997;
}

.device-card p:nth-child(3):before {
    background-color: #fd7e14;
}

.device-card p:nth-child(4):before {
    background-color: #4E65FF;
}

.device-card p:nth-child(5):before {
    background-color: #ab0cb1;
}

.device-card p:nth-child(6):before {
    background-color: #a10505;
}

.add-device-section {
    margin-top: 2rem;
}

.add-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    border-radius: 25px;
    padding: 12px 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 1.5rem;
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
    background: linear-gradient(45deg, #218838, #1ba385);
}

.device-list {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.available-device {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eef0f2;
    transition: background-color 0.2s;
}

.available-device:hover {
    background-color: #f8f9fa;
}

.available-device span {
    color: #2c3e50;
    font-weight: 500;
}

.request-btn {
    background: linear-gradient(45deg, #17a2b8, #138496);
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.request-btn:hover {
    background: linear-gradient(45deg, #138496, #117a8b);
    transform: translateX(2px);
}

.requests-container {
    margin: 2rem 0;
}

.requests-list {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.requests-container h3, .devices-container h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
}

.requests-container h3:before, .devices-container h3:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: #007bff;
    border-radius: 2px;
}

.request-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    background: #f8f9fa;
    transition: transform 0.2s;
}

.request-card:hover {
    transform: translateX(5px);
}

.request-card.pending {
    border-left: 4px solid #ffc107;
    background: linear-gradient(to right, #fff3cd, #ffffff);
}

.request-card.rejected {
    border-left: 4px solid #dc3545;
    background: linear-gradient(to right, #f8d7da, #ffffff);
}

.request-status {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.request-card.pending .request-status {
    color: #856404;
    background: #fff3cd;
    border: 1px solid #ffeeba;
}

.request-card.rejected .request-status {
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}

.device-name {
    font-weight: 500;
    color: #2c3e50;
    font-size: 1rem;
}

/* Modal Stiller */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: white;
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
}

.close:hover {
    color: #343a40;
}

.modal h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 1rem;
}

.modal-body p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.empty-device-list {
    text-align: center;
    padding: 2rem 1rem;
    color: #6b7280;
}

.empty-device-list i {
    font-size: 2rem;
    color: #4E65FF;
    margin-bottom: 1rem;
}

.empty-device-list p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
}

.empty-device-list span {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Tab Stilleri */
.dashboard-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 1rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    color: #6c757d;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.tab-btn i {
    font-size: 1.1rem;
}

.tab-btn:hover {
    background: #f8f9fa;
    color: #4E65FF;
}

.tab-btn.active {
    background: #4E65FF;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Profil Kartı Stilleri */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(78, 101, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #4E65FF, #6B7FFF);
}

.profile-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: #f8f9ff;
    transition: all 0.3s ease;
}

.profile-item:last-child {
    margin-bottom: 0;
}

.profile-item:hover {
    transform: translateX(5px);
    background: #f0f3ff;
    box-shadow: 0 4px 15px rgba(78, 101, 255, 0.05);
}

.profile-item i {
    font-size: 1.5rem;
    color: #4E65FF;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(78, 101, 255, 0.1);
}

.profile-info {
    margin-left: 1.2rem;
    flex: 1;
}

.profile-info label {
    display: block;
    font-size: 0.85rem;
    color: #8896ab;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.profile-info span {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 500;
    display: block;
    word-break: break-word;
}

/* Profil başlığı için özel stil */
.profile-container h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 1.2rem;
    display: flex;
    align-items: center;
}

.profile-container h3::before {
    content: '';
    position: absolute;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #4E65FF, #6B7FFF);
    border-radius: 2px;
}

/* Mobil uyumluluk için */
@media (max-width: 480px) {
    .profile-card {
        padding: 1.5rem;
    }

    .profile-item {
        padding: 1rem;
    }

    .profile-info span {
        font-size: 1rem;
    }

    .profile-item i {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .profile-container h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
} 


/* Info Box Styles */
.info-box {
    background: #e8f4ff;
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-box i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 0;
    flex-shrink: 0;
}

.info-box p {
    color: #2c3e50;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 480px) {
    .info-box {
        padding: 0.8rem;
    }
    
    .info-box p {
        font-size: 0.85rem;
    }
}

.owners-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.owners-container h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.owner-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.owner-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #eef0f2;
}

.owner-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.owner-card span {
    font-size: 1rem;
    color: #374151;
    font-weight: 500;
}

.delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background: #c82333;
}

.add-btn {
    display: block;
    width: 100%;
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-btn:hover {
    background: linear-gradient(45deg, #218838, #1ba385);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* Form Stilleri */
#addOwnerForm {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#addOwnerForm input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

#addOwnerForm button {
    background: #007bff;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#addOwnerForm button:hover {
    background: #0056b3;
}

/* Mobil Uyum */
@media (max-width: 480px) {
    .owners-container {
        padding: 1rem;
    }

    .owner-card {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .delete-btn {
        width: 100%;
    }
}
