/* ==========================================================================
   DESA BINAAN IMIGRASI & PIMPASA - STYLESHEET
   ========================================================================== */

:root {
    --bg-main: #f1f5f9;
    --bg-surface: #ffffff;
    --bg-sidebar: #0f172a;
    --bg-sidebar-hover: #1e293b;

    --primary: #1e40af;
    --primary-light: #3b82f6;
    --primary-soft: #eff6ff;

    --accent-amber: #d97706;
    --accent-amber-light: #fef3c7;
    --accent-gold: #f59e0b;

    --accent-emerald: #059669;
    --accent-emerald-light: #d1fae5;

    --accent-rose: #dc2626;
    --accent-rose-light: #fee2e2;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-light: #f8fafc;

    --border-color: #e2e8f0;
    --border-dark: #334155;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

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

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: var(--bg-sidebar);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    position: fixed;
    height: 100vh;
    z-index: 50;
    transition: var(--transition);
    border-right: 1px solid var(--border-dark);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-dark);
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.brand-text h2 {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.1;
    color: #ffffff;
}

.brand-text span {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--primary-light);
    letter-spacing: 0.5px;
}

/* Current Role Card in Sidebar */
.current-role-card {
    margin: 1rem 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius-md);
}

.role-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.role-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-gold);
}

/* Nav Menu */
.nav-menu {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-right: 0.25rem;
}

.nav-section-title {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-top: 1.25rem;
    margin-bottom: 0.35rem;
    padding-left: 0.75rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0.85rem;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
}

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

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

.nav-item.active {
    background: linear-gradient(135deg, var(--primary), #1d4ed8);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.nav-item .badge {
    margin-left: auto;
    font-size: 0.68rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
}

.badge-info { background: #3b82f6; color: #fff; }
.badge-warning { background: #f59e0b; color: #1e293b; }
.badge-gold { background: #fbbf24; color: #78350f; }
.badge-unread { background: #ef4444; color: #fff; }

.sidebar-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border-dark);
}

.kanim-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
}

.kanim-badge i {
    font-size: 1.2rem;
    color: var(--primary-light);
}

.kanim-badge strong {
    display: block;
    color: #fff;
}

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

/* Main Content */
.main-content {
    margin-left: 280px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.35rem;
    color: var(--text-primary);
    cursor: pointer;
}

.header-title h1 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Global Role Switcher Select */
.role-switcher-dropdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-md);
}

.role-switcher-dropdown label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.form-select-role {
    border: none;
    background: transparent;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    outline: none;
}

.icon-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.icon-btn:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

.dot-unread {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--accent-rose);
    border-radius: 50%;
}

.user-profile-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 0.75rem;
    border-left: 1px solid var(--border-color);
}

.user-profile-header img {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.user-info strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.1;
}

