/* ============================================================
   ECN Voting System - Professional Light UI
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Brand Colors */
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #3730a3;
    --primary-glow: rgba(79, 70, 229, 0.18);
    --primary-bg: #ede9fe;

    /* Accent */
    --accent: #06b6d4;

    /* Status */
    --success: #10b981;
    --success-bg: #d1fae5;
    --success-text: #065f46;
    --warning: #f59e0b;
    --warning-bg: #fef3c7;
    --warning-text: #92400e;
    --danger: #ef4444;
    --danger-bg: #fee2e2;
    --danger-text: #991b1b;
    --info: #3b82f6;
    --info-bg: #dbeafe;
    --info-text: #1e40af;

    /* Sidebar */
    --sidebar-bg: #1e1b4b;
    --sidebar-hover: rgba(255, 255, 255, 0.07);
    --sidebar-active: rgba(99, 102, 241, 0.18);
    --sidebar-text: #a5b4fc;
    --sidebar-active-text: #c7d2fe;
    --sidebar-border: rgba(255, 255, 255, 0.08);
    --sidebar-width: 250px;

    /* Light Surface */
    --bg: #f5f6fa;
    --surface: #ffffff;
    --surface-2: #f8f9fc;
    --border: #e5e7eb;
    --border-focus: #6366f1;

    /* Text */
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.09), 0 4px 10px rgba(0, 0, 0, 0.05);

    /* Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   Reset & Base
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   Layout
   ============================================================ */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* ============================================================
   Sidebar
   ============================================================ */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    border-right: 1px solid var(--sidebar-border);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar::-webkit-scrollbar {
    width: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}

.brand {
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    border-bottom: 1px solid var(--sidebar-border);
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #e0e7ff;
    line-height: 1.2;
}

.brand-sub {
    font-size: 0.65rem;
    color: var(--sidebar-text);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.nav-section {
    padding: 1rem 0 0.25rem;
}

.nav-section-label {
    font-size: 0.62rem;
    font-weight: 600;
    color: rgba(165, 180, 252, 0.5);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0 1.25rem 0.5rem;
}

.nav-links {
    list-style: none;
    padding: 0 0.625rem;
}

.nav-item a {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.875rem;
    color: var(--sidebar-text);
    gap: 0.75rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 2px;
    position: relative;
}

.nav-item a:hover {
    background: var(--sidebar-hover);
    color: #e0e7ff;
}

.nav-item a.active {
    background: var(--sidebar-active);
    color: var(--sidebar-active-text);
    font-weight: 600;
}

.nav-item a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-light), var(--accent));
    border-radius: 0 3px 3px 0;
}

.nav-item a i {
    width: 1rem;
    text-align: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.sidebar-footer {
    margin-top: auto;
    padding: 0.875rem 0.625rem;
    border-top: 1px solid var(--sidebar-border);
    flex-shrink: 0;
}

/* ============================================================
   Main Content
   ============================================================ */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================================
   Header
   ============================================================ */
.header {
    height: 64px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.75rem;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

.header-left h2 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-profile span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============================================================
   Content
   ============================================================ */
.content {
    padding: 1.5rem;
    flex: 1;
}

/* ============================================================
   Cards
   ============================================================ */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-bottom: 1.25rem;
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
}

.card-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body {
    padding: 1.25rem;
}

/* ============================================================
   Typography
   ============================================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 1.75rem;
}

h2 {
    font-size: 1.375rem;
}

h3 {
    font-size: 1.1rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    font-family: inherit;
    line-height: 1.5;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 1px 4px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    box-shadow: 0 3px 10px rgba(79, 70, 229, 0.35);
}

.btn-secondary {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: var(--surface-2);
    border-color: #d1d5db;
    color: var(--text-primary);
}

.btn-success {
    background: var(--success);
    color: white;
    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.25);
}

.btn-success:hover {
    background: #059669;
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
    box-shadow: 0 1px 4px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
    background: #dc2626;
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: white;
    box-shadow: 0 1px 4px rgba(245, 158, 11, 0.25);
}

.btn-warning:hover {
    background: #d97706;
    color: white;
}

.btn-sm {
    padding: 0.3rem 0.7rem;
    font-size: 0.78rem;
    border-radius: var(--radius-sm);
}

/* ============================================================
   Forms
   ============================================================ */
.form-group {
    margin-bottom: 1.1rem;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

.form-control {
    width: 100%;
    padding: 0.55rem 0.8rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: inherit;
    transition: var(--transition);
    line-height: 1.5;
}

.form-control:hover {
    border-color: #d1d5db;
}

.form-control:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    padding-right: 2.25rem;
}

/* ============================================================
   Tables
   ============================================================ */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.table thead {
    background: #f1f5f9;
}

.table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    border-bottom: 2px solid var(--border);
}

.table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    vertical-align: middle;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover {
    background: #f8f9ff;
}

