/* =============================================
   Palmhill - Design System
   Premium dark theme with emerald/gold accents
   ============================================= */

/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* === CSS Custom Properties === */
:root {
    /* Primary Colors (from logo palms) */
    --emerald-900: #1a4517;
    --emerald-800: #246320;
    --emerald-700: #2d7d28;
    --emerald-600: #359630;
    --emerald-500: #3d9c35;
    --emerald-400: #5cb355;
    --emerald-300: #88cc82;

    /* Gold Accents (from logo building) */
    --gold-600: #b58b37;
    --gold-500: #d4a341;
    --gold-400: #ddb866;
    --gold-300: #e7cd8e;

    /* Light Theme */
    --bg-primary: #f8f6f0;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1ebd8;
    --bg-input: #ffffff;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-color-light: rgba(0, 0, 0, 0.04);

    /* Text */
    --text-primary: #1a1c19;
    --text-secondary: #545b52;
    --text-muted: #8b9688;

    /* Status Colors */
    --success: #3d9c35;
    --warning: #d4a341;
    --danger: #e14d45;
    --info: #3b82f6;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);

    /* Spacing */
    --nav-height: 64px;
    --bottom-nav-height: 72px;
    --sidebar-width: 260px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--emerald-700);
    border-radius: var(--radius-full);
}

/* === Links === */
a {
    color: var(--emerald-400);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--emerald-300);
}

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

.main-content {
    flex: 1;
    padding: 1.5rem;
    padding-bottom: calc(var(--bottom-nav-height) + 1.5rem);
    max-width: 100%;
}

@media (min-width: 992px) {
    .main-content {
        margin-left: var(--sidebar-width);
        padding-bottom: 2rem;
    }
}

/* === Top Header === */
.top-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
}

@media (min-width: 992px) {
    .top-header {
        margin-left: var(--sidebar-width);
    }
}

.top-header .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.top-header .brand img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
}

/* === Sidebar (Desktop) === */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem 0;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform var(--transition-smooth);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar.show {
    transform: translateX(0);
}

@media (min-width: 992px) {
    .sidebar {
        transform: translateX(0);
    }
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.sidebar-brand img {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
}

.sidebar-brand .brand-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.sidebar-brand .brand-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-section {
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
}

.sidebar-section-title {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    margin: 2px 0;
}

.sidebar-nav li a:hover {
    background: var(--glass-bg);
    color: var(--text-primary);
}

.sidebar-nav li a.active {
    background: linear-gradient(135deg, rgba(61, 156, 53, 0.15), rgba(61, 156, 53, 0.05));
    color: var(--emerald-600);
    font-weight: 600;
}

.sidebar-nav li a.active i {
    color: var(--emerald-600);
}

.sidebar-nav li a i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 199;
}

.sidebar-overlay.show {
    display: block;
}

/* === Bottom Navigation (Mobile) === */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 150;
    padding: 0.5rem 0 env(safe-area-inset-bottom, 0.25rem);
    backdrop-filter: blur(20px);
}

@media (min-width: 992px) {
    .bottom-nav {
        display: none;
    }
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    text-decoration: none;
    min-width: 56px;
    flex: 1;
    justify-content: center;
}

.bottom-nav a i {
    font-size: 1.25rem;
    transition: transform var(--transition-fast);
}

.bottom-nav a.active {
    color: var(--emerald-600);
}

.bottom-nav a.active i {
    transform: scale(1.15);
}

.bottom-nav a:hover {
    color: var(--text-primary);
}

/* === More Menu Popup (Mobile) === */
.more-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 300;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.more-menu-overlay.show {
    display: block;
    opacity: 1;
}

.more-menu-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-radius: 20px 20px 0 0;
    z-index: 301;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.75rem 1.25rem calc(var(--bottom-nav-height) + 1rem);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
}

.more-menu-popup.show {
    transform: translateY(0);
}

.more-menu-handle {
    width: 36px;
    height: 4px;
    background: var(--border-color);
    border-radius: 999px;
    margin: 0 auto 0.75rem;
    cursor: pointer;
}

.more-menu-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    padding-left: 0.25rem;
}

.more-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.more-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0.85rem 0.25rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    text-align: center;
}

.more-menu-item:hover {
    background: rgba(61, 156, 53, 0.06);
    color: var(--emerald-600);
}

.more-menu-item.active {
    background: linear-gradient(135deg, rgba(61, 156, 53, 0.12), rgba(61, 156, 53, 0.04));
    color: var(--emerald-600);
    font-weight: 600;
}

.more-menu-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