.user-info small {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Global Reminder Banner */
.reminder-banner {
    background: linear-gradient(135deg, #7c2d12, #9a3412);
    color: #ffffff;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: var(--shadow-md);
    border-bottom: 2px solid #ea580c;
    animation: slideDown 0.4s ease;
}

.reminder-banner.hidden {
    display: none;
}

.reminder-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reminder-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffedd5;
    flex-shrink: 0;
}

.reminder-text strong {
    font-size: 0.95rem;
    display: block;
    color: #ffedd5;
}

.reminder-text p {
    font-size: 0.8rem;
    color: #fed7aa;
    margin-top: 0.15rem;
}

.btn {
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-light-amber {
    background: #fef3c7;
    color: #78350f;
}

.btn-light-amber:hover {
    background: #fde68a;
    color: #451a03;
}

.btn-emerald {
    background: var(--accent-emerald);
    color: #fff;
}

.btn-emerald:hover {
    background: #047857;
}

.btn-secondary {
    background: #e2e8f0;
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: #cbd5e1;
}

/* Content Body */
.content-body {
    padding: 2rem;
    flex: 1;
}

/* General Card Components */
.card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

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

.card-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.card-title i {
    color: var(--primary);
}

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

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

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

.stat-icon.blue { background: #dbeafe; color: #1d4ed8; }
.stat-icon.gold { background: #fef3c7; color: #b45309; }
.stat-icon.emerald { background: #d1fae5; color: #047857; }
.stat-icon.rose { background: #fee2e2; color: #b91c1c; }

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

.stat-info p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.grid-equal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .grid-2, .grid-equal {
        grid-template-columns: 1fr;
    }
}

/* News & Pemberitahuan Feed */
.news-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.news-img {
    width: 140px;
    height: 95px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.news-content h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.news-content p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

.tag {
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.tag-imigrasi { background: #dbeafe; color: #1e40af; }
.tag-tppo { background: #fee2e2; color: #991b1b; }
.tag-kegiatan { background: #d1fae5; color: #065f46; }

/* TPPO & Edukasi Cards */
.edukasi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.edukasi-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.edukasi-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.edukasi-card-img {
    height: 160px;
    width: 100%;
    object-fit: cover;
}

.edukasi-card-body {
    padding: 1.25rem;
}

.edukasi-card-body h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.edukasi-card-body p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Chat Interface for Perangkat Desa & PIMPASA */
.chat-window {
    display: flex;
    flex-direction: column;
    height: 520px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: #ffffff;
    overflow: hidden;
}

.chat-header {
    background: var(--bg-sidebar);
    color: #fff;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-partner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-partner img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
}

.chat-messages {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-bubble {
    max-width: 75%;
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    line-height: 1.4;
    position: relative;
}

.chat-bubble.inbound {
    align-self: flex-start;
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 2px;
}

.chat-bubble.outbound {
    align-self: flex-end;
    background: var(--primary);
    color: #ffffff;
    border-bottom-right-radius: 2px;
}

.chat-time {
    font-size: 0.65rem;
    margin-top: 0.35rem;
    display: block;
    text-align: right;
    opacity: 0.75;
}

.chat-input-area {
    padding: 1rem;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.75rem;
}

.chat-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    font-size: 0.88rem;
}

.chat-input:focus {
    border-color: var(--primary);
}

/* Leaderboard List */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.leaderboard-item:hover {
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.rank-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}

.rank-1 { background: #fef3c7; color: #b45309; border: 2px solid #fbbf24; }
.rank-2 { background: #f1f5f9; color: #475569; border: 2px solid #cbd5e1; }
.rank-3 { background: #ffedd5; color: #c2410c; border: 2px solid #fdba74; }
.rank-normal { background: #f8fafc; color: #64748b; font-size: 0.85rem; }

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

.leaderboard-user img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.points-pill {
    background: #fef3c7;
    color: #92400e;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

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

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

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

/* Upload Dropzone */
.upload-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: var(--transition);
}

.upload-dropzone:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.upload-dropzone i {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999999 !important;
    pointer-events: none;
}

.toast {
    z-index: 999999 !important;
    pointer-events: auto !important;
    background: #0f172a;
    color: #ffffff;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.88rem;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid var(--primary-light);
}

.toast-success { border-left-color: var(--accent-emerald); }
.toast-warning { border-left-color: var(--accent-gold); }

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

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .mobile-toggle {
        display: block;
    }
}

/* ==========================================================================
   PUBLIC PORTAL STYLES - KEMENIMIPAS.GO.ID DESIGN SYSTEM
   ========================================================================== */

:root {
    --kemen-navy-dark: #0b192c;
    --kemen-navy: #1e3a8a;
    --kemen-navy-light: #2563eb;
    --kemen-gold: #d97706;
    --kemen-gold-bright: #f59e0b;
    --kemen-gold-light: #fef3c7;
    --kemen-bg-soft: #f8fafc;
    --kemen-border: #e2e8f0;
}

.hidden {
    display: none !important;
}

/* Button back to public in sidebar */
.btn-back-public {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.btn-back-public:hover {
    background: var(--kemen-gold);
    color: #ffffff;
    border-color: var(--kemen-gold);
}

/* National Topbar Ribbon & Ticker */
.national-topbar {
    background: #0f172a;
    color: #ffffff;
    font-size: 0.8rem;
    position: relative;
    z-index: 60;
}

.flag-ribbon {
    height: 4px;
    background: linear-gradient(90deg, #dc2626 0%, #dc2626 50%, #ffffff 50%, #ffffff 100%);
}

.topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.4rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ticker-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow: hidden;
}

.ticker-badge {
    background: #dc2626;
    color: #ffffff;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.ticker-content {
    color: #cbd5e1;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-contact {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #94a3b8;
    font-size: 0.75rem;
    white-space: nowrap;
}

.topbar-contact .dot {
    color: #475569;
}

/* Kemenimipas Main Header */
.kemen-header {
    background: var(--kemen-navy-dark);
    border-bottom: 2px solid var(--kemen-gold);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.kemen-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.emblem-box {
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    box-shadow: none;
}

.emblem-box img,
.brand-icon img,
.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.brand-titles .sub-gov {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #93c5fd;
    text-transform: uppercase;
}

.brand-titles .main-gov {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.brand-titles .sub-kanim {
    font-size: 0.72rem;
    color: var(--kemen-gold-bright);
    font-weight: 600;
}

/* Kemen Nav */
.kemen-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.pub-nav-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 0.9rem;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.pub-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.pub-nav-item.active {
    background: linear-gradient(135deg, var(--kemen-gold), #b45309);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

.btn-kemen-gold {
    background: linear-gradient(135deg, var(--kemen-gold), #b45309);
    color: #ffffff;
    border: none;
    padding: 0.65rem 1.15rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
    transition: var(--transition);
}

.btn-kemen-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.5);
}

/* Public Hero Section */
.public-hero {
    background: linear-gradient(135deg, #0b192c 0%, #1e3a8a 60%, #172554 100%);
    color: #ffffff;
    padding: 3.5rem 1.5rem 4.5rem;
    position: relative;
    overflow: hidden;
}

.public-hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-image: radial-gradient(rgba(245, 158, 11, 0.1) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.6;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: var(--kemen-gold-bright);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero-title span {
    color: var(--kemen-gold-bright);
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.05rem;
    color: #93c5fd;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 620px;
}

.hero-action-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--kemen-gold), #b45309);
    color: #ffffff;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-hero-primary:hover { transform: translateY(-3px); }
.btn-hero-secondary:hover { background: rgba(255, 255, 255, 0.2); }

/* Hero Stats Grid Right Column */
.hero-stats-card {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-stats-card h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.stat-items-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.stat-item-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--kemen-gold-bright);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-lbl {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 600;
}

/* Public Sections Shared Style */
.public-section {
    padding: 4rem 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

.section-header-pub {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}

.section-badge-pub {
    display: inline-block;
    background: #eff6ff;
    color: var(--kemen-navy);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    border: 1px solid #bfdbfe;
}

.section-title-pub {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.section-desc-pub {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Filter Controls */
.filter-bar-pub {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}

.search-pub-box {
    position: relative;
    flex: 1;
    min-width: 260px;
}

.search-pub-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-pub-box input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    outline: none;
}

.filter-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--kemen-navy);
    color: #ffffff;
    border-color: var(--kemen-navy);
}

/* 20 Desa Binaan Grid Cards */
.desa-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.desa-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.desa-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: #93c5fd;
}

.desa-card-img {
    height: 170px;
    position: relative;
    background-size: cover;
    background-position: center;
}

.desa-status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.badge-mandiri { background: #d1fae5; color: #047857; border: 1px solid #6ee7b7; }
.badge-maju { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
.badge-rintisan { background: #fef3c7; color: #b45309; border: 1px solid #fcd34d; }

.desa-region-tag {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.desa-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.desa-card-body h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.desa-location {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.desa-pimpasa-info {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.desa-pimpasa-info img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

.desa-pimpasa-info small {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
}

.desa-pimpasa-info strong {
    font-size: 0.8rem;
    color: var(--text-primary);
}

.desa-metrics-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    text-align: center;
}

.metric-pill {
    background: #f1f5f9;
    padding: 0.4rem;
    border-radius: var(--radius-sm);
}

.metric-pill small { font-size: 0.65rem; color: var(--text-muted); display: block; }
.metric-pill strong { font-size: 0.85rem; color: var(--kemen-navy); font-weight: 800; }

.btn-detail-desa {
    width: 100%;
    background: #eff6ff;
    color: var(--kemen-navy);
    border: 1px solid #bfdbfe;
    padding: 0.65rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: auto;
}

.btn-detail-desa:hover {
    background: var(--kemen-navy);
    color: #ffffff;
}

/* Dasar Hukum Section */
.legal-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.legal-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition);
}

.legal-card:hover {
    border-color: var(--kemen-navy);
    box-shadow: var(--shadow-md);
}

.legal-icon {
    width: 48px;
    height: 48px;
    background: #fef3c7;
    color: #b45309;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.legal-info {
    flex: 1;
}

.legal-type {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--kemen-navy);
    text-transform: uppercase;
}

.legal-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0.15rem 0 0.35rem;
}

.legal-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Dokumentasi Kegiatan Section */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.doc-item-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.doc-item-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.doc-img-wrap {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.doc-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.doc-item-card:hover .doc-img-wrap img {
    transform: scale(1.05);
}

.doc-cat-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--kemen-navy);
    color: #ffffff;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 700;
}

.doc-body {
    padding: 1.25rem;
}

.doc-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.doc-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 0.65rem;
}

.doc-location {
    font-size: 0.8rem;
    color: var(--kemen-gold);
    font-weight: 700;
}

/* Monitoring & Penilaian PIMPASA Section */
.monitoring-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.monitoring-summary-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.mon-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.mon-blue { background: #eff6ff; color: var(--kemen-navy); }
.mon-gold { background: #fef3c7; color: #b45309; }
.mon-green { background: #d1fae5; color: #047857; }

.table-responsive-pub {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.pub-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.pub-table th {
    background: #f8fafc;
    padding: 1rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
}

.pub-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.88rem;
    vertical-align: middle;
}

.pub-table tr:hover {
    background: #f8fafc;
}

.stars-gold {
    color: var(--kemen-gold-bright);
    font-size: 0.85rem;
}

/* Buku Saku PIMPASA Digital E-Book */
.buku-saku-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 580px;
    overflow: hidden;
}

.buku-saku-sidebar {
    background: #0b192c;
    color: #ffffff;
    padding: 1.5rem 1rem;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.buku-saku-sidebar h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--kemen-gold-bright);
    margin-bottom: 1.25rem;
    padding-left: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.buku-tab-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0.85rem;
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    margin-bottom: 0.4rem;
}

.buku-tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.buku-tab-btn.active {
    background: linear-gradient(135deg, var(--kemen-gold), #b45309);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.buku-saku-content {
    padding: 2rem 2.5rem;
    overflow-y: auto;
    max-height: 650px;
}

.chapter-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--kemen-navy);
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--kemen-gold);
}

.chapter-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.checklist-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.checklist-card h5 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checklist-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checklist-items li {
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
}

.checklist-items li i {
    color: var(--accent-emerald);
}

.tppo-warning-card {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-left: 4px solid #e11d48;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
}

.tppo-warning-card h5 {
    color: #9f1239;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

/* Modal Overlay & Dialog */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-box {
    background: #ffffff;
    border-radius: var(--radius-lg);
    max-width: 750px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideDown 0.3s ease;
    position: relative;
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--kemen-navy);
    color: #ffffff;
}

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.8;
}

.btn-close-modal:hover { opacity: 1; }

.modal-body {
    padding: 1.5rem;
}

/* Footer Kemenimipas */
.kemen-footer {
    background: #0b192c;
    color: #cbd5e1;
    border-top: 3px solid var(--kemen-gold);
    padding-top: 3.5rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo i {
    font-size: 2rem;
    color: var(--kemen-gold-bright);
}

.footer-logo h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.1;
}

.footer-logo small {
    color: #94a3b8;
    font-size: 0.72rem;
}

.footer-brand-col p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    color: #94a3b8;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--kemen-gold);
    color: #ffffff;
}

.footer-links-col h5, .footer-contact-col h5 {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links-col h5::after, .footer-contact-col h5::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 30px; height: 2px;
    background: var(--kemen-gold);
}

.footer-links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-links-col ul li a:hover {
    color: var(--kemen-gold-bright);
    padding-left: 4px;
}

.footer-contact-col p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 0.85rem;
    line-height: 1.5;
}

.footer-bottom {
    background: #070f1b;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.78rem;
    color: #64748b;
}

.container-bottom {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.footer-bottom-links a {
    color: #94a3b8;
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: var(--kemen-gold-bright);
}

/* Real-Time Visitor Live Badge in Footer */
.footer-live-status {
    display: flex;
    align-items: center;
    margin: 0.25rem 0;
}

.live-visitor-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(34, 197, 94, 0.35);
    padding: 0.35rem 0.95rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), 0 0 12px rgba(34, 197, 94, 0.15);
    transition: all 0.25s ease;
}

.live-visitor-pill:hover {
    border-color: rgba(34, 197, 94, 0.7);
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.25);
}

.live-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: livePulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
    display: inline-block;
}

@keyframes livePulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.live-visitor-pill .live-text strong {
    color: #4ade80;
    font-weight: 800;
}

.live-visitor-pill .live-divider {
    color: #64748b;
    font-size: 0.65rem;
}

.live-visitor-pill .live-subtext {
    color: #cbd5e1;
    font-size: 0.75rem;
}

/* Responsive Public CSS */
@media (max-width: 992px) {
    .kemen-nav { display: none; }
    .hero-container { grid-template-columns: 1fr; }
    .buku-saku-box { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .footer-container { grid-template-columns: 1fr; }
}

/* Pagination Styling */
.pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
}

.page-btn {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    min-width: 38px;
    height: 38px;
    padding: 0 0.6rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.page-btn:hover:not(:disabled) {
    background: var(--kemen-navy);
    color: #ffffff;
    border-color: var(--kemen-navy);
}

.page-btn.active {
    background: linear-gradient(135deg, var(--kemen-gold), #b45309);
    color: #ffffff;
    border-color: var(--kemen-gold);
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Photo Gallery Modal Grid */
.gallery-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-photo-card {
    height: 140px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.gallery-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-photo-card:hover img {
    transform: scale(1.08);
}

.admin-only {
    display: none !important;
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE DESIGN (MOBILE, TABLET, LAPTOP)
   ========================================================================== */

/* Mobile Sidebar Backdrop Overlay */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 99998 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* Laptop & Tablet Adjustments (< 1200px) */
@media (max-width: 1200px) {
    .hero-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet & Mobile Breakpoint (< 992px) */
@media (max-width: 992px) {
    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        height: 100vh !important;
        z-index: 99999 !important;
        transform: translateX(-100%);
        box-shadow: var(--shadow-xl);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sidebar.open {
        transform: translateX(0) !important;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 1rem !important;
    }

    .mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        z-index: 100000 !important;
        position: relative;
        cursor: pointer;
        padding: 0.4rem;
        border-radius: 6px;
    }
    .mobile-toggle:hover {
        background: rgba(0,0,0,0.05);
    }

    .top-header {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.5rem !important;
        padding: 0.65rem 0.85rem !important;
    }

    .header-actions {
        width: auto !important;
        margin-left: auto !important;
        flex-wrap: nowrap !important;
        gap: 0.4rem !important;
    }

    .role-switcher-dropdown {
        width: 100%;
    }

    .form-select-role {
        width: 100%;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .buku-saku-box {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    /* Force 1-column layout for dashboard analytics & forms on tablets/mobile */
    div[style*="grid-template-columns:1fr 1fr"],
    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns:1.2fr 0.8fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* Small Tablets & Mobile (< 768px) */
@media (max-width: 768px) {
    .kemen-topbar-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .kemen-main-nav-container {
        padding: 0.75rem 1rem;
    }

    .hero-section {
        padding: 2.25rem 1rem;
    }

    .hero-title {
        font-size: 1.75rem !important;
    }

    .hero-subtitle {
        font-size: 0.92rem !important;
    }

    /* Responsive Calendar Grid Header */
    div[style*="grid-template-columns:repeat(7, 1fr)"] {
        gap: 0.25rem !important;
    }

    div[style*="grid-template-columns:repeat(7, 1fr)"] > div {
        font-size: 0.72rem !important;
        padding: 0.35rem 0 !important;
    }

    /* Calendar Day Cell Height */
    div[style*="min-height:115px"] {
        min-height: 95px !important;
        padding: 0.35rem !important;
    }

    /* Modals & Dialogs */
    .modal-content {
        width: 95% !important;
        max-width: 100% !important;
        padding: 1.25rem !important;
        margin: 0.75rem;
    }

    /* Leaderboard Item Alignment */
    .leaderboard-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .points-pill {
        align-self: flex-end;
    }
}

/* Extra Small Mobile Devices (< 576px) */
@media (max-width: 576px) {
    .hero-stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .doc-grid,
    .desa-grid {
        grid-template-columns: 1fr !important;
    }

    /* Compact Mobile Calendar Day Cells */
    div[style*="min-height:115px"] {
        min-height: 80px !important;
        padding: 0.25rem !important;
    }

    div[style*="data-reportid"] {
        font-size: 0.65rem !important;
        padding: 0.2rem 0.3rem !important;
    }
}

/* Profile Edit Settings Responsive Grid */
@media (max-width: 992px) {
    .profile-settings-grid {
        grid-template-columns: 1fr !important;
    }
    .form-grid-2 {
        grid-template-columns: 1fr !important;
    }
}

/* Highest Z-Index Toast Overlays */
.toast-container {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    z-index: 9999999 !important;
    pointer-events: none !important;
}
.toast {
    z-index: 9999999 !important;
    pointer-events: auto !important;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* Force 2 Charts Per Row Grid */
.charts-2per-row-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
}

@media (max-width: 992px) {
    .charts-2per-row-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ========================================================================== */
/* COMPREHENSIVE MOBILE WEB RESPONSIVE STYLES (< 992px & < 576px)             */
/* ========================================================================== */

/* Mobile Public Header & Navigation */
.pub-mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 6px;
}
.pub-mobile-toggle:hover {
    background: rgba(255,255,255,0.1);
}

@media (max-width: 992px) {
    .pub-mobile-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        color: #ffffff !important;
        font-size: 1.05rem !important;
        padding: 0.35rem 0.55rem !important;
        border-radius: 8px !important;
        flex-shrink: 0 !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
    }
    .pub-mobile-toggle:active {
        transform: scale(0.95) !important;
    }

    .kemen-header .header-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        padding: 0.65rem 0.85rem !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }

    .kemen-brand {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        flex: 1 !important;
        min-width: 0 !important;
    }

    .emblem-box {
        width: 34px !important;
        height: 34px !important;
        font-size: 0.95rem !important;
        border-radius: 8px !important;
        flex-shrink: 0 !important;
    }

    .brand-titles {
        min-width: 0 !important;
        flex: 1 !important;
    }

    .main-gov {
        font-size: 0.72rem !important;
        line-height: 1.15 !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .header-actions-public {
        margin-left: 0 !important;
        flex-shrink: 0 !important;
    }

    .header-actions-public .btn {
        padding: 0.38rem 0.75rem !important;
        font-size: 0.76rem !important;
        font-weight: 700 !important;
        border-radius: 20px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.35rem !important;
        box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35) !important;
        white-space: nowrap !important;
    }

    /* Collapsible Mobile Navigation Menu for Public Portal */
    .kemen-nav {
        display: none;
        width: 100% !important;
        flex-direction: column !important;
        background: #091322 !important;
        padding: 0.65rem !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        margin-top: 0.5rem !important;
        border-radius: 10px !important;
        gap: 0.25rem !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.5) !important;
    }

    .kemen-nav.active {
        display: flex !important;
    }

    .pub-nav-item {
        padding: 0.6rem 0.85rem !important;
        border-radius: 6px !important;
        font-size: 0.85rem !important;
        width: 100% !important;
        color: #cbd5e1 !important;
    }

    .pub-nav-item.active,
    .pub-nav-item:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        color: #ffffff !important;
    }
}

/* Horizontal Scrollable Mobile Quick Nav Pills for Public Pages (< 768px) */
.pub-mobile-scroll-nav {
    display: none;
}

@media (max-width: 768px) {
    .pub-mobile-scroll-nav {
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        background: #070e1b !important;
        padding: 0.45rem 0.75rem !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        gap: 0.45rem !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none;
    }
    .pub-mobile-scroll-nav::-webkit-scrollbar {
        display: none !important;
    }
    .pub-scroll-pill {
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.35rem !important;
        color: #94a3b8 !important;
        font-size: 0.74rem !important;
        font-weight: 700 !important;
        padding: 0.32rem 0.75rem !important;
        border-radius: 20px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        text-decoration: none !important;
        flex-shrink: 0 !important;
        transition: all 0.2s ease !important;
    }
    .pub-scroll-pill.active {
        background: linear-gradient(135deg, var(--kemen-gold), #b45309) !important;
        color: #ffffff !important;
        border-color: var(--kemen-gold) !important;
        box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35) !important;
    }

    /* General Form & Card Elements Mobile Stacking */
    .form-group, .form-control, .form-select {
        font-size: 0.9rem !important;
    }

    .modal-box {
        width: 94vw !important;
        max-width: 100% !important;
        padding: 1.25rem !important;
        margin: 0.5rem auto !important;
    }

    .modal-header h3 {
        font-size: 1rem !important;
    }

    /* Internal Dashboard Header on Mobile */
    .top-header {
        padding: 0.65rem 0.85rem !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.5rem !important;
        background: #ffffff !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }

    .mobile-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 8px !important;
        background: #f1f5f9 !important;
        border: 1px solid #cbd5e1 !important;
        color: #0f172a !important;
        font-size: 1.1rem !important;
        flex-shrink: 0 !important;
        cursor: pointer !important;
    }

    .header-title {
        flex: 1 !important;
        min-width: 0 !important;
        margin: 0 0.35rem !important;
    }

    .header-title h1 {
        font-size: 0.95rem !important;
        font-weight: 800 !important;
        color: #0f172a !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin: 0 !important;
    }

    .header-title p {
        display: none !important;
    }

    .user-profile-header {
        display: flex !important;
        align-items: center !important;
        gap: 0.35rem !important;
    }

    .user-profile-header img {
        width: 32px !important;
        height: 32px !important;
        border-radius: 50% !important;
    }

    .user-profile-header .user-info {
        display: none !important;
    }

    #btnLogoutHeader {
        padding: 0.35rem 0.65rem !important;
        font-size: 0.75rem !important;
        border-radius: 6px !important;
        flex-shrink: 0 !important;
        height: 32px !important;
    }

    /* Force tables to scroll smoothly on mobile */
    .table-responsive,
    .table-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Mobile Button Touches */
    .btn {
        min-height: 38px;
    }
}

/* Close button inside mobile sidebar header */
.btn-close-sidebar-mobile {
    display: none;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.8rem;
    cursor: pointer;
    margin-left: auto;
    line-height: 1;
    padding: 0.2rem 0.5rem;
}
.btn-close-sidebar-mobile:hover {
    color: #ffffff;
}

@media (max-width: 992px) {
    .btn-close-sidebar-mobile {
        display: block !important;
    }
}

/* Mobile Bottom Navigation Dock for Internal Dashboard (< 768px) */
.internal-mobile-bottom-dock {
    display: none;
}

@media (max-width: 768px) {
    .internal-mobile-bottom-dock {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100vw;
        height: 60px;
        background: #0f172a;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 99990;
        align-items: center;
        justify-content: space-around;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
    }

    .dock-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #94a3b8;
        text-decoration: none;
        font-size: 0.68rem;
        font-weight: 700;
        gap: 0.25rem;
        flex: 1;
        height: 100%;
        transition: all 0.2s ease;
    }

    .dock-item i {
        font-size: 1.15rem;
    }

    .dock-item.active {
        color: var(--kemen-gold-bright) !important;
    }

    /* Add bottom padding to main content on mobile to accommodate the dock */
    .main-content {
        padding-bottom: 75px !important;
    }
}

/* ========================================================================== */
/* DUAL TAB DOKUMENTASI & AGENDA KEGIATAN MENDATANG                           */
/* ========================================================================== */
.doc-tabs-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0 2.25rem;
    flex-wrap: wrap;
}

.doc-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.6rem;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 9999px;
    color: #475569;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04);
}

.doc-tab-btn:hover {
    border-color: #cbd5e1;
    color: #0f172a;
    background: #f8fafc;
    transform: translateY(-1px);
}

.doc-tab-btn.active {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border-color: #1e3a8a;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.3);
}

.doc-tab-btn.active i {
    color: #facc15;
}

.tab-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 800;
    background: #f1f5f9;
    color: #475569;
    min-width: 22px;
}

.doc-tab-btn.active .tab-count-pill {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.tab-count-pill.upcoming {
    background: #fee2e2;
    color: #b91c1c;
}

.doc-tab-btn.active .tab-count-pill.upcoming {
    background: #ef4444;
    color: #ffffff;
}

/* Agenda Cards Grid */
.agenda-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .agenda-cards-grid {
        grid-template-columns: 1fr;
    }
}

.agenda-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.agenda-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #f59e0b);
}

.agenda-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.09);
    border-color: #cbd5e1;
}

.agenda-card-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.agenda-date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 65px;
    padding: 0.5rem 0.6rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #ffffff;
    text-align: center;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.25);
}

.agenda-date-box .month {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.9;
}

.agenda-date-box .day {
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1;
    margin-top: 0.2rem;
}

.agenda-card-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.4;
    margin: 0.35rem 0 0;
}

.agenda-info-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.84rem;
    color: #475569;
    margin-top: 0.4rem;
}

.agenda-info-row i {
    width: 16px;
    text-align: center;
    color: #2563eb;
    font-size: 0.85rem;
}

/* Interactive Mini Calendar */
.agenda-cal-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.agenda-cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.agenda-cal-month-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.agenda-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.agenda-cal-weekday {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 800;
    color: #475569;
    padding: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agenda-cal-day {
    min-height: 84px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.5rem 0.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #f8fafc;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

.agenda-cal-day:hover {
    background: #ffffff;
    border-color: #94a3b8;
}

.agenda-cal-day.today {
    background: #eff6ff;
    border-color: #60a5fa;
    box-shadow: inset 0 0 0 1px #3b82f6;
}

.agenda-cal-day.today .day-num {
    color: #1d4ed8;
    font-weight: 900;
}

.agenda-cal-day.has-agenda {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.agenda-cal-day.has-agenda:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37,99,235,0.18);
}

.agenda-cal-day.selected {
    border-color: #16a34a !important;
    background: #f0fdf4 !important;
    outline: 2px solid #22c55e;
}

.agenda-cal-day.other-month {
    background: #f8fafc;
    opacity: 0.4;
    cursor: default;
    border-color: #f1f5f9;
}

.agenda-cal-day.other-month:hover {
    transform: none;
    box-shadow: none;
    border-color: #f1f5f9;
}

.agenda-cal-day-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.agenda-cal-day .day-num {
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
    line-height: 1;
}

.agenda-cal-day.other-month .day-num {
    color: #94a3b8;
}

.agenda-dots-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    width: 100%;
    padding: 4px 2px 2px;
    min-height: 20px;
}

.agenda-dot-badge {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border: 1.5px solid #ffffff;
}

.agenda-dot-badge:hover {
    transform: scale(1.45);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
    z-index: 5;
}

.agenda-dot-badge.dot-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 2px 5px rgba(37, 99, 235, 0.45);
}

