/**
 * E-Kinerja Perangkat Desa
 * Modern CSS dengan Sidebar Layout
 */

/* CSS Variables */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #0ea5e9;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    --dark: #1e293b;
    --darker: #0f172a;
    --darkest: #020617;
    --light: #f1f5f9;
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --sidebar-bg: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    --sidebar-width: 260px;
    --header-height: 60px;

    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.2);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-100);
    min-height: 100vh;
    color: var(--dark);
    line-height: 1.6;
}

/* ===== LOGIN PAGE ===== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

.login-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.6s ease;
    color: var(--white);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

/* --- GANTI BAGIAN INI (Baris ~99 di kode asli) --- */

.login-header .icon {
    /* Kita hapus background bulat dan ukuran tetap */
    background: transparent;
    box-shadow: none;
    border-radius: 0;

    /* Layout */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    width: auto;
    height: auto;
}

/* Tambahkan style baru khusus untuk gambar LOGO */
.login-header .icon img {
    width: 100px;
    /* Ukuran Logo Desktop */
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    /* Efek bayangan pada logo */
    transition: transform 0.3s ease;
}

.login-header .icon img:hover {
    transform: scale(1.05);
    /* Efek zoom sedikit saat kursor diarahkan */
}

.login-header h1 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-header p {
    color: var(--gray-400);
    font-size: 14px;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    color: inherit;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-control::placeholder {
    color: var(--gray-500);
}

/* Light theme form controls */
.app-main .form-control {
    background: var(--white);
    border: 1px solid var(--gray-300);
    color: var(--dark);
}

.app-main .form-control:focus {
    background: var(--white);
    border-color: var(--primary);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: var(--white);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning), #d97706);
    color: var(--white);
}

.btn-info {
    background: linear-gradient(135deg, var(--info), #0891b2);
    color: var(--white);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== APP LAYOUT ===== */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: var(--transition);
    color: var(--white);
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
}

/* Sidebar Profile */
.sidebar-profile {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-icon {
    font-size: 24px;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-role {
    font-size: 12px;
    color: var(--gray-400);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
}

.nav-header {
    padding: 12px 20px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--gray-300);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.nav-item.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    border-left-color: var(--primary);
}

.nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item.logout:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* ===== MAIN CONTENT ===== */
.app-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--gray-100);
}

/* Top Header */
.top-header {
    background: var(--white);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-600);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-600);
}

.breadcrumb a {
    color: var(--gray-600);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-info {
    text-align: right;
}

.header-welcome {
    font-size: 13px;
    color: var(--gray-500);
}

.header-date {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
}

/* Main Content Area */
.main-content {
    padding: 24px;
}

/* Page Header */
.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.page-header p {
    color: var(--gray-500);
    font-size: 14px;
}

/* ===== CARDS ===== */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.primary {
    background: rgba(99, 102, 241, 0.1);
}

.stat-icon.success {
    background: rgba(16, 185, 129, 0.1);
}

.stat-icon.warning {
    background: rgba(245, 158, 11, 0.1);
}

.stat-icon.danger {
    background: rgba(239, 68, 68, 0.1);
}

.stat-icon.info {
    background: rgba(6, 182, 212, 0.1);
}

.stat-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
}

.stat-content p {
    color: var(--gray-500);
    font-size: 13px;
}

/* ===== TABLES ===== */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table th,
.table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    white-space: nowrap;
}

.table tbody tr:hover {
    background: var(--gray-50);
}

.table-actions {
    display: flex;
    gap: 8px;
}

.table-actions .btn {
    padding: 6px 10px;
}

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.badge-primary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.badge-info {
    background: rgba(6, 182, 212, 0.1);
    color: var(--info);
}

.badge-secondary {
    background: var(--gray-200);
    color: var(--gray-600);
}

/* ===== ALERTS ===== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-info {
    background: rgba(6, 182, 212, 0.1);
    color: var(--info);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

/* ===== VOICE RECORDING ===== */
.voice-section {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(14, 165, 233, 0.05));
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.voice-section h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--dark);
}

.voice-section p {
    color: var(--gray-500);
    margin-bottom: 20px;
}

.btn-voice {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: var(--white);
    font-size: 32px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

.btn-voice:hover {
    transform: scale(1.05);
}

.btn-voice.recording {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    50% {
        box-shadow: 0 0 0 20px rgba(239, 68, 68, 0);
    }
}

.voice-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 14px;
    color: var(--gray-500);
}

.voice-status .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-400);
}

.voice-status.active .dot {
    background: var(--danger);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ===== JABATAN INFO ===== */
.jabatan-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}

.jabatan-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
}

.jabatan-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.jabatan-item label {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.jabatan-item span {
    font-size: 15px;
    font-weight: 500;
}

/* ===== TOOLBAR ===== */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===== FILTER BAR ===== */
.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar .form-control {
    max-width: 180px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state .icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--gray-600);
}

.empty-state p {
    color: var(--gray-500);
    margin-bottom: 20px;
}