.more-menu-item:hover .more-menu-icon {
    border-color: var(--emerald-500);
    background: rgba(61, 156, 53, 0.08);
}

.more-menu-item.active .more-menu-icon {
    background: rgba(61, 156, 53, 0.15);
    border-color: var(--emerald-500);
    color: var(--emerald-600);
}

.more-menu-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 0.5rem 1.25rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.more-menu-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--emerald-700), var(--emerald-500));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.more-menu-user-info {
    flex: 1;
}

.more-menu-user-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.more-menu-user-blok {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.more-menu-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 1rem 0 0.75rem 0.25rem;
}

.more-menu-icon.icon-admin {
    background: rgba(212, 168, 83, 0.1);
    border-color: rgba(212, 168, 83, 0.2);
    color: var(--gold-600);
}

.more-menu-item:hover .more-menu-icon.icon-admin {
    background: rgba(212, 168, 83, 0.15);
    border-color: var(--gold-500);
}

.more-menu-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
    padding: 12px;
    border-radius: var(--radius-md);
    background: rgba(248, 81, 73, 0.1);
    color: var(--danger);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.more-menu-logout:hover {
    background: rgba(248, 81, 73, 0.15);
    color: var(--danger);
}

@media (min-width: 992px) {

    .more-menu-overlay,
    .more-menu-popup {
        display: none !important;
    }
}

/* === Cards === */
.card-glass {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-normal);
}

.card-glass:hover {
    border-color: var(--border-color-light);
    transform: translateY(-2px);
    box-shadow: var(--glass-shadow);
}

.card-glass-static {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

/* Stat Cards */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--emerald-600), var(--gold-500));
}

.stat-card.stat-success::before {
    background: linear-gradient(90deg, var(--success), var(--emerald-600));
}

.stat-card.stat-warning::before {
    background: linear-gradient(90deg, var(--warning), var(--gold-400));
}