.agenda-dot-badge.dot-emerald {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    box-shadow: 0 2px 5px rgba(16, 185, 129, 0.45);
}

.agenda-dot-badge.dot-amber {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 2px 5px rgba(245, 158, 11, 0.45);
}

.agenda-dot-badge.dot-purple {
    background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
    box-shadow: 0 2px 5px rgba(168, 85, 247, 0.45);
}

.agenda-dot-badge.dot-rose {
    background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);
    box-shadow: 0 2px 5px rgba(244, 63, 94, 0.45);
}

.agenda-dot-badge.dot-teal {
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
    box-shadow: 0 2px 5px rgba(20, 184, 166, 0.45);
}

@media (max-width: 640px) {
    .agenda-cal-grid {
        gap: 4px;
    }
    .agenda-cal-day {
        min-height: 60px;
        padding: 0.35rem 0.2rem;
        border-radius: 6px;
    }
    .agenda-dot-badge {
        width: 8px;
        height: 8px;
        border-width: 1px;
    }
    .agenda-dots-wrapper {
        gap: 3px;
        min-height: 14px;
    }
}

/* ========================================================================== */
/* BERANDA UTAMA - VIDEO SOSIALISASI & EDUKASI TPPO                           */
/* ========================================================================== */
.btn-hero-video-link {
    background: rgba(245, 158, 11, 0.15) !important;
    border: 1px solid rgba(245, 158, 11, 0.45) !important;
    color: #fef3c7 !important;
    transition: all 0.25s ease !important;
}