/* ============================================================
   Badges
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.badge-success {
    background: var(--success-bg);
    color: var(--success-text);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.badge-danger {
    background: var(--danger-bg);
    color: var(--danger-text);
}

.badge-primary {
    background: var(--primary-bg);
    color: var(--primary-dark);
}

.badge-secondary {
    background: #f1f5f9;
    color: #475569;
}

.badge-info {
    background: var(--info-bg);
    color: var(--info-text);
}

/* ============================================================
   Dashboard Stat Cards
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.stat-card.purple::after {
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

.stat-card.green::after {
    background: linear-gradient(90deg, #059669, #34d399);
}

.stat-card.orange::after {
    background: linear-gradient(90deg, #d97706, #fbbf24);
}

.stat-card.blue::after {
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-icon.purple {
    background: #ede9fe;
    color: #7c3aed;
}

.stat-icon.green {
    background: #d1fae5;
    color: #059669;
}

.stat-icon.orange {
    background: #fef3c7;
    color: #d97706;
}

.stat-icon.blue {
    background: #dbeafe;
    color: #2563eb;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.15rem;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

/* ============================================================
   Login Page
   ============================================================ */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 50%, #f5f0ff 100%);
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 2.25rem;
    border-radius: var(--radius-xl);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

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

.login-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-lg);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

.login-header h1 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* ============================================================
   Alerts
   ============================================================ */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    border: 1px solid transparent;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-text);
    border-color: #a7f3d0;
}

.alert-danger {
    background: var(--danger-bg);
    color: var(--danger-text);
    border-color: #fca5a5;
}

.alert-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
    border-color: #fde68a;
}

/* ============================================================
   Utilities
   ============================================================ */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--text-muted);
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.flex-1 {
    flex: 1;
}

.w-full {
    width: 100%;
}

/* ============================================================
   Scrollbar
   ============================================================ */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content>* {
    animation: fadeInUp 0.25s ease both;
}

.content>*:nth-child(2) {
    animation-delay: 0.05s;
}

.content>*:nth-child(3) {
    animation-delay: 0.10s;
}

/* ============================================================
   KTPT Assignment Row
   ============================================================ */
.assignment-row {
    display: none;
    background: #fdfdfd;
}

.assignment-row>td {
    padding: 0 !important;
    border-bottom: 2px solid var(--primary-light);
}

.assignment-container {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #fafbff 0%, #f4f0ff 100%);
    border-left: 4px solid var(--primary);
}

.assignment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.staff-selection-box {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.staff-selection-box:hover {
    box-shadow: var(--shadow-md);
    border-color: #c7d2fe;
}

.staff-selection-box label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.825rem;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.post-hint {
    font-weight: 400;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Selected Staff Tags */
.selected-staff-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.selected-staff-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-md);
    padding: 0.45rem 0.65rem;
    animation: fadeInUp 0.2s ease both;
}

.tag-name {
    font-weight: 600;
    font-size: 0.82rem;
    color: #065f46;
}

.tag-office {
    font-size: 0.72rem;
    color: #047857;
    flex: 1;
}

.tag-remove {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0 0.15rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.tag-remove:hover {
    background: #fee2e2;
}

/* Staff Search Input */
.staff-search-wrapper {
    position: relative;
}

.staff-search-icon {
    position: absolute;
    left: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.78rem;
    z-index: 2;
    pointer-events: none;
}

.staff-search-input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-family: inherit;
    transition: var(--transition);
}

.staff-search-input:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.staff-search-input::placeholder {
    color: var(--text-muted);
}

/* Search Results Dropdown */
.staff-search-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    max-height: 220px;
    overflow-y: auto;
}

.staff-results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.staff-results-table thead {
    position: sticky;
    top: 0;
    background: #f1f5f9;
    z-index: 1;
}

.staff-results-table th {
    padding: 0.5rem 0.75rem !important;
    text-align: left;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}

.staff-results-table td {
    padding: 0.5rem 0.75rem !important;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    vertical-align: middle;
}

.staff-result-row {
    cursor: pointer;
    transition: var(--transition);
}

.staff-result-row:hover {
    background: var(--primary-bg) !important;
}

.staff-result-row:last-child td {
    border-bottom: none;
}

.staff-assigned-elsewhere {
    background: #fef3c7;
}

.staff-assigned-elsewhere:hover {
    background: #fde68a !important;
}

.staff-selected-in-kendra {
    background: #d1fae5;
}

.staff-selected-in-kendra:hover {
    background: #a7f3d0 !important;
}

.staff-no-results {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.staff-no-results i {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

/* ============================================================
   Settings - Vertical Tabs
   ============================================================ */
.settings-container {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.settings-tabs {
    width: 220px;
    flex-shrink: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.settings-tab {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.85rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.settings-tab:last-child {
    border-bottom: none;
}

.settings-tab:hover {
    background: var(--surface-2);
    color: var(--text-primary);
}

.settings-tab.active {
    background: var(--primary-bg);
    color: var(--primary-dark);
    font-weight: 600;
}

.settings-tab.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-light), var(--accent));
    border-radius: 0 3px 3px 0;
}

.settings-tab i {
    width: 1rem;
    text-align: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.settings-content {
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
    .settings-container {
        flex-direction: column;
    }
    .settings-tabs {
        width: 100%;
        display: flex;
        flex-direction: row;
    }
    .settings-tab {
        flex: 1;
        justify-content: center;
        border-bottom: none;
        border-right: 1px solid var(--border);
        font-size: 0.78rem;
        padding: 0.7rem 0.5rem;
    }
    .settings-tab:last-child {
        border-right: none;
    }
    .settings-tab.active::before {
        left: 15%;
        top: auto;
        bottom: 0;
        height: 3px;
        width: 70%;
        border-radius: 3px 3px 0 0;
    }
}