/* Root variables for theming */
:root {
    --primary: #f9fafb;
    --secondary: #f3f4f6;
    --accent: #3b82f6;
    --text: #1f2937;
    --text-secondary: #6b7280;
    --border: #e5e7eb;
    --sidebar-bg: #1f493d;
    --sidebar-text: #e5e7eb;
}

[data-theme="dark"] {
    --primary: #1e293b;
    --secondary: #374151;
    --accent: #60a5fa;
    --text: #e5e7eb;
    --text-secondary: #9ca3af;
    --border: #4b5563;
    --sidebar-bg:#1f493d;
    --sidebar-text: #d1d5db;
}
/* General Layout */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    background: #f5f7fa;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Left Sidebar */
.sidebar {
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    width: 220px;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    position: fixed;
    height: 100%;
    overflow-y: auto;
}

.sidebar-header {
    margin-bottom: 1.5rem;
}

.sidebar .logo {
    color: var(--sidebar-text);
    font-size: 1.5rem;
    font-weight: 600;
}

.sidebar-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-nav a {
    color: var(--sidebar-text);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-nav a.active {
    background: var(--accent);
    color: var(--primary);
}

.sidebar-account {
    margin-top: auto;
}

.sidebar-account ul {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.sidebar-account a {
    color: var(--sidebar-text);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.sidebar-account a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    padding: 0.75rem 0;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Main Content Area */
.main-content {
    width: calc(100% - 250px);
    margin-left: 250px;
    padding: 30px 40px;
    background: #f5f7fa;
}

/* Header Section */
.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a2a44;
    margin-bottom: 20px;
}

.tab-nav {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #e6e6e6;
}

.tab {
    font-size: 16px;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    padding-bottom: 10px;
    transition: color 0.2s ease;
}

.tab:hover {
    color: #1a2a44;
}

.tab.active {
    color: #1a2a44;
    font-weight: 700;
    border-bottom: 2px solid #3b82f6;
}

/* Settings Page Styles */
.settings-container {
    display: flex;
    gap: 1.5rem;
}

.settings-nav {
    width: 200px;
}

.settings-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-nav a {
    color: var(--text);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.settings-nav a:hover {
    background: var(--secondary);
}

.settings-nav a.active {
    background: var(--accent);
    color: var(--primary);
}

.settings-content {
    flex: 1;
    background: var(--primary);
    border-radius: 6px;
    border: 1px solid var(--border);
    padding: 1.5rem;
}

.settings-section {
    max-width: 500px;
}

.settings-section h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.settings-section form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Form Fields */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #1a2a44;
    margin-bottom: 8px;
    display: block;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-group input:focus, .form-group select:focus {
    border-color: #3b82f6;
}

.form-group select {
    appearance: none;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24"><path fill="%2364748b" d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center;
    background-size: 12px;
}

.helper-text {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 5px;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #1a2a44;
}

.checkbox-label input {
    margin-right: 10px;
}

/* Password Management */
.password-section {
    margin-top: 30px;
}

.password-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a2a44;
    margin-bottom: 20px;
}

.password-requirements {
    background: #f9fafb;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 12px;
    color: #64748b;
}

.password-requirements p {
    margin: 5px 0;
}

.password-requirements p:first-child {
    font-weight: 500;
    color: #1a2a44;
}

/* Action Buttons */
.save-button, .update-password-button {
    padding: 10px 20px;
    background: #228B22;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.save-button:hover, .update-password-button:hover {
    background: #2563eb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        padding: 15px;
    }

    .main-content {
        width: 100%;
        margin-left: 0;
        padding: 15px;
    }

    .settings-section {
        flex-direction: column;
        gap: 20px;
    }

    .settings-left, .settings-right {
        padding: 20px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .tab-nav {
        gap: 15px;
    }

    .tab {
        font-size: 14px;
    }

    .form-group input, .form-group select {
        font-size: 14px;
    }

    .logo-image {
        width: 32px;
        height: 32px;
    }

    .logo-text {
        font-size: 18px;
    }
}

@media (max-width: 1024px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }

    .settings-container {
        flex-direction: column;
    }

    .settings-nav {
        width: 100%;
    }

    .settings-nav ul {
        flex-direction: row;
        flex-wrap: wrap;
    }

}
