/* ============================================
   Abs GTK - Main Stylesheet
   Modern Minimalis | Hijau Lembut
   ============================================ */

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

/* -------------------------------------------
   CSS Variables (Design Tokens)
   ------------------------------------------- */
:root {
    --primary: #4CAF93;
    --primary-light: #A8D5BA;
    --primary-lighter: #D4EDE1;
    --primary-dark: #2E7D63;
    --primary-darker: #1B5E4B;

    --bg: #F5F9F7;
    --bg-secondary: #EDF5F0;
    --card: #FFFFFF;
    --card-hover: #FAFFFE;

    --text: #1A2E28;
    --text-secondary: #3D5A4E;
    --text-muted: #6B8F82;
    --text-light: #9BB5AC;

    --border: #D4E5DB;
    --border-light: #E8F0EB;

    --danger: #E57373;
    --danger-light: #FFEBEE;
    --warning: #FFD54F;
    --warning-light: #FFF8E1;
    --success: #4CAF93;
    --success-light: #E8F5E9;
    --info: #64B5F6;
    --info-light: #E3F2FD;

    --shadow-sm: 0 1px 2px rgba(26, 46, 40, 0.05);
    --shadow: 0 1px 3px rgba(26, 46, 40, 0.1), 0 1px 2px rgba(26, 46, 40, 0.06);
    --shadow-md: 0 4px 6px rgba(26, 46, 40, 0.07), 0 2px 4px rgba(26, 46, 40, 0.06);
    --shadow-lg: 0 10px 15px rgba(26, 46, 40, 0.1), 0 4px 6px rgba(26, 46, 40, 0.05);

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;

    --nav-height: 64px;
    --bottom-nav-height: 72px;
    --sidebar-width: 260px;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

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

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

img {
    max-width: 100%;
    height: auto;
}

/* -------------------------------------------
   Layout: Auth Pages (Login)
   ------------------------------------------- */
.auth-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--bg) 50%, var(--primary-light) 100%);
}

.auth-layout .auth-card {
    flex-shrink: 0;
}

.auth-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
    padding: 12px 16px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px 32px;
    text-align: center;
}

.auth-logo {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    font-size: 28px;
    font-weight: 700;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* -------------------------------------------
   Layout: App Shell
   ------------------------------------------- */
.app-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--card);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
}

.navbar-brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 700;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Main Content */
.main-content {
    flex: 1;
    padding-top: calc(var(--nav-height) + 16px);
    padding-bottom: calc(var(--bottom-nav-height) + 16px);
    padding-left: 16px;
    padding-right: 16px;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}

/* Bottom Navigation (Mobile) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--card);
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(26, 46, 40, 0.05);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    transition: var(--transition);
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.bottom-nav-item i {
    font-size: 22px;
    transition: var(--transition);
}

.bottom-nav-item.active {
    color: var(--primary);
}

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

.bottom-nav-item.absen-btn {
    position: relative;
    top: -12px;
}

.absen-btn-circle {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(76, 175, 147, 0.4);
    transition: var(--transition);
}

.absen-btn:hover .absen-btn-circle {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(76, 175, 147, 0.5);
}

/* -------------------------------------------
   Components: Cards
   ------------------------------------------- */
.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

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

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.card-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

/* -------------------------------------------
   Components: Status Card (Dashboard)
   ------------------------------------------- */
.status-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.status-card::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.status-card-label {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 4px;
}

.status-card-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.status-card-sub {
    font-size: 13px;
    opacity: 0.8;
}

.status-card.absent {
    background: linear-gradient(135deg, var(--warning) 0%, #FFA726 100%);
}

.status-card.absent .status-card-label,
.status-card.absent .status-card-value,
.status-card.absent .status-card-sub {
    color: #5D4037;
}

/* -------------------------------------------
   Components: Buttons
   ------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 147, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(76, 175, 147, 0.4);
    color: white;
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--primary-dark);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border-light);
    color: var(--primary-dark);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

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

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-sm);
}

/* -------------------------------------------
   Components: Forms
   ------------------------------------------- */
.form-group {
    margin-bottom: 16px;
    text-align: left;
}

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

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 14px;
    color: var(--text);
    background: var(--card);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(76, 175, 147, 0.15);
}

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

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B8F82' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-error {
    font-size: 12px;
    color: var(--danger);
    margin-top: 4px;
}

/* -------------------------------------------
   Components: Flash Messages
   ------------------------------------------- */
.flash {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.flash-success {
    background: var(--success-light);
    color: var(--primary-dark);
    border: 1px solid var(--primary-light);
}

.flash-error {
    background: var(--danger-light);
    color: #C62828;
    border: 1px solid var(--danger);
}

.flash-warning {
    background: var(--warning-light);
    color: #F57F17;
    border: 1px solid var(--warning);
}

/* -------------------------------------------
   Components: Stat Grid
   ------------------------------------------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.stat-item {
    background: var(--card);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    border: 1px solid var(--border-light);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-item.success .stat-value { color: var(--success); }
.stat-item.warning .stat-value { color: #F9A825; }
.stat-item.danger .stat-value { color: var(--danger); }
.stat-item.info .stat-value { color: var(--info); }

/* -------------------------------------------
   Components: Calendar
   ------------------------------------------- */
.calendar {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--primary);
    color: white;
}

.calendar-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.calendar-nav {
    display: flex;
    gap: 8px;
}