/* ===== UTILITIES ===== */
.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.ml-auto {
    margin-left: auto;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--gray-500);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.text-warning {
    color: var(--warning);
}

.d-flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-1 {
    gap: 8px;
}

.gap-2 {
    gap: 16px;
}

.gap-3 {
    gap: 24px;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: block;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .app-main {
        margin-left: 0;
    }

    .mobile-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 16px;
    }

    .page-header h1 {
        font-size: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-left,
    .toolbar-right {
        justify-content: center;
    }

    .filter-bar {
        flex-direction: column;
    }

    .filter-bar .form-control {
        max-width: 100%;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== LOGIN SELECT FIX ===== */
.login-card select.form-control {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--dark);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.login-card select.form-control:focus {
    background-color: var(--white);
    border-color: var(--primary);
}

.login-card select.form-control option {
    background-color: var(--white);
    color: var(--dark);
    padding: 10px;
}

/* ===== ENHANCED MOBILE RESPONSIVE ===== */
@media (max-width: 576px) {
    .login-card {
        padding: 24px 20px;
        margin: 10px;
        max-width: 100%;
    }

    .login-header .icon {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }

    .login-header h1 {
        font-size: 18px;
    }

    .btn {
        padding: 12px 16px;
        font-size: 15px;
        min-height: 48px;
    }

    .btn-sm {
        padding: 10px 14px;
        font-size: 14px;
        min-height: 44px;
    }

    .form-control {
        padding: 14px 16px;
        font-size: 16px;
        min-height: 48px;
    }

    .main-content {
        padding: 12px;
    }

    .page-header h1 {
        font-size: 18px;
    }

    .page-header p {
        font-size: 13px;
    }

    .card-body {
        padding: 16px;
    }

    .card-header {
        padding: 12px 16px;
    }

    .toolbar {
        gap: 8px;
    }

    .toolbar-left,
    .toolbar-right {
        width: 100%;
    }

    .toolbar-left .btn,
    .toolbar-right .btn {
        flex: 1;
        text-align: center;
    }

    .table th,
    .table td {
        padding: 10px 8px;
        font-size: 13px;
    }

    .table-actions {
        flex-direction: column;
        gap: 4px;
    }

    .table-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .stat-content h3 {
        font-size: 22px;
    }

    .stat-content p {
        font-size: 12px;
    }

    .jabatan-card {
        padding: 16px;
    }

    .jabatan-info {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .top-header {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .header-info {
        display: none;
    }

    .breadcrumb {
        font-size: 13px;
    }

    .empty-state {
        padding: 40px 16px;
    }

    .empty-state .icon {
        font-size: 48px;
    }

    .empty-state h3 {
        font-size: 16px;
    }

    .voice-section {
        padding: 20px 16px;
    }

    .voice-section h3 {
        font-size: 16px;
    }

    .badge {
        font-size: 11px;
        padding: 3px 8px;
    }
}

/* Table Mobile Cards */
@media (max-width: 640px) {
    .table-mobile-card thead {
        display: none;
    }

    .table-mobile-card tbody tr {
        display: block;
        margin-bottom: 12px;
        background: var(--white);
        border: 1px solid var(--gray-200);
        border-radius: var(--radius-sm);
        padding: 12px;
    }

    .table-mobile-card tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 8px 0;
        border-bottom: 1px solid var(--gray-100);
    }

    .table-mobile-card tbody td:last-child {
        border-bottom: none;
    }

    .table-mobile-card tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--gray-600);
        flex-shrink: 0;
        margin-right: 12px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {

    /* Hide non-printable elements */
    .sidebar,
    .sidebar-overlay,
    .top-header,
    .toolbar,
    .table-actions,
    .btn,
    .mobile-toggle,
    .no-print,
    form,
    .alert {
        display: none !important;
    }

    /* Reset layout */
    body {
        background: white !important;
        color: black !important;
        font-size: 11pt;
        line-height: 1.4;
    }

    .app-container {
        display: block;
    }

    .app-main {
        margin-left: 0 !important;
        padding: 0;
    }

    .main-content {
        padding: 0;
    }

    .card {
        box-shadow: none;
        border: none;
    }

    .card-header {
        display: none;
    }

    .card-body {
        padding: 0;
    }

    /* Print cover page */
    .print-cover {
        display: block !important;
        page-break-after: always;
        text-align: center;
        padding: 40px 20px;
        border: 2px dashed #333;
        margin: 20px;
        min-height: 90vh;
    }

    .print-cover h1 {
        font-size: 18pt;
        font-weight: bold;
        margin-bottom: 20px;
        text-transform: uppercase;
    }

    .print-cover h2 {
        font-size: 16pt;
        font-weight: bold;
        margin-bottom: 40px;
    }

    .print-cover .logo-placeholder {
        width: 100px;
        height: 120px;
        margin: 30px auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .print-cover .logo-placeholder img {
        max-width: 100%;
        max-height: 100%;
    }

    .print-cover .user-info {
        text-align: center;
        margin: 30px auto;
        font-size: 12pt;
    }

    .print-cover .user-info table {
        margin: 0 auto;
        text-align: left;
    }

    .print-cover .user-info td {
        padding: 4px 8px;
    }

    .print-cover .govt-header {
        margin-top: 60px;
        font-size: 14pt;
        font-weight: bold;
    }

    .print-cover .govt-address {
        font-size: 10pt;
        margin-top: 10px;
    }

    /* Print header info */
    .print-header {
        display: block !important;
        margin-bottom: 20px;
        font-size: 11pt;
    }

    .print-header table {
        width: auto;
        border-collapse: collapse;
    }

    .print-header td {
        padding: 2px 8px 2px 0;
    }

    .print-header td:first-child {
        font-weight: normal;
        width: 150px;
    }

    /* Print table */
    .print-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 10pt;
        margin-top: 15px;
    }

    .print-table th,
    .print-table td {
        border: 1px solid #333;
        padding: 8px 10px;
        text-align: left;
        vertical-align: top;
    }

    .print-table th {
        background-color: #f0f0f0 !important;
        font-weight: bold;
        text-align: center;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .print-table td:first-child,
    .print-table th:first-child {
        text-align: center;
        width: 40px;
    }

    /* Print signature */
    .print-signature {
        display: block !important;
        margin-top: 40px;
        text-align: right;
        font-size: 11pt;
    }

    .print-signature .location-date {
        margin-bottom: 10px;
    }

    .print-signature .position {
        margin-bottom: 60px;
    }

    .print-signature .name {
        font-weight: bold;
        text-decoration: underline;
    }

    /* Page breaks */
    .page-break {
        page-break-before: always;
    }

    /* Hide elements not for print */
    .jabatan-card,
    .stats-grid {
        display: none !important;
    }
}

/* Hidden by default, shown only in print */
.print-cover,
.print-header,
.print-signature {
    display: none;
}

/* ===== ABSENSI STYLES ===== */
.status-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.status-option {
    cursor: pointer;
}

.status-option input {
    display: none;
}

.status-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    transition: var(--transition);
    min-width: 100px;
}

.status-box .icon {
    font-size: 24px;
}

.status-box .text {
    font-size: 14px;
    font-weight: 500;
}

.status-option input:checked+.status-box.hadir {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.status-option input:checked+.status-box.izin {
    border-color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
}

.status-option input:checked+.status-box.sakit {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.status-option input:checked+.status-box.dinas {
    border-color: var(--info);
    background: rgba(6, 182, 212, 0.1);
}

/* Geo Location Box */
.geo-location-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--gray-100);
    border-radius: var(--radius);
    border: 2px dashed var(--gray-300);
}

.geo-location-box.success {
    border-color: var(--success);
    border-style: solid;
    background: rgba(16, 185, 129, 0.05);
}

.geo-icon {
    font-size: 32px;
}

.geo-info {
    flex: 1;
}

.geo-coords {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 4px;
}

/* Camera Container */
.camera-container {
    position: relative;
    background: var(--gray-900);
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-container video,
.camera-container img {
    max-width: 100%;
    max-height: 360px;
    border-radius: var(--radius);
}

.camera-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.photo-preview {
    max-width: 100%;
    border-radius: var(--radius);
}

/* Signature Container */
.signature-container {
    background: var(--white);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    overflow: hidden;
}

.signature-canvas {
    width: 100%;
    height: 200px;
    cursor: crosshair;
    touch-action: none;
}

.signature-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Absensi Summary */
.absen-summary {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.summary-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.summary-row .label {
    min-width: 120px;
    font-weight: 500;
    color: var(--gray-600);
}

.preview-photo-small {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.preview-signature-small {
    max-width: 120px;
    max-height: 60px;
}

.signature-thumb {
    max-width: 50px;
    max-height: 30px;
}

/* Print Absensi Styles */
.print-absensi-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10pt;
}

.print-absensi-table th,
.print-absensi-table td {
    border: 1px solid #000;
    padding: 4px 6px;
    text-align: center;
    vertical-align: middle;
}

.print-absensi-table th {
    background: #f0f0f0;
    font-weight: bold;
}

.print-absensi-table .nama-col {
    text-align: left;
    min-width: 120px;
}

.print-absensi-table .jabatan-col {
    text-align: left;
    min-width: 100px;
}

.print-absensi-table .ttd-cell {
    width: 40px;
    height: 40px;
    padding: 2px;
}

.print-absensi-table .ttd-cell img {
    max-width: 35px;
    max-height: 35px;
}

.print-footer-signatures {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding: 0 40px;
}

.print-footer-sign {
    text-align: center;
    min-width: 200px;
}

.print-footer-sign .title {
    margin-bottom: 60px;
}

.print-footer-sign .name {
    font-weight: bold;
    text-decoration: underline;
}

@media print {

    .print-absensi-table,
    .print-footer-signatures {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}