.btn-hero-video-link:hover {
    background: rgba(245, 158, 11, 0.3) !important;
    border-color: #f59e0b !important;
    color: #ffffff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.25) !important;
}

.home-video-section {
    padding-top: 1.5rem;
    padding-bottom: 4rem;
}

.home-video-showcase-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 2.5rem;
    padding: 2.25rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.home-video-showcase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0f2b48 0%, #d97706 50%, #3b82f6 100%);
}

.home-video-player-col {
    display: flex;
    flex-direction: column;
}

.home-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.35);
    border: 1px solid #1e293b;
}

.home-video-element {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
    display: block;
    border-radius: inherit;
}

.home-video-player-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.85rem;
    padding: 0 0.25rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.video-footer-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #047857;
}

.video-footer-res {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
}

.home-video-info-col {
    display: flex;
    flex-direction: column;
}

.video-subtag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    color: #d97706;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.5rem;
}

.video-info-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.video-info-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.35rem;
}

.video-pillars-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0;
}

.video-pillar-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: #f8fafc;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.video-pillar-item:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.pillar-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.pillar-warn {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fee2e2;
}

.pillar-info {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
}

.pillar-success {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #d1fae5;
}

.pillar-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.pillar-text strong {
    font-size: 0.88rem;
    color: var(--text-primary);
    font-weight: 700;
}