.calendar-nav button {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.calendar-nav button:hover {
    background: rgba(255,255,255,0.3);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 8px 12px;
    background: var(--bg-secondary);
}

.calendar-weekday {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 4px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 8px 12px 16px;
    gap: 2px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: default;
    position: relative;
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day.today {
    background: var(--primary);
    color: white;
    font-weight: 700;
}

.calendar-day.hadir {
    background: var(--success-light);
    color: var(--primary-dark);
}

.calendar-day.izin,
.calendar-day.sakit {
    background: var(--warning-light);
    color: #F57F17;
}

.calendar-day.alpa {
    background: var(--danger-light);
    color: #C62828;
}

.calendar-day.dinas_luar {
    background: var(--info-light);
    color: #1565C0;
}

.calendar-day.weekend {
    color: var(--text-light);
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-light);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-dot.success { background: var(--success); }
.legend-dot.warning { background: var(--warning); }
.legend-dot.danger { background: var(--danger); }
.legend-dot.info { background: var(--info); }

/* -------------------------------------------
   Components: Camera
   ------------------------------------------- */
.camera-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #1A2E28;
    margin-bottom: 16px;
}

.camera-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-container canvas {
    display: none;
}

.camera-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    display: flex;
    justify-content: center;
}

.camera-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 4px solid white;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.camera-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.camera-btn:active {
    transform: scale(0.95);
}

.camera-preview {
    position: relative;
}

.camera-preview img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.camera-preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* -------------------------------------------
   Components: Table
   ------------------------------------------- */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
}

th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

td {
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
}

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

tr:hover td {
    background: var(--bg);
}

/* -------------------------------------------
   Components: Badge
   ------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

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

.badge-warning {
    background: var(--warning-light);
    color: #F57F17;
}

.badge-danger {
    background: var(--danger-light);
    color: #C62828;
}

.badge-info {
    background: var(--info-light);
    color: #1565C0;
}

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

/* -------------------------------------------
   Components: Avatar
   ------------------------------------------- */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 16px;
    overflow: hidden;
    flex-shrink: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-sm { width: 32px; height: 32px; font-size: 13px; }
.avatar-lg { width: 56px; height: 56px; font-size: 22px; }
.avatar-xl { width: 80px; height: 80px; font-size: 28px; }

/* -------------------------------------------
   Components: Empty State
   ------------------------------------------- */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.empty-state-text {
    font-size: 13px;
}

/* -------------------------------------------
   Components: List Item
   ------------------------------------------- */
.list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.list-item:last-child {
    border-bottom: none;
}

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

.list-item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.list-item-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.list-item-right {
    text-align: right;
    flex-shrink: 0;
}

/* -------------------------------------------
   Components: GPS Indicator
   ------------------------------------------- */
.gps-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.gps-indicator.active {
    background: var(--success-light);
    color: var(--primary-dark);
}

.gps-indicator.error {
    background: var(--danger-light);
    color: #C62828;
}

.gps-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-light);
}

.gps-indicator.active .gps-dot {
    background: var(--success);
    animation: pulse 2s infinite;
}

.gps-indicator.error .gps-dot {
    background: var(--danger);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* -------------------------------------------
   Utilities
   ------------------------------------------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: #F57F17; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.w-full { width: 100%; }
.hidden { display: none; }

/* -------------------------------------------
   Responsive: Tablet & Desktop
   ------------------------------------------- */
@media (min-width: 640px) {
    .main-content {
        max-width: 560px;
    }

    .stat-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .app-layout {
        flex-direction: row;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: var(--sidebar-width);
        background: var(--card);
        border-right: 1px solid var(--border-light);
        padding: 24px 16px;
        z-index: 100;
        overflow-y: auto;
    }

    .navbar {
        left: var(--sidebar-width);
    }

    .main-content {
        margin-left: var(--sidebar-width);
        padding-top: calc(var(--nav-height) + 32px);
        padding-bottom: 32px;
        padding-left: 32px;
        padding-right: 32px;
        max-width: calc(1200px - var(--sidebar-width));
    }

    .bottom-nav {
        display: none;
    }

    .sidebar-nav-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 16px;
        border-radius: var(--radius);
        color: var(--text-secondary);
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        transition: var(--transition);
        margin-bottom: 4px;
    }

    .sidebar-nav-item:hover {
        background: var(--bg-secondary);
        color: var(--primary);
    }

    .sidebar-nav-item.active {
        background: var(--primary-lighter);
        color: var(--primary-dark);
    }

    .sidebar-nav-item i {
        font-size: 20px;
        width: 24px;
        text-align: center;
    }
}

/* -------------------------------------------
   Loading Spinner
   ------------------------------------------- */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn.loading .btn-text {
    visibility: hidden;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* -------------------------------------------
   Tabs
   ------------------------------------------- */
.tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.tab {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.tab.active {
    background: var(--card);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.tab:hover:not(.active) {
    color: var(--text-secondary);
}

/* -------------------------------------------
    Components: Pagination (Mobile)
    ------------------------------------------- */
.pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
}

.pagination-info {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination .page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 6px;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border: none;
}

.pagination .page-num:hover {
    background: var(--primary-lighter);
    color: var(--primary-dark);
}

.pagination .page-num.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 147, 0.35);
    transform: scale(1.05);
}

.pagination .page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border: none;
}

.pagination .page-btn:hover:not(.disabled) {
    background: var(--primary-lighter);
    color: var(--primary-dark);
}

.pagination .page-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination .page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: var(--text-light);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* -------------------------------------------
    Components: App Footer
    ------------------------------------------- */
.app-footer {
    text-align: center;
    padding: 24px 16px;
    padding-bottom: calc(var(--bottom-nav-height) + 24px);
    border-top: 1px solid var(--border-light);
    margin-top: 16px;
}

.app-footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.app-footer-logo {
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

.app-footer-text {
    font-size: 12px;
    color: var(--text-light);
}

.app-footer-sep {
    font-size: 12px;
    color: var(--text-light);
}

.app-footer-link {
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.app-footer-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}