.stat-card.stat-danger::before {
    background: linear-gradient(90deg, var(--danger), #ff7b72);
}

.stat-card.stat-info::before {
    background: linear-gradient(90deg, var(--info), #79c0ff);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.stat-card .stat-icon.icon-emerald {
    background: rgba(61, 156, 53, 0.12);
    color: var(--emerald-600);
}

.stat-card .stat-icon.icon-gold {
    background: rgba(212, 168, 83, 0.12);
    color: var(--gold-400);
}

.stat-card .stat-icon.icon-danger {
    background: rgba(248, 81, 73, 0.12);
    color: var(--danger);
}

.stat-card .stat-icon.icon-info {
    background: rgba(88, 166, 255, 0.12);
    color: var(--info);
}

.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* === Buttons === */
.btn-emerald {
    background: linear-gradient(135deg, var(--emerald-700), var(--emerald-600));
    border: none;
    color: white;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.btn-emerald:hover {
    background: linear-gradient(135deg, var(--emerald-600), var(--emerald-500));
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-600), var(--gold-500));
    border: none;
    color: #1a1a1a;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(212, 168, 83, 0.3);
}

.btn-outline-glass {
    background: transparent;
    border: 1px solid var(--border-color-light);
    color: var(--text-primary);
    font-weight: 500;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.btn-outline-glass:hover {
    background: var(--glass-bg);
    border-color: var(--emerald-600);
    color: var(--emerald-600);
}

.btn-danger-soft {
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.2);
    color: var(--danger);
    font-weight: 500;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.btn-danger-soft:hover {
    background: rgba(248, 81, 73, 0.2);
    color: var(--danger);
}

/* === Forms === */
.form-control,
.form-select {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 0.9rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    background: var(--bg-input);
    border-color: var(--emerald-600);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

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

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* File Input */
.file-upload-area {
    border: 2px dashed var(--border-color-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    background: var(--glass-bg);
}

.file-upload-area:hover {
    border-color: var(--emerald-600);
    background: rgba(5, 150, 105, 0.05);
}

.file-upload-area.dragover {
    border-color: var(--emerald-500);
    background: rgba(5, 150, 105, 0.1);
}

.file-upload-area i {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.file-upload-area .upload-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Image Preview */
.img-preview-container {
    position: relative;
    display: inline-block;
    margin: 0.5rem 0;
}

.img-preview-container img {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.img-preview-container .remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* === Tables === */
.table-glass {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-glass thead th {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    white-space: nowrap;
}

.table-glass tbody td {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
    font-size: 0.875rem;
    vertical-align: middle;
}

.table-glass tbody tr:hover td {
    background: var(--bg-card-hover);
}

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

/* Responsive table wrapper */
.table-responsive-custom {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

/* === Badges === */
.badge-status {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-verified,
.badge-approved,
.badge-paid,
.badge-done {
    background: rgba(46, 160, 67, 0.15);
    color: var(--success);
}

.badge-pending {
    background: rgba(210, 153, 34, 0.15);
    color: var(--warning);
}

.badge-rejected,
.badge-unpaid {
    background: rgba(248, 81, 73, 0.15);
    color: var(--danger);
}

.badge-active {
    background: rgba(88, 166, 255, 0.15);
    color: var(--info);
}

.badge-closed {
    background: rgba(110, 118, 129, 0.15);
    color: var(--text-muted);
}

/* === Toast Notification === */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    max-width: 400px;
    box-shadow: var(--glass-shadow);
    animation: slideIn 0.3s ease;
    font-size: 0.875rem;
}

.toast-item.toast-success {
    border-left: 3px solid var(--success);
}

.toast-item.toast-error {
    border-left: 3px solid var(--danger);
}

.toast-item.toast-warning {
    border-left: 3px solid var(--warning);
}

.toast-item.toast-info {
    border-left: 3px solid var(--info);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* === Page Header === */
.page-header {
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* === Loading Skeleton === */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* === Modal Dark Override === */
.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
}

.modal-header .modal-title {
    font-weight: 700;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

.modal-backdrop.show {
    opacity: 0.7;
}

/* === Login/Register Page === */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3eedc 0%, #e6d8b3 100%);
    padding: 1.5rem;
}

.auth-card {
    background: #fdfaf0;
    border: 2px solid var(--gold-400);
    box-shadow: 0 12px 36px rgba(181, 139, 55, 0.25), inset 0 0 20px rgba(212, 163, 65, 0.05);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

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

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo img {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

.auth-logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--emerald-800);
    margin-bottom: 0.25rem;
}

.auth-logo p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* === Voting Progress === */
.vote-progress {
    background: var(--bg-input);
    border-radius: var(--radius-full);
    height: 8px;
    overflow: hidden;
    position: relative;
}

.vote-progress-bar {
    height: 100%;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--emerald-600), var(--emerald-400));
    transition: width 0.5s ease;
}

/* === Aspirasi / Anonymous Wall === */
.aspirasi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.aspirasi-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--emerald-500), var(--gold-500));
    border-radius: var(--radius-full);
}

.aspirasi-card .aspirasi-text {
    padding-left: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.aspirasi-card .aspirasi-time {
    padding-left: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* === Jadwal Tabs === */
.jadwal-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    scrollbar-width: none;
}

.jadwal-tabs::-webkit-scrollbar {
    display: none;
}

.jadwal-tab {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.jadwal-tab:hover {
    border-color: var(--emerald-600);
    color: var(--text-primary);
}

.jadwal-tab.active {
    background: linear-gradient(135deg, var(--emerald-700), var(--emerald-600));
    border-color: transparent;
    color: white;
}

/* === Personil Card === */
.personil-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    transition: all var(--transition-normal);
}

.personil-card:hover {
    border-color: var(--border-color-light);
}

.personil-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--emerald-700), var(--emerald-500));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

/* === Program Kerja Progress === */
.proker-progress-wrapper {
    margin-top: 0.75rem;
}

.proker-progress {
    background: var(--bg-input);
    border-radius: var(--radius-full);
    height: 6px;
    overflow: hidden;
}

.proker-progress-bar {
    height: 100%;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
    transition: width 0.5s ease;
}

/* === Utilities === */
.text-gold {
    color: var(--gold-500) !important;
}

.text-emerald {
    color: var(--emerald-400) !important;
}

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

.bg-glass {
    background: var(--glass-bg);
}

.border-glass {
    border-color: var(--border-color) !important;
}

.fw-800 {
    font-weight: 800;
}

/* === Pulse animation for notification dot === */
.notification-dot {
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(248, 81, 73, 0.5);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(248, 81, 73, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(248, 81, 73, 0);
    }
}

/* === Photo Evidence Lightbox === */
.photo-evidence {
    cursor: pointer;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-fast);
}

.photo-evidence:hover {
    transform: scale(1.02);
}

.photo-evidence img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-overlay.show {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--radius-md);
    object-fit: contain;
}

/* === Responsive Adjustments === */
@media (max-width: 576px) {
    .main-content {
        padding: 1rem;
        padding-bottom: calc(var(--bottom-nav-height) + 1rem);
    }

    .stat-card .stat-value {
        font-size: 1.25rem;
    }

    .auth-card {
        padding: 1.75rem;
    }

    .page-header h1 {
        font-size: 1.25rem;
    }
}