.pillar-text span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.video-cta-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-video-cta {
    padding: 0.7rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.84rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-video-wa {
    background: #16a34a;
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.btn-video-wa:hover {
    background: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.4);
}

.btn-video-doc {
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-video-doc:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .home-video-showcase-card {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        padding: 1.5rem;
    }
    .video-info-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .home-video-showcase-card {
        padding: 1rem;
    }
    .video-cta-group {
        flex-direction: column;
    }
    .btn-video-cta {
        width: 100%;
        justify-content: center;
    }
}

/* Video Slider Controls & Navigation */
.video-slider-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.slider-counter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 0.45rem 1.15rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.slider-counter-pill strong {
    color: var(--kemen-navy, #0f2b48);
    font-weight: 800;
}

.slider-arrows-group {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.btn-slider-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    color: var(--kemen-navy, #0f2b48);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.btn-slider-arrow:hover {
    background: var(--kemen-navy, #0f2b48);
    color: #ffffff;
    border-color: var(--kemen-navy, #0f2b48);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 43, 72, 0.25);
}

.btn-slider-arrow:active {
    transform: scale(0.94);
}

.video-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.75rem;
}

.video-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

.video-dot:hover {
    background: #94a3b8;
    transform: scale(1.2);
}

.video-dot.active {
    width: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0f2b48, #d97706);
    box-shadow: 0 2px 8px rgba(15, 43, 72, 0.35);
}

.home-video-showcase-card.fade-in-slide {
    animation: fadeInSlide 0.35s ease-out forwards;
}

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



/* ============================================================================ */
/* KALENDER LAPORAN PIMPASA - MODERN GRID & TRUNCATION HARDENING               */
/* ============================================================================ */
.calendar-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.calendar-days-header,
.calendar-grid-container {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    width: 100% !important;
}

.calendar-day-cell {
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.calendar-day-cell:hover {
    border-color: #94a3b8 !important;
}

.calendar-report-card {
    min-width: 0 !important;
    overflow: hidden !important;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.calendar-report-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08) !important;
}

.btn-day-summary-badge:hover {
    filter: brightness(1.1);
    transform: scale(1.03);
}

.btn-more-calendar-reports:hover {
    background: #e2e8f0 !important;
    border-color: #64748b !important;
    color: #0f172a !important;
}

.btn-toggle-view {
    border: none;
    background: transparent;
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: 6px;
    cursor: pointer;
    color: #475569;
    transition: all 0.2s ease;
}

.btn-toggle-view:hover {
    color: var(--kemen-navy);
}

.btn-toggle-view.active {
    background: #ffffff !important;
    color: var(--kemen-navy) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
}
