/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Settings Container */
.settings-container {
    display: flex;
    height: 100vh;
}

/* Sidebar - Reusing from dashboard */
.sidebar {
    width: 240px;
    background: #f5f4f0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e5e5e5;
}

.sidebar-header {
    padding: 24px;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.logo-text {
    font-size: 22px;
    font-weight: 500;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.logo-arabic {
    font-size: 16px;
    color: #716d52;
    font-weight: 400;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 0 16px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: #e8e7e3;
    color: #1a1a1a;
}

.nav-item.active {
    background: #e8e7e3;
    color: #1a1a1a;
    font-weight: 500;
}

.nav-item svg {
    width: 20px;
    height: 20px;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px;
    border-top: 1px solid #e5e5e5;
}

.nav-item.support {
    margin-bottom: 16px;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-bottom: 16px;
    color: #666;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #e8e7e3;
    border-radius: 8px;
    cursor: pointer;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: #1a1a1a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
}

.user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

.user-role {
    font-size: 12px;
    color: #666;
}

.dropdown-icon {
    color: #666;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.content-header {
    padding: 32px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.content-header h1 {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: #f8f8f8;
    border-color: #d0d0d0;
}

.notification-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #e5e5e5;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-btn:hover {
    border-color: #d0d0d0;
    background: #f8f8f8;
}

.notification-container {
    position: relative;
}

/* Settings Content */
.settings-content {
    flex: 1;
    padding: 0 48px 48px;
}

/* Settings Section */
.settings-section {
    background: #f5f4f0;
    border-radius: 16px;
    padding: 32px;
    margin-top: 32px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 4px;
}

.section-header p {
    font-size: 14px;
    color: #666;
}

/* Avatar Upload */
.avatar-upload {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar-preview {
    width: 64px;
    height: 64px;
    background: #e8e7e3;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-preview svg {
    color: #666;
}

.upload-info {
    flex: 1;
}

.upload-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.upload-hint {
    font-size: 13px;
    color: #666;
}

.select-file-btn {
    padding: 8px 20px;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-file-btn:hover {
    background: #f8f8f8;
    border-color: #d0d0d0;
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.form-group input::placeholder {
    color: #999;
}

/* Password Input */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #666;
}

.toggle-password:hover {
    color: #1a1a1a;
}

/* Password Requirements */
.password-requirements {
    margin-top: 24px;
}

.requirement-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 12px;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.check-icon {
    width: 16px;
    height: 16px;
    color: #95b70f;
    flex-shrink: 0;
}

/* Danger Zone */
.danger-zone {
    margin-bottom: 48px;
}

.delete-account {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
}

.delete-account h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.delete-account p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.delete-btn {
    padding: 10px 24px;
    background: #DC2626;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.delete-btn:hover {
    background: #B91C1C;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 80px;
    }
    
    .nav-item span,
    .user-info,
    .dropdown-icon,
    .logo-arabic {
        display: none;
    }
    
    .content-header,
    .settings-content {
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .settings-section {
        padding: 24px;
    }
    
    .requirement-row {
        grid-template-columns: 1fr;
    }
    
    .delete-account {
        flex-direction: column;
        gap: 16px;
    }
    
    .delete-btn {
        width: 100%;
    }
}

/* Save button styles */
.save-btn {
    margin-top: 20px;
    padding: 12px 24px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.save-btn:hover:not(:disabled) {
    background: #5558e3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Fix notification button clickability and alignment */
.notification-container {
    position: relative;
    display: flex;
    align-items: center;
}

.notification-btn {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 999 !important;
}

/* Ensure dropdown is positioned correctly */
.notification-dropdown {
    z-index: 1000 !important;
}