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

/* ================================================
   SALES POV - Premium Design System v2.0
   ================================================ */

:root {
    /* Brand Colors — curated, non-generic */
    --primary-red: #d4163c;
    --secondary-red: #ef3b5e;
    --primary-red-glow: rgba(212, 22, 60, 0.22);
    --primary-blue: #0c2340;
    --secondary-blue: #163d6e;
    --accent-blue: #2563eb;
    --accent-gold: #e9a115;

    /* Surface Palette */
    --bg-color: #f2f5f9;
    --surface-0: #0f172a;
    --surface-1: #1e293b;
    --surface-2: #334155;
    --card-bg: #ffffff;
    --card-bg-glass: rgba(255, 255, 255, 0.88);

    /* Text — strong hierarchy */
    --text-dark: #0b1424;
    --text-secondary: #2d3e54;
    --text-muted: #5c6f85;
    --text-light: #94a3b8;
    --border-color: #e0e7ef;
    --border-subtle: rgba(255, 255, 255, 0.08);

    /* Status Colors — refined */
    --green-success: #0d9668;
    --green-light: #d6fce7;
    --yellow-warn: #d4890a;
    --yellow-light: #fdf3c7;
    --blue-info: #3572e3;
    --blue-light: #dfe9fc;
    --red-danger: #e63946;
    --red-light: #fde2e4;
    --purple-accent: #7c5cdb;
    --purple-light: #f0e9ff;

    /* Border Radius */
    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Shadows — organic, multi-layer, color-aware */
    --shadow-xs: 0 1px 2px rgba(12, 35, 64, 0.05);
    --shadow-sm: 0 2px 8px rgba(12, 35, 64, 0.06), 0 1px 3px rgba(12, 35, 64, 0.04);
    --shadow-md: 0 4px 16px rgba(12, 35, 64, 0.07), 0 2px 6px rgba(12, 35, 64, 0.04);
    --shadow-lg: 0 8px 32px rgba(12, 35, 64, 0.09), 0 3px 12px rgba(12, 35, 64, 0.05);
    --shadow-xl: 0 16px 48px rgba(12, 35, 64, 0.12), 0 6px 20px rgba(12, 35, 64, 0.06);
    --shadow-red: 0 6px 20px rgba(212, 22, 60, 0.18), 0 2px 8px rgba(212, 22, 60, 0.12);
    --shadow-blue: 0 6px 20px rgba(12, 35, 64, 0.2), 0 2px 8px rgba(12, 35, 64, 0.12);
    --shadow-gold: 0 6px 20px rgba(233, 161, 21, 0.2);
    --shadow-glow-red: 0 0 0 1px rgba(212, 22, 60, 0.08), 0 6px 24px rgba(212, 22, 60, 0.16);

    /* Transitions — feel more natural */
    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition: all 0.22s var(--ease);
    --transition-slow: all 0.38s var(--ease);
    --transition-spring: all 0.36s var(--spring);
}

/* ================================================
   RESET & BASE
   ================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

/* Apply Inter only to non-icon elements */
body,
input,
textarea,
select,
button,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
label,
div,
li,
td,
th {
    font-family: 'Inter', sans-serif;
}

/* Font Awesome icon fix â€” MUST NOT override FA font-family */
.fa,
.fas,
.far,
.fal,
.fat,
.fad,
.fab,
.fa-solid,
.fa-regular,
.fa-light,
.fa-thin,
.fa-duotone,
.fa-brands,
[class^="fa-"],
[class*=" fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "Font Awesome 6 Pro" !important;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
}

body {
    background: #e8ecf2;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    color: var(--text-dark);
    min-height: 100vh;
}

.mobile-app {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: var(--bg-color);
    position: relative;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    overflow-x: hidden;
    overflow-y: visible;
    padding-bottom: 120px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ================================================
   UTILITY
   ================================================ */
.hidden {
    display: none !important;
}

/* ================================================
   ANIMATED BACKGROUND HEADER
   ================================================ */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes float-up {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scale-in {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

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

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes subtle-breathe {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 22, 60, 0.08); }
    50% { box-shadow: 0 0 0 6px rgba(212, 22, 60, 0.04); }
}

/* ================================================
   HEADER HOME
   ================================================ */
.header-home {
    background: linear-gradient(155deg, #a30d28 0%, #c4102e 40%, #d92040 72%, #e8394a 100%);
    color: white;
    padding: 52px 24px 88px 24px;
    border-bottom-left-radius: 36px;
    border-bottom-right-radius: 36px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(164, 13, 40, 0.22), 0 2px 8px rgba(0,0,0,0.08);
}

/* Decorative orbs — organic, asymmetric */
.header-home::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -50px;
    width: 260px;
    height: 260px;
    background: radial-gradient(ellipse at 40% 50%, rgba(255,255,255,0.09) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.header-home::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -30px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,200,180,0.06) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.profile-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Avatar */
.avatar-container {
    position: relative;
    cursor: pointer;
}

.avatar-ring {
    position: absolute;
    inset: -4px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.15));
    pointer-events: none;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    object-fit: cover;
    position: relative;
    z-index: 1;
    transition: var(--transition-spring);
}

.avatar-container:active .avatar {
    transform: scale(0.9);
}

.status-dot {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 16px;
    height: 16px;
    background: var(--green-success);
    border: 3px solid #c8102e;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.status-dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--green-success);
    opacity: 0.35;
    animation: pulse-ring 2s ease-out infinite;
}

/* Greeting text */
.greeting p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.greeting h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.greeting .role {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 6px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.greeting .location {
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.85;
}

/* Bell icon */
.bell-icon {
    font-size: 20px;
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    cursor: pointer;
}

.bell-icon:active {
    transform: scale(0.92);
    background: rgba(255, 255, 255, 0.25);
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: white;
    color: var(--primary-red);
    font-size: 9px;
    font-weight: 900;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    border: 1.5px solid #c8102e;
    animation: scale-in 0.4s var(--spring);
}

/* ================================================
   MAIN CONTAINER
   ================================================ */
.container {
    padding: 0 18px;
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

/* ================================================
   CARDS
   ================================================ */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    animation: fade-in-up 0.4s var(--ease-out) both;
}

.card:active {
    transform: scale(0.985);
    box-shadow: var(--shadow-xs);
}

/* ================================================
   TARGET DO CARD
   ================================================ */
.target-card {
    background: white;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.target-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red) 0%, var(--accent-gold) 100%);
    border-radius: 2px 2px 0 0;
    opacity: 0.85;
}

.target-card:active {
    transform: scale(0.98);
}

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

.target-header span {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.3px;
}

.target-period {
    font-size: 11px;
    color: var(--text-muted);
    background: linear-gradient(135deg, #f1f5f9, #e8f0fe);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-weight: 700;
    border: 1px solid var(--border-color);
}

.target-body {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Animated progress circle */
.progress-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px #e2e8f0, inset 0 0 10px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
    transition: background 1s var(--ease), box-shadow 1s var(--ease);
}

.progress-circle span {
    background: white;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 15px;
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.target-text h3 {
    color: var(--text-dark);
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 3px;
    letter-spacing: -1px;
    line-height: 1;
}

.target-text h3 span:first-child {
    color: var(--primary-blue);
}

.target-total {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: -0.3px;
}

.target-text p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    font-weight: 500;
    margin-top: 4px;
}

/* ================================================
   BUTTON INPUT AKTIVITAS
   ================================================ */
.btn-input-aktivitas {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-red) 0%, #b5091f 100%);
    color: white;
    padding: 18px 20px;
    border-radius: var(--radius-xl);
    margin-bottom: 22px;
    box-shadow: var(--shadow-red);
    transition: var(--transition-spring);
    position: relative;
    overflow: hidden;
}

.btn-input-aktivitas::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.btn-input-aktivitas::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.btn-input-aktivitas:active {
    transform: translateY(3px) scale(0.98);
    box-shadow: var(--shadow-sm);
}

.btn-input-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-icon-wrapper {
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.btn-input-text h4 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 3px;
    letter-spacing: -0.2px;
}

.btn-input-text p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* ================================================
   SECTION TITLES
   ================================================ */
.section-title {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--text-dark);
    letter-spacing: -0.3px;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 2px;
}

.link-lihat-semua {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-blue);
    background: rgba(37, 99, 235, 0.07);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    transition: var(--transition);
    letter-spacing: 0.1px;
    border: 1px solid rgba(37, 99, 235, 0.12);
}

.link-lihat-semua:active {
    opacity: 0.7;
    transform: scale(0.95);
    background: rgba(37, 99, 235, 0.14);
}

/* ================================================
   CATEGORY GRID (Feature Icons)
   ================================================ */
.category-card {
    padding: 18px 16px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 8px;
    padding: 4px 0;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: var(--transition-spring);
    cursor: pointer;
}

.category-item:active {
    transform: scale(0.88);
}

.category-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: linear-gradient(150deg, #fef5f5, #fdf0f0);
    color: var(--primary-red);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(212, 22, 60, 0.08);
    border: 1px solid rgba(212, 22, 60, 0.06);
    transition: var(--transition);
}

.category-item:hover .category-icon {
    background: linear-gradient(150deg, var(--primary-red), var(--secondary-red));
    color: white;
    box-shadow: var(--shadow-red);
    transform: translateY(-2px);
}

.category-text {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
    letter-spacing: 0.1px;
    line-height: 1.3;
}

/* ================================================
   SUMMARY CARDS (Grid-2)
   ================================================ */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 22px;
}

.summary-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 15px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color, var(--primary-red)), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.summary-card:active {
    transform: scale(0.97);
    box-shadow: var(--shadow-xs);
}

.summary-card:active::before {
    opacity: 0.6;
}

.icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

/* Enhanced color variants */
.bg-light-green {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}

.bg-light-blue {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
}

.bg-light-yellow {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.bg-light-purple {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #5b21b6;
}

.bg-light-red {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
}

.summary-info .summary-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 3px;
    letter-spacing: 0.2px;
}

.summary-info h4 {
    font-size: 22px;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1;
    letter-spacing: -0.5px;
}

.summary-info .summary-sub {
    display: none;
}

/* ================================================
   SUMMARY ITEM (List Style)
   ================================================ */
.summary-item {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    padding: 14px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
    cursor: pointer;
}

.summary-item:active {
    transform: scale(0.98);
    background: #f8fafc;
}

.icon-box {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.bg-blue {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
}

.bg-red {
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
}

.bg-green {
    background: linear-gradient(135deg, #059669, var(--green-success));
}

.bg-gold {
    background: linear-gradient(135deg, #d97706, var(--accent-gold));
}

.summary-text h4 {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 3px;
    letter-spacing: -0.2px;
}

.summary-text p {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.4;
}

/* ================================================
   TIMELINE & JADWAL
   ================================================ */
.timeline-card {
    padding: 0 !important;
    overflow: hidden;
}

.timeline-card-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.timeline-card-header::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
    pointer-events: none;
}

.timeline-card-header .tch-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: white;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.timeline-card-header .tch-text h4 {
    font-size: 14px;
    font-weight: 800;
    color: white;
    margin: 0 0 2px 0;
    letter-spacing: -0.2px;
}

.timeline-card-header .tch-text p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-weight: 500;
}

.timeline-card-header .tch-text {
    flex: 1;
}

.timeline-card-header .tch-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.tch-btn-add,
.tch-btn-all {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: white;
    transition: var(--transition);
    cursor: pointer;
}

.tch-btn-add {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tch-btn-all {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.tch-btn-add:active,
.tch-btn-all:active {
    transform: scale(0.88);
    opacity: 0.8;
}

/* Timeline line */
.timeline {
    position: relative;
    padding: 20px 20px 8px 52px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 29px;
    top: 20px;
    bottom: 24px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-blue) 0%, rgba(226, 232, 240, 0) 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    align-items: flex-start;
}

.timeline-item:last-child {
    margin-bottom: 6px;
}

.timeline-dot {
    position: absolute;
    left: -30px;
    top: 7px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    z-index: 1;
    box-shadow: 0 0 0 3px rgba(232, 25, 44, 0.15), 0 2px 6px rgba(232, 25, 44, 0.3);
}

.timeline-item.done .timeline-dot {
    background: linear-gradient(135deg, #059669, var(--green-success));
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15), 0 2px 6px rgba(16, 185, 129, 0.3);
}

.timeline-item.ongoing .timeline-dot {
    background: linear-gradient(135deg, #d97706, var(--accent-gold));
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15), 0 2px 6px rgba(245, 158, 11, 0.3);
    animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15), 0 2px 6px rgba(245, 158, 11, 0.3);
    }

    50% {
        box-shadow: 0 0 0 7px rgba(245, 158, 11, 0.2), 0 2px 8px rgba(245, 158, 11, 0.4);
    }
}

.timeline-time {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary-blue);
    background: linear-gradient(135deg, #eef3fa, #e8f0fe);
    border: 1px solid rgba(15, 48, 87, 0.1);
    border-radius: var(--radius-xs);
    padding: 4px 8px;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.timeline-content {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    flex: 1;
    transition: var(--transition);
    cursor: pointer;
}

.timeline-content:active {
    background: white;
    box-shadow: var(--shadow-sm);
}

.timeline-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.timeline-title h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
}

.timeline-content p {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
}

/* Badge status */
.badge-status {
    font-size: 9px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.status-selesai {
    background: #dcfce7;
    color: #065f46;
}

.status-terjadwal {
    background: #dbeafe;
    color: #1e40af;
}

.status-proses {
    background: #fef3c7;
    color: #92400e;
}

.status-disetujui {
    background: #fef3c7;
    color: #92400e;
}

/* ================================================
   BOTTOM NAVIGATION - Glassmorphism Premium Dock
   ================================================ */
.bottom-nav {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 40px) !important;
    max-width: 360px !important;
    background: rgba(12, 20, 36, 0.88) !important;
    backdrop-filter: blur(28px) saturate(1.6) !important;
    -webkit-backdrop-filter: blur(28px) saturate(1.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 22px !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 10px 14px !important;
    z-index: 9000 !important;
    box-shadow: 0 12px 40px rgba(12, 20, 36, 0.35), 0 4px 12px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.06) !important;
}

.nav-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 19px;
    width: 48px;
    height: 48px;
    transition: all 0.22s var(--ease);
    border-radius: 16px;
    position: relative;
    text-decoration: none;
}

.nav-item:active {
    transform: scale(0.88);
}

.nav-item:hover {
    color: rgba(255, 255, 255, 0.9);
}

.nav-item.active {
    color: var(--primary-red) !important;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: 0 4px 16px rgba(212, 22, 60, 0.2), 0 1px 4px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-1px);
}

.nav-item.active i {
    transform: scale(1.08);
    transition: transform 0.22s var(--ease);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 7px;
    width: 4px;
    height: 4px;
    background: var(--primary-red);
    border-radius: 50%;
}

/* ================================================
   BUTTONS - Modern Premium
   ================================================ */
.btn-main,
.btn-login {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-red), #b5091f);
    color: white;
    padding: 16px 22px;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 15px;
    width: 100%;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-red);
    transition: var(--transition-spring);
    position: relative;
    overflow: hidden;
    letter-spacing: -0.2px;
}

.btn-main::before,
.btn-login::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent);
    pointer-events: none;
}

.btn-main:active,
.btn-login:active {
    transform: translateY(2px) scale(0.98);
    box-shadow: var(--shadow-sm);
}

.btn-main:disabled,
.btn-login:disabled {
    background: #cbd5e1;
    box-shadow: none;
    cursor: not-allowed;
    color: #94a3b8;
}

.btn-outline-blue,
.btn-outline {
    width: 100%;
    padding: 14px;
    border: 1.5px solid var(--primary-blue);
    color: var(--primary-blue);
    background: rgba(13, 45, 94, 0.04);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-outline-blue:active,
.btn-outline:active {
    background: rgba(13, 45, 94, 0.1);
    transform: scale(0.97);
}

/* ================================================
   INPUT FORMS - Modern
   ================================================ */
.input-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group {
    margin-bottom: 22px;
    position: relative;
}

.input-group label,
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: -0.1px;
}

.input-modern,
.form-control {
    width: 100%;
    padding: 15px 16px 15px 48px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-color);
    background: #f8fafc;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-control {
    padding: 15px 16px;
}

.input-modern:focus,
.form-control:focus {
    background: #ffffff;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

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

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}


/* ================================================
   MODAL / BOTTOM SHEET
   ================================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 12, 24, 0.55);
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s var(--ease), visibility 0.28s var(--ease);
    padding: 16px;
}

.modal-content {
    box-sizing: border-box;
    background: var(--card-bg);
    border-radius: var(--radius-2xl);
    padding: 28px 22px 36px 22px;
    width: 100%;
    max-width: 414px;
    max-height: 86vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    position: relative;
    box-shadow: 0 12px 48px rgba(0,0,0,0.16), 0 4px 16px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.6);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

/* Drag handle */
.modal-drag-handle {
    width: 40px;
    height: 5px;
    background: #e2e8f0;
    border-radius: 3px;
    margin: 0 auto 22px auto;
    position: relative;
}

.btn-close-modal {
    background: #f1f5f9;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    color: var(--text-dark);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-close-modal:active {
    background: var(--primary-red);
    color: white;
    transform: scale(0.9);
}

/* ================================================
   JADWAL MODAL REDESIGN
   ================================================ */
#jadwalModal .modal-content.jm-content {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 88vh;
}

.jm-drag-handle {
    width: 40px;
    height: 5px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    margin: 12px auto 0 auto;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.jadwal-modal-header-strip {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 24px 20px 22px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    border-radius: inherit;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    position: relative;
    overflow: hidden;
}

.jadwal-modal-header-strip::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
}

.jadwal-modal-header-strip .jmhs-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.jadwal-modal-header-strip .jmhs-text {
    flex: 1;
    min-width: 0;
}

.jadwal-modal-header-strip .jmhs-text h3 {
    font-size: 16px;
    font-weight: 800;
    color: white;
    margin: 0 0 3px 0;
    letter-spacing: -0.3px;
}

.jadwal-modal-header-strip .jmhs-text p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-weight: 500;
}

.btn-close-modal-white {
    background: rgba(255, 255, 255, 0.2);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.btn-close-modal-white:active {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0.88);
}

/* Stats bar */
.jm-stats-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #ffffff;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.jm-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.jm-stat-num {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1;
    letter-spacing: -1px;
}

.jm-stat-green {
    color: var(--green-success);
}

.jm-stat-blue {
    color: var(--accent-blue);
}

.jm-stat-yellow {
    color: var(--accent-gold);
}

.jm-stat-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.jm-stat-divider {
    width: 1px;
    height: 34px;
    background: var(--border-color);
}

/* Section label */
.jm-section-label {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 20px 8px 20px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    flex-shrink: 0;
}

.jm-section-label i {
    font-size: 11px;
}

.jm-timeline-body {
    overflow-y: auto;
    flex: 1;
    padding-bottom: 24px;
}

.jm-timeline-body .timeline {
    padding-top: 8px;
    padding-bottom: 8px;
}

.jm-timeline-body .timeline::before {
    bottom: 16px;
}

.jm-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 20px;
    gap: 10px;
    color: var(--text-muted);
}

.jm-empty-state i {
    font-size: 40px;
    opacity: 0.35;
}

.jm-empty-state p {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0;
}

.jm-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-blue);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    margin-top: 4px;
    transition: var(--transition-spring);
    box-shadow: var(--shadow-blue);
}

.jm-add-btn:active {
    transform: scale(0.94);
}

/* ================================================
   MODAL HEADER
   ================================================ */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.3px;
}

/* ================================================
   HEADER PAGE (Sub-pages)
   ================================================ */
.header-page {
    background: linear-gradient(135deg, #b5091f 0%, var(--primary-red) 50%, #d42036 100%);
    color: white;
    padding: 18px 20px 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom-left-radius: 26px;
    border-bottom-right-radius: 26px;
    box-shadow: var(--shadow-red);
    margin-bottom: 22px;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.header-page::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.header-page a {
    color: white;
    font-size: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 11px;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.header-page a:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0.9);
}

.header-page h2 {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    text-align: center;
    flex: 1;
    letter-spacing: -0.4px;
    position: relative;
    z-index: 2;
}

.header-page .header-icon-right {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0.7;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

/* Invisible spacer to balance left back-button so h2 stays centered */
.header-spacer {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

/* ================================================
   ACTIVITY CARD â€” Premium Redesign
   ================================================ */
.activity-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Accent left bar */
.activity-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--primary-red);
    opacity: 0;
    transition: opacity 0.2s var(--ease);
}

.activity-card-clickable:hover::before,
.activity-card-clickable:focus::before {
    opacity: 1;
}

.activity-card:active {
    transform: scale(0.98);
    background: #fafbfd;
}

.activity-img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.activity-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 3px;
}

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

.activity-type {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.01em;
}

.dot-green {
    width: 7px;
    height: 7px;
    background: var(--green-success);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.activity-desc {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2px;
}

.activity-time {
    font-size: 10.5px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

/* ================================================
   LOGIN PAGE
   ================================================ */
.login-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 46%;
    background: linear-gradient(160deg, #b5091f 0%, var(--primary-red) 60%, #d42036 100%);
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    z-index: 0;
    overflow: hidden;
}

.login-bg::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -60px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
}

.login-bg::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
}

.header-login {
    height: 40px;
}

.login-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 70px 24px 28px 24px;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.8);
    animation: float-up 0.6s var(--ease-out) both;
}

/* Input icon */
.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 15px;
    pointer-events: none;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 15px;
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
}

.toggle-password:active {
    color: var(--primary-blue);
}

.msg-box {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    display: none;
    margin-top: 14px;
    animation: float-up 0.3s var(--ease-out);
}

.msg-error {
    background: var(--red-light);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.msg-info {
    background: var(--blue-light);
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ================================================
   SCROLLBAR CUSTOM
   ================================================ */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ================================================
   MISC UTILITIES
   ================================================ */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    letter-spacing: 0.2px;
}

.chip-red {
    background: var(--red-light);
    color: #991b1b;
}

.chip-green {
    background: var(--green-light);
    color: #065f46;
}

.chip-blue {
    background: var(--blue-light);
    color: #1e40af;
}

.chip-yellow {
    background: var(--yellow-light);
    color: #92400e;
}

.chip-purple {
    background: var(--purple-light);
    color: #5b21b6;
}

/* Divider */
.divider {
    height: 1px;
    background: var(--border-color);
    margin: 16px 0;
}

/* ================================================
   PHOTO UPLOAD STYLES (for input.html)
   ================================================ */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.upload-btn-box {
    width: 100%;
    aspect-ratio: 1;
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    background: #f8fafc;
    gap: 4px;
}

.upload-btn-box:hover,
.upload-btn-box:active {
    background: #eef3fb;
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.upload-btn-box i {
    font-size: 22px;
    color: var(--accent-blue);
}

.upload-btn-box span {
    font-size: 10px;
    font-weight: 700;
}

.photo-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

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

.remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(200, 16, 46, 0.9);
    color: white;
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.remove-btn:active {
    transform: scale(0.88);
}

/* ================================================
   LOKASI BOX (GPS)
   ================================================ */
.lokasi-box {
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}

.lokasi-box:focus-within {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.lokasi-text {
    flex: 1;
    margin-right: 10px;
}

.lokasi-text p {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
    line-height: 1.4;
    word-break: break-word;
}

.lokasi-text span {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
}

.btn-lokasi {
    background: linear-gradient(135deg, #eef3fb, #dbeafe);
    color: var(--accent-blue);
    border: none;
    padding: 8px 14px;
    border-radius: var(--radius-xs);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition-spring);
    white-space: nowrap;
    border: 1px solid #bfdbfe;
}

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

/* Map container */
#map-container {
    width: 100%;
    height: 185px;
    border-radius: var(--radius-sm);
    margin-top: 10px;
    display: none;
    overflow: hidden;
    border: 1.5px solid var(--border-color);
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-xs);
}

/* Fixed bottom bar */
.fixed-bottom {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 414px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 16px 20px 28px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.08);
    z-index: 100;
}

/* ================================================
   ANIMATION KEYFRAMES (extras)
   ================================================ */
@keyframes slide-right {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }

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

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Apply entry animations */
.header-home,
.header-page {
    animation: fade-in 0.5s var(--ease-out);
}

.container>* {
    animation: float-up 0.45s var(--ease-out) both;
}

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

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

.container>*:nth-child(4) {
    animation-delay: 0.15s;
}

.container>*:nth-child(5) {
    animation-delay: 0.20s;
}

/* ================================================
   RESPONSIVE & POLYFILLS
   ================================================ */
@media (max-width: 390px) {
    .category-grid {
        gap: 12px 6px;
    }

    .category-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .category-text {
        font-size: 10px;
    }
}

/* ================================================
   ACTIVITY DETAIL MODAL
   ================================================ */

/* Clickable card: smooth hover lift + red accent bar */
.activity-card-clickable {
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
        background 0.2s, border-color 0.2s;
}

.activity-card-clickable:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.10);
    background: #fafbff;
    border-color: rgba(37, 99, 235, 0.15);
}

.activity-card-clickable:active {
    transform: scale(0.975);
    box-shadow: var(--shadow-xs);
    background: #f1f5ff;
}

.activity-card-clickable:hover::before {
    opacity: 1;
}

/* â”€â”€ ADM Info Card â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.adm-info-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 13px 16px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-left: 3px solid transparent;
    /* coloured via inline style */
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.18s, background 0.18s;
}

.adm-info-card:last-child {
    margin-bottom: 0;
}

/* Backward-compat alias */
.adm-info-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

/* Info icon circle */
.adm-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.adm-info-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.adm-info-label {
    font-size: 9.5px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.adm-info-value {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-dark);
    word-break: break-word;
    line-height: 1.55;
}

/* Thumbnail strip â€” hidden scrollbar */
#adm-thumbnails::-webkit-scrollbar {
    display: none;
}

#adm-thumbnails {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ================================================
   MOBILE & BASE SHELL SETUP (< 768px)
   ================================================ */
.desktop-sidebar {
    display: none !important;
}

.desktop-shell {
    display: flex;
    justify-content: center;
    width: 100%;
}

.desktop-content {
    display: flex;
    justify-content: center;
    width: 100%;
    overflow: visible;
    background: transparent;
}

/* ================================================
   TABLET BREAKPOINT (>= 768px and < 1024px)
   Shows a collapsed icon-only sidebar
   ================================================ */
@media (min-width: 768px) and (max-width: 1023px) {

    body {
        background: #0f172a;
        justify-content: stretch;
        align-items: stretch;
        overflow: hidden;
        height: 100vh;
        margin: 0;
        padding: 0;
    }

    .desktop-shell {
        display: flex;
        width: 100%;
        height: 100vh;
        overflow: hidden;
    }

    /* Slim icon-only sidebar for tablet */
    .desktop-sidebar {
        width: 72px !important;
        min-width: 72px !important;
        background: #0f172a;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        display: flex !important;
        flex-direction: column;
        padding: 0;
        position: relative;
        z-index: 200;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
        overflow: hidden;
    }

    .sidebar-brand {
        padding: 20px 14px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar-brand-text,
    .sidebar-user-info,
    .sidebar-user-dot,
    .sidebar-nav-label,
    .sidebar-notif-btn span:not(.sidebar-notif-badge) {
        display: none !important;
    }

    .sidebar-brand-logo {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar-brand-icon {
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, var(--primary-red), #b5091f);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        color: white;
        box-shadow: var(--shadow-red);
        flex-shrink: 0;
    }

    .sidebar-user-card {
        margin: 10px 10px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.28s ease;
        text-decoration: none;
    }

    .sidebar-user-avatar {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        object-fit: cover;
        border: 2px solid rgba(255, 255, 255, 0.2);
    }

    .sidebar-nav {
        flex: 1;
        overflow-y: auto;
        padding: 8px 10px;
        display: flex;
        flex-direction: column;
        gap: 4px;
        scrollbar-width: none;
    }

    .sidebar-nav::-webkit-scrollbar { display: none; }

    .sidebar-nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px;
        border-radius: 12px;
        color: rgba(255, 255, 255, 0.5);
        font-size: 18px;
        transition: all 0.25s ease;
        text-decoration: none;
        position: relative;
    }

    .sidebar-nav-link i {
        width: auto;
        font-size: 18px;
        text-align: center;
    }

    /* Hide text in tablet sidebar links */
    .sidebar-nav-link > *:not(i) {
        display: none;
    }

    .sidebar-nav-link:hover {
        color: rgba(255, 255, 255, 0.95);
        background: rgba(255, 255, 255, 0.08);
    }

    .sidebar-nav-link.active {
        color: #fff;
        background: linear-gradient(135deg, rgba(232, 25, 44, 0.35), rgba(180, 9, 31, 0.25));
        border: 1px solid rgba(232, 25, 44, 0.3);
        box-shadow: 0 4px 12px rgba(232, 25, 44, 0.2);
    }

    .sidebar-nav-link.active::before {
        content: '';
        position: absolute;
        left: 0;
        top: 20%;
        bottom: 20%;
        width: 3px;
        background: var(--primary-red);
        border-radius: 0 3px 3px 0;
    }

    .sidebar-bottom {
        padding: 12px 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .sidebar-notif-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px;
        border-radius: 12px;
        color: rgba(255, 255, 255, 0.5);
        font-size: 18px;
        text-decoration: none;
        transition: all 0.25s ease;
        position: relative;
    }

    .sidebar-notif-btn i {
        font-size: 18px;
        width: auto;
    }

    .sidebar-notif-badge {
        position: absolute;
        top: 6px;
        right: 6px;
        background: var(--primary-red);
        color: white;
        font-size: 9px;
        font-weight: 900;
        min-width: 16px;
        height: 16px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
    }

    .desktop-content {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        background-color: var(--bg-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        height: 100vh;
    }

    .mobile-app,
    .desktop-content > .mobile-app,
    .desktop-content .mobile-app {
        width: 100%;
        max-width: 960px;
        min-height: 100%;
        box-shadow: none;
        background-color: transparent;
        padding: 0 24px 60px;
    }

    /* Header Home tablet */
    .header-home {
        border-radius: 20px;
        margin: 20px 0 28px;
        padding: 28px 32px;
        background: linear-gradient(135deg, #b5091f 0%, #c8102e 45%, #d42036 100%);
        box-shadow: 0 16px 32px rgba(232, 25, 44, 0.2);
    }

    /* Header Page tablet */
    .header-page {
        border-radius: 18px;
        margin: 18px 0 24px;
        padding: 18px 24px;
        background: linear-gradient(135deg, #b5091f 0%, #c8102e 100%);
        box-shadow: 0 12px 24px rgba(232, 25, 44, 0.15);
        display: flex;
        align-items: center;
    }

    .header-page h2 {
        font-size: 20px;
        font-weight: 800;
        color: white;
        margin: 0;
        flex: 1;
        text-align: center;
        padding-right: 44px;
    }

    .container { padding: 0 !important; }

    .category-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 16px;
    }

    .grid-2 {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 16px;
        margin-bottom: 24px;
    }

    .bottom-nav { display: none !important; }

    .modal-overlay {
        left: 0 !important;
        transform: none !important;
        max-width: 100% !important;
        background: rgba(15, 23, 42, 0.65) !important;
        backdrop-filter: blur(12px) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 24px !important;
    }

    .modal-content, #adm-sheet {
        border-radius: 24px !important;
        max-width: 500px !important;
        width: 100% !important;
        max-height: 85vh !important;
        transform: scale(0.92) !important;
        opacity: 0 !important;
        transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease !important;
        box-shadow: 0 24px 60px rgba(0,0,0,0.35) !important;
        margin: 0 !important;
        overflow-y: auto !important;
        background: white !important;
    }

    .modal-overlay.show .modal-content,
    .modal-overlay.show #adm-sheet {
        transform: scale(1) !important;
        opacity: 1 !important;
    }
}

/* ================================================
   DESKTOP RESPONSIVE LAYOUT (PREMIUM OVERHAUL)
   >= 1024px: Full Sidebar + Wide Content
   ================================================ */

@media (min-width: 1024px) {

    /* ── Body & Root Wrapper ──────────────────────── */
    body {
        background: #0f172a;
        justify-content: stretch;
        align-items: stretch;
        overflow: hidden;
        height: 100vh;
        margin: 0;
        padding: 0;
    }

    /* Desktop shell: sidebar + content */
    .desktop-shell {
        display: flex;
        width: 100%;
        height: 100vh;
        overflow: hidden;
    }

    /* ── Sidebar Navigation (Desktop Only) ────────── */
    .desktop-sidebar {
        width: 260px;
        min-width: 260px;
        background: #0f172a;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        display: flex !important;
        flex-direction: column;
        padding: 0;
        position: relative;
        z-index: 200;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
    }

    /* Elegant decorative glow in sidebar */
    .desktop-sidebar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 180px;
        background: radial-gradient(circle at top left, rgba(232, 25, 44, 0.15), transparent 70%);
        pointer-events: none;
    }

    .sidebar-brand {
        padding: 28px 22px 22px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        position: relative;
        z-index: 2;
    }

    .sidebar-brand-logo {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .sidebar-brand-icon {
        width: 44px;
        height: 44px;
        background: linear-gradient(135deg, var(--primary-red), #b5091f);
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        color: white;
        box-shadow: var(--shadow-red);
        flex-shrink: 0;
    }

    .sidebar-brand-text h4 {
        font-size: 16px;
        font-weight: 800;
        color: #ffffff;
        margin: 0 0 2px;
        letter-spacing: -0.3px;
    }

    .sidebar-brand-text p {
        font-size: 10px;
        color: rgba(255, 255, 255, 0.45);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin: 0;
    }

    /* Sidebar user card */
    .sidebar-user-card {
        margin: 18px 16px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        padding: 14px 16px;
        display: flex;
        align-items: center;
        gap: 12px;
        cursor: pointer;
        transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        z-index: 2;
        text-decoration: none;
        backdrop-filter: blur(8px);
    }

    .sidebar-user-card:hover {
        background: rgba(255, 255, 255, 0.09);
        border-color: rgba(255, 255, 255, 0.15);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

    .sidebar-user-avatar {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        object-fit: cover;
        flex-shrink: 0;
        border: 2px solid rgba(255, 255, 255, 0.2);
    }

    .sidebar-user-info {
        flex: 1;
        min-width: 0;
    }

    .sidebar-user-name {
        font-size: 14px;
        font-weight: 700;
        color: #fff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        letter-spacing: -0.2px;
    }

    .sidebar-user-role {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.55);
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        margin-top: 2px;
    }

    .sidebar-user-dot {
        width: 8px;
        height: 8px;
        background: var(--green-success);
        border-radius: 50%;
        flex-shrink: 0;
        box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
    }

    /* Sidebar nav links */
    .sidebar-nav {
        flex: 1;
        overflow-y: auto;
        padding: 10px 16px;
        display: flex;
        flex-direction: column;
        gap: 4px;
        position: relative;
        z-index: 2;
    }

    .sidebar-nav::-webkit-scrollbar { width: 4px; }
    .sidebar-nav::-webkit-scrollbar-track { background: transparent; }
    .sidebar-nav::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.15);
        border-radius: 4px;
    }
    .sidebar-nav::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.25);
    }

    .sidebar-nav-label {
        font-size: 10px;
        font-weight: 800;
        color: rgba(255, 255, 255, 0.35);
        text-transform: uppercase;
        letter-spacing: 1px;
        padding: 16px 12px 8px;
        margin: 0;
    }

    .sidebar-nav-link {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 12px 14px;
        border-radius: 12px;
        color: rgba(255, 255, 255, 0.6);
        font-size: 14px;
        font-weight: 600;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        text-decoration: none;
        position: relative;
        letter-spacing: -0.1px;
    }

    .sidebar-nav-link i {
        width: 20px;
        text-align: center;
        font-size: 16px;
        flex-shrink: 0;
        transition: all 0.25s;
    }

    .sidebar-nav-link:hover {
        color: rgba(255, 255, 255, 0.95);
        background: rgba(255, 255, 255, 0.08);
        transform: translateX(4px);
    }

    .sidebar-nav-link.active {
        color: #fff;
        background: linear-gradient(135deg, rgba(232, 25, 44, 0.35), rgba(180, 9, 31, 0.25));
        border: 1px solid rgba(232, 25, 44, 0.3);
        box-shadow: 0 8px 20px rgba(232, 25, 44, 0.2);
        transform: none;
    }

    .sidebar-nav-link.active i {
        color: #ff4d5e;
        transform: scale(1.1);
    }

    .sidebar-nav-link.active::before {
        content: '';
        position: absolute;
        left: 0;
        top: 20%;
        bottom: 20%;
        width: 4px;
        background: var(--primary-red);
        border-radius: 0 4px 4px 0;
    }

    /* Sidebar bottom: notification bell */
    .sidebar-bottom {
        padding: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        position: relative;
        z-index: 2;
        background: rgba(0, 0, 0, 0.1);
    }

    .sidebar-notif-btn {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        border-radius: 12px;
        color: rgba(255, 255, 255, 0.6);
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.25s ease;
        position: relative;
    }

    .sidebar-notif-btn i {
        width: 20px;
        text-align: center;
        font-size: 16px;
        flex-shrink: 0;
    }

    .sidebar-notif-btn:hover {
        color: rgba(255, 255, 255, 0.95);
        background: rgba(255, 255, 255, 0.08);
        transform: translateX(4px);
    }

    .sidebar-notif-badge {
        background: var(--primary-red);
        color: white;
        font-size: 10px;
        font-weight: 900;
        min-width: 20px;
        height: 20px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        padding: 0 6px;
        box-shadow: 0 0 10px rgba(232, 25, 44, 0.5);
    }

    /* ── Main Content Area (Seamless Desktop View) ── */
    .desktop-content {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        background-color: var(--bg-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        height: 100vh;
    }

    /* The mobile-app container becomes a clean wide layout wrapper */
    .mobile-app,
    .desktop-content > .mobile-app,
    .desktop-content .mobile-app {
        width: 100%;
        max-width: 1200px;
        min-height: 100%;
        box-shadow: none;
        background-color: transparent;
        padding: 0 40px 60px;
    }

    /* ── Header Home (Dashboard Banner Card) ──────── */
    .header-home {
        border-radius: 28px;
        margin: 32px 0 36px;
        padding: 36px 44px;
        background: linear-gradient(135deg, #b5091f 0%, #c8102e 45%, #d42036 100%);
        box-shadow: 0 20px 40px rgba(232, 25, 44, 0.25), 0 8px 16px rgba(232, 25, 44, 0.15);
        position: relative;
        overflow: hidden;
    }

    .header-home .user-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        z-index: 2;
    }

    .header-home .profile-wrap {
        display: flex;
        align-items: center;
        gap: 24px;
    }

    .header-home .avatar-container {
        width: 72px;
        height: 72px;
    }

    .header-home .avatar {
        width: 72px;
        height: 72px;
        border-radius: 20px;
        border: 3px solid rgba(255, 255, 255, 0.25);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }

    .header-home .status-dot {
        width: 14px;
        height: 14px;
        bottom: 2px;
        right: 2px;
        border: 2px solid #c8102e;
    }

    .header-home .greeting {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .header-home .greeting p {
        font-size: 14px;
        opacity: 0.85;
        margin-bottom: 4px;
    }

    .header-home .greeting h2 {
        font-size: 28px;
        font-weight: 800;
        letter-spacing: -0.5px;
        margin-bottom: 6px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    }

    .header-home .greeting .role {
        font-size: 13px;
        padding: 4px 12px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(8px);
        border-radius: 20px;
        margin-bottom: 8px;
    }

    .header-home .greeting .spv-label {
        font-size: 12px !important;
        opacity: 0.9 !important;
        margin-bottom: 6px !important;
    }

    .header-home .greeting .location {
        font-size: 13px;
        opacity: 0.9;
    }

    .header-home .bell-icon {
        width: 54px;
        height: 54px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.28s ease;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        position: relative;
    }

    .header-home .bell-icon:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: translateY(-2px);
    }

    .header-home .bell-icon i { font-size: 24px !important; }

    .header-home .bell-icon .badge {
        top: -6px;
        right: -6px;
        width: 24px;
        height: 24px;
        font-size: 12px;
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    /* ── Header Page (Sub-pages Navbar) ───────────── */
    /* No floating box; seamlessly blends with the bg */
    .header-page {
        border-radius: 0;
        margin: 0 -40px 32px;
        padding: 22px 44px;
        background: linear-gradient(135deg, #b5091f 0%, #c8102e 60%, #d42036 100%);
        box-shadow: 0 8px 24px rgba(232, 25, 44, 0.18);
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }

    .header-page a {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 16px;
        transition: all 0.25s ease;
        flex-shrink: 0;
    }

    .header-page a:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: translateX(-3px);
    }

    .header-page h2 {
        font-size: 22px;
        font-weight: 800;
        color: white;
        margin: 0;
        letter-spacing: -0.4px;
        flex: 1;
        text-align: center;
        padding-right: 40px;
    }

    /* ── Container Clean Alignment ────────────────── */
    .container { padding: 0 !important; }

    /* ── Grid Layouts ─────────────────────────────── */
    .target-card {
        border-radius: 24px;
        padding: 28px 32px !important;
        margin-bottom: 28px;
        box-shadow: var(--shadow-md);
        border: 1px solid var(--border-color);
        transition: all 0.3s ease;
    }

    .target-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        border-color: rgba(232, 25, 44, 0.2);
    }

    .target-card .target-header span:first-child { font-size: 16px !important; }

    .target-card .target-period {
        font-size: 13px !important;
        padding: 4px 12px;
        background: var(--bg-color);
        border-radius: 14px;
        font-weight: 600;
    }

    .target-card > div:nth-child(2) {
        gap: 32px !important;
        margin-top: 8px;
    }

    .target-card > div:nth-child(2) > div {
        gap: 16px !important;
        padding: 12px 24px !important;
        background: var(--bg-color);
        border-radius: 18px;
        border: 1px solid rgba(0, 0, 0, 0.03);
    }

    .target-card .progress-circle {
        width: 64px !important;
        height: 64px !important;
    }

    .target-card .progress-circle span {
        width: 48px !important;
        height: 48px !important;
        font-size: 14px !important;
    }

    .target-card > div:nth-child(2) > div span:nth-child(2) { font-size: 20px !important; }

    /* Button Input Aktivitas Banner */
    .btn-input-aktivitas {
        border-radius: 24px;
        padding: 24px 32px;
        margin-bottom: 32px;
        box-shadow: 0 16px 32px rgba(232, 25, 44, 0.2);
        transition: all 0.3s ease;
    }

    .btn-input-aktivitas:hover {
        transform: translateY(-4px);
        box-shadow: 0 24px 48px rgba(232, 25, 44, 0.3);
    }

    .btn-input-aktivitas .btn-icon-wrapper {
        width: 56px;
        height: 56px;
        font-size: 24px;
        border-radius: 18px;
    }

    .btn-input-aktivitas .btn-input-text h4 {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .btn-input-aktivitas .btn-input-text p { font-size: 13px; }

    /* Category Card & Grid */
    .section-header-row {
        margin-bottom: 20px;
        padding: 0 4px;
    }

    .section-title {
        font-size: 20px;
        font-weight: 800;
        letter-spacing: -0.4px;
    }

    .link-lihat-semua {
        font-size: 14px;
        font-weight: 700;
    }

    .category-card {
        border-radius: 24px;
        padding: 28px;
        margin-bottom: 32px;
        box-shadow: var(--shadow-md);
    }

    .category-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 24px;
    }

    .category-item {
        padding: 20px;
        border-radius: 20px;
        background: var(--bg-color);
        border: 1px solid rgba(0, 0, 0, 0.03);
        transition: all 0.28s ease;
    }

    .category-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
        background: white;
        border-color: var(--primary-red-glow);
    }

    .category-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
        border-radius: 18px;
        margin-bottom: 14px;
    }

    .category-text {
        font-size: 14px;
        font-weight: 700;
    }

    /* Summary Grid (Ringkasan Hari Ini) */
    .grid-2 {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 24px;
        margin-bottom: 32px;
    }

    .summary-card {
        border-radius: 24px;
        padding: 24px 28px;
        box-shadow: var(--shadow-md);
        transition: all 0.3s ease;
    }

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

    .summary-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
        border-radius: 18px;
    }

    .summary-info span {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .summary-info h4 {
        font-size: 32px;
        font-weight: 900;
    }

    /* Activity Cards */
    .activity-card-clickable {
        border-radius: 20px;
        padding: 20px 24px;
        margin-bottom: 16px;
        box-shadow: var(--shadow-sm);
        transition: all 0.3s ease;
    }

    .activity-card-clickable:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
        border-color: rgba(232, 25, 44, 0.2);
    }

    /* ── Bottom Nav: Hide on Desktop ──────────────── */
    .bottom-nav { display: none !important; }

    /* ── Sticky Fixed Bottom Action Bar ───────────── */
    .desktop-content .fixed-bottom,
    .fixed-bottom {
        position: sticky !important;
        bottom: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        background: rgba(255, 255, 255, 0.92) !important;
        backdrop-filter: blur(12px) !important;
        border-radius: 22px !important;
        padding: 20px 32px !important;
        box-shadow: 0 -12px 36px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.05) !important;
        margin-top: 36px !important;
        z-index: 100 !important;
    }

    /* ── Modal Overlay: Full Viewport Centered ────── */
    .modal-overlay {
        left: 0 !important;
        transform: none !important;
        max-width: 100% !important;
        background: rgba(15, 23, 42, 0.65) !important;
        backdrop-filter: blur(12px) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 24px !important;
        box-sizing: border-box !important;
    }

    /* Modal becomes a centered dialog */
    .modal-content,
    #adm-sheet {
        border-radius: 28px !important;
        max-width: 560px !important;
        width: 100% !important;
        max-height: 85vh !important;
        transform: scale(0.92) !important;
        transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease !important;
        opacity: 0 !important;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35) !important;
        margin: 0 !important;
        overflow-y: auto !important;
        background: white !important;
    }

    .modal-overlay.show .modal-content,
    .modal-overlay.show #adm-sheet {
        transform: scale(1) !important;
        opacity: 1 !important;
    }

    #photoViewerModal.modal-overlay {
        left: 0 !important;
        max-width: 100% !important;
        transform: none !important;
    }

    /* Drag handle hide on desktop */
    .jm-drag-handle,
    .modal-drag-handle { display: none !important; }

    /* ── Scrollbars ───────────────────────────────── */
    .desktop-content::-webkit-scrollbar { width: 8px; }
    .desktop-content::-webkit-scrollbar-track { background: transparent; }
    .desktop-content::-webkit-scrollbar-thumb {
        background: rgba(15, 23, 42, 0.15);
        border-radius: 4px;
    }
    .desktop-content::-webkit-scrollbar-thumb:hover {
        background: rgba(15, 23, 42, 0.3);
    }

    /* ── Login Page (Skip Sidebar Layout) ─────────── */
    body.login-page .desktop-shell { display: block; }
    body.login-page .desktop-sidebar { display: none !important; }
    body.login-page .desktop-content {
        display: block;
        background: transparent;
        height: auto;
    }
    body.login-page .mobile-app {
        margin: 32px auto;
        max-width: 960px !important;
        width: 94vw !important;
        padding: 0;
        box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35), 0 8px 32px rgba(0, 0, 0, 0.2);
    }
}


/* ================================================
   DESKTOP RESPONSIVE LAYOUT (PREMIUM OVERHAUL)
   >= 768px: Sidebar Kiri + Konten Melebar Seamless
   ================================================ */

@media (min-width: 768px) {

    /* ── Body & Root Wrapper ──────────────────────── */
    body {
        background: #0f172a;
        /* Clean dark navy for outer shell/sidebar area */
        justify-content: stretch;
        align-items: stretch;
        overflow: hidden;
        height: 100vh;
        margin: 0;
        padding: 0;
    }

    /* Desktop shell: sidebar + content */
    .desktop-shell {
        display: flex;
        width: 100%;
        height: 100vh;
        overflow: hidden;
    }

    /* ── Sidebar Navigation (Desktop Only) ────────── */
    .desktop-sidebar {
        width: 260px;
        min-width: 260px;
        background: #0f172a;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        display: flex !important;
        flex-direction: column;
        padding: 0;
        position: relative;
        z-index: 200;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
    }

    /* Elegant decorative glow in sidebar */
    .desktop-sidebar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 180px;
        background: radial-gradient(circle at top left, rgba(232, 25, 44, 0.15), transparent 70%);
        pointer-events: none;
    }

    .sidebar-brand {
        padding: 28px 22px 22px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        position: relative;
        z-index: 2;
    }

    .sidebar-brand-logo {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .sidebar-brand-icon {
        width: 44px;
        height: 44px;
        background: linear-gradient(135deg, var(--primary-red), #b5091f);
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        color: white;
        box-shadow: var(--shadow-red);
        flex-shrink: 0;
    }

    .sidebar-brand-text h4 {
        font-size: 16px;
        font-weight: 800;
        color: #ffffff;
        margin: 0 0 2px;
        letter-spacing: -0.3px;
    }

    .sidebar-brand-text p {
        font-size: 10px;
        color: rgba(255, 255, 255, 0.45);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin: 0;
    }

    /* Sidebar user card */
    .sidebar-user-card {
        margin: 18px 16px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        padding: 14px 16px;
        display: flex;
        align-items: center;
        gap: 12px;
        cursor: pointer;
        transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        z-index: 2;
        text-decoration: none;
        backdrop-filter: blur(8px);
    }

    .sidebar-user-card:hover {
        background: rgba(255, 255, 255, 0.09);
        border-color: rgba(255, 255, 255, 0.15);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

    .sidebar-user-avatar {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        object-fit: cover;
        flex-shrink: 0;
        border: 2px solid rgba(255, 255, 255, 0.2);
    }

    .sidebar-user-info {
        flex: 1;
        min-width: 0;
    }

    .sidebar-user-name {
        font-size: 14px;
        font-weight: 700;
        color: #fff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        letter-spacing: -0.2px;
    }

    .sidebar-user-role {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.55);
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        margin-top: 2px;
    }

    .sidebar-user-dot {
        width: 8px;
        height: 8px;
        background: var(--green-success);
        border-radius: 50%;
        flex-shrink: 0;
        box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
    }

    /* Sidebar nav links */
    .sidebar-nav {
        flex: 1;
        overflow-y: auto;
        padding: 10px 16px;
        display: flex;
        flex-direction: column;
        gap: 4px;
        position: relative;
        z-index: 2;
    }

    .sidebar-nav::-webkit-scrollbar {
        width: 4px;
    }

    .sidebar-nav::-webkit-scrollbar-track {
        background: transparent;
    }

    .sidebar-nav::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.15);
        border-radius: 4px;
    }

    .sidebar-nav::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.25);
    }

    .sidebar-nav-label {
        font-size: 10px;
        font-weight: 800;
        color: rgba(255, 255, 255, 0.35);
        text-transform: uppercase;
        letter-spacing: 1px;
        padding: 16px 12px 8px;
        margin: 0;
    }

    .sidebar-nav-link {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 12px 14px;
        border-radius: 12px;
        color: rgba(255, 255, 255, 0.6);
        font-size: 14px;
        font-weight: 600;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        text-decoration: none;
        position: relative;
        letter-spacing: -0.1px;
    }

    .sidebar-nav-link i {
        width: 20px;
        text-align: center;
        font-size: 16px;
        flex-shrink: 0;
        transition: all 0.25s;
    }

    .sidebar-nav-link:hover {
        color: rgba(255, 255, 255, 0.95);
        background: rgba(255, 255, 255, 0.08);
        transform: translateX(4px);
    }

    .sidebar-nav-link.active {
        color: #fff;
        background: linear-gradient(135deg, rgba(232, 25, 44, 0.35), rgba(180, 9, 31, 0.25));
        border: 1px solid rgba(232, 25, 44, 0.3);
        box-shadow: 0 8px 20px rgba(232, 25, 44, 0.2);
        transform: none;
    }

    .sidebar-nav-link.active i {
        color: #ff4d5e;
        transform: scale(1.1);
    }

    .sidebar-nav-link.active::before {
        content: '';
        position: absolute;
        left: 0;
        top: 20%;
        bottom: 20%;
        width: 4px;
        background: var(--primary-red);
        border-radius: 0 4px 4px 0;
    }

    /* Sidebar bottom: notification bell */
    .sidebar-bottom {
        padding: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        position: relative;
        z-index: 2;
        background: rgba(0, 0, 0, 0.1);
    }

    .sidebar-notif-btn {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        border-radius: 12px;
        color: rgba(255, 255, 255, 0.6);
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.25s ease;
        position: relative;
    }

    .sidebar-notif-btn i {
        width: 20px;
        text-align: center;
        font-size: 16px;
        flex-shrink: 0;
    }

    .sidebar-notif-btn:hover {
        color: rgba(255, 255, 255, 0.95);
        background: rgba(255, 255, 255, 0.08);
        transform: translateX(4px);
    }

    .sidebar-notif-badge {
        background: var(--primary-red);
        color: white;
        font-size: 10px;
        font-weight: 900;
        min-width: 20px;
        height: 20px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        padding: 0 6px;
        box-shadow: 0 0 10px rgba(232, 25, 44, 0.5);
    }

    /* ── Main Content Area (Seamless Desktop View) ── */
    .desktop-content {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        background-color: var(--bg-color);
        /* Clean elegant background (#f0f4f8) */
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        height: 100vh;
    }

    /* The mobile-app container becomes a clean wide layout wrapper */
    .mobile-app,
    .desktop-content>.mobile-app,
    .desktop-content .mobile-app {
        width: 100%;
        max-width: 1200px;
        min-height: 100%;
        box-shadow: none;
        background-color: transparent;
        /* No double background box */
        padding: 0 40px 60px;
    }

    /* ── Header Home (Dashboard Banner Card) ──────── */
    .header-home {
        border-radius: 28px;
        margin: 32px 0 36px;
        padding: 36px 44px;
        background: linear-gradient(135deg, #b5091f 0%, #c8102e 45%, #d42036 100%);
        box-shadow: 0 20px 40px rgba(232, 25, 44, 0.25), 0 8px 16px rgba(232, 25, 44, 0.15);
        position: relative;
        overflow: hidden;
    }

    .header-home .user-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        z-index: 2;
    }

    .header-home .profile-wrap {
        display: flex;
        align-items: center;
        gap: 24px;
    }

    .header-home .avatar-container {
        width: 72px;
        height: 72px;
    }

    .header-home .avatar {
        width: 72px;
        height: 72px;
        border-radius: 20px;
        border: 3px solid rgba(255, 255, 255, 0.25);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }

    .header-home .status-dot {
        width: 14px;
        height: 14px;
        bottom: 2px;
        right: 2px;
        border: 2px solid #c8102e;
    }

    .header-home .greeting {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .header-home .greeting p {
        font-size: 14px;
        opacity: 0.85;
        margin-bottom: 4px;
    }

    .header-home .greeting h2 {
        font-size: 28px;
        font-weight: 800;
        letter-spacing: -0.5px;
        margin-bottom: 6px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    }

    .header-home .greeting .role {
        font-size: 13px;
        padding: 4px 12px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(8px);
        border-radius: 20px;
        margin-bottom: 8px;
    }

    .header-home .greeting .spv-label {
        font-size: 12px !important;
        opacity: 0.9 !important;
        margin-bottom: 6px !important;
    }

    .header-home .greeting .location {
        font-size: 13px;
        opacity: 0.9;
    }

    .header-home .bell-icon {
        width: 54px;
        height: 54px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.28s ease;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        position: relative;
    }

    .header-home .bell-icon:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: translateY(-2px);
    }

    .header-home .bell-icon i {
        font-size: 24px !important;
    }

    .header-home .bell-icon .badge {
        top: -6px;
        right: -6px;
        width: 24px;
        height: 24px;
        font-size: 12px;
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    /* ── Header Page (Sub-pages Navbar) ───────────── */
    .header-page {
        border-radius: 22px;
        margin: 24px 0 32px;
        padding: 22px 32px;
        background: linear-gradient(135deg, #b5091f 0%, #c8102e 45%, #d42036 100%);
        box-shadow: 0 16px 32px rgba(232, 25, 44, 0.2), 0 4px 12px rgba(232, 25, 44, 0.1);
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }

    .header-page a {
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 18px;
        transition: all 0.25s ease;
    }

    .header-page a:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: translateX(-3px);
    }

    .header-page h2 {
        font-size: 22px;
        font-weight: 800;
        color: white;
        margin: 0;
        letter-spacing: -0.4px;
        flex: 1;
        text-align: center;
        padding-right: 44px;
        /* Balance the back button */
    }

    /* ── Container Clean Alignment ────────────────── */
    .container {
        padding: 0 !important;
    }

    /* ── Grid Layouts ─────────────────────────────── */
    /* Target Card */
    .target-card {
        border-radius: 24px;
        padding: 28px 32px !important;
        margin-bottom: 28px;
        box-shadow: var(--shadow-md);
        border: 1px solid var(--border-color);
        transition: all 0.3s ease;
    }

    .target-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        border-color: rgba(232, 25, 44, 0.2);
    }

    .target-card .target-header span:first-child {
        font-size: 16px !important;
    }

    .target-card .target-period {
        font-size: 13px !important;
        padding: 4px 12px;
        background: var(--bg-color);
        border-radius: 14px;
        font-weight: 600;
    }

    .target-card>div:nth-child(2) {
        gap: 32px !important;
        margin-top: 8px;
    }

    .target-card>div:nth-child(2)>div {
        gap: 16px !important;
        padding: 12px 24px !important;
        background: var(--bg-color);
        border-radius: 18px;
        border: 1px solid rgba(0, 0, 0, 0.03);
    }

    .target-card .progress-circle {
        width: 64px !important;
        height: 64px !important;
    }

    .target-card .progress-circle span {
        width: 48px !important;
        height: 48px !important;
        font-size: 14px !important;
    }

    .target-card>div:nth-child(2)>div span:nth-child(2) {
        font-size: 20px !important;
    }

    /* Button Input Aktivitas Banner */
    .btn-input-aktivitas {
        border-radius: 24px;
        padding: 24px 32px;
        margin-bottom: 32px;
        box-shadow: 0 16px 32px rgba(232, 25, 44, 0.2);
        transition: all 0.3s ease;
    }

    .btn-input-aktivitas:hover {
        transform: translateY(-4px);
        box-shadow: 0 24px 48px rgba(232, 25, 44, 0.3);
    }

    .btn-input-aktivitas .btn-icon-wrapper {
        width: 56px;
        height: 56px;
        font-size: 24px;
        border-radius: 18px;
    }

    .btn-input-aktivitas .btn-input-text h4 {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .btn-input-aktivitas .btn-input-text p {
        font-size: 13px;
    }

    /* Category Card & Grid */
    .section-header-row {
        margin-bottom: 20px;
        padding: 0 4px;
    }

    .section-title {
        font-size: 20px;
        font-weight: 800;
        letter-spacing: -0.4px;
    }

    .link-lihat-semua {
        font-size: 14px;
        font-weight: 700;
    }

    .category-card {
        border-radius: 24px;
        padding: 28px;
        margin-bottom: 32px;
        box-shadow: var(--shadow-md);
    }

    .category-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 24px;
    }

    .category-item {
        padding: 20px;
        border-radius: 20px;
        background: var(--bg-color);
        border: 1px solid rgba(0, 0, 0, 0.03);
        transition: all 0.28s ease;
    }

    .category-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
        background: white;
        border-color: var(--primary-red-glow);
    }

    .category-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
        border-radius: 18px;
        margin-bottom: 14px;
    }

    .category-text {
        font-size: 14px;
        font-weight: 700;
    }

    /* Summary Grid (Ringkasan Hari Ini) */
    .grid-2 {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 24px;
        margin-bottom: 32px;
    }

    .summary-card {
        border-radius: 24px;
        padding: 24px 28px;
        box-shadow: var(--shadow-md);
        transition: all 0.3s ease;
    }

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

    .summary-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
        border-radius: 18px;
    }

    .summary-info span {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .summary-info h4 {
        font-size: 32px;
        font-weight: 900;
    }

    /* Activity Cards */
    .activity-card-clickable {
        border-radius: 20px;
        padding: 20px 24px;
        margin-bottom: 16px;
        box-shadow: var(--shadow-sm);
        transition: all 0.3s ease;
    }

    .activity-card-clickable:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
        border-color: rgba(232, 25, 44, 0.2);
    }

    /* ── Bottom Nav: Hide on Desktop ──────────────── */
    .bottom-nav {
        display: none !important;
    }

    /* ── Sticky Fixed Bottom Action Bar ───────────── */
    .desktop-content .fixed-bottom,
    .fixed-bottom {
        position: sticky !important;
        bottom: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        background: rgba(255, 255, 255, 0.92) !important;
        backdrop-filter: blur(12px) !important;
        border-radius: 22px !important;
        padding: 20px 32px !important;
        box-shadow: 0 -12px 36px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.05) !important;
        margin-top: 36px !important;
        z-index: 100 !important;
    }

    /* ── Modal Overlay: Full Viewport Centered ────── */
    .modal-overlay {
        left: 0 !important;
        transform: none !important;
        max-width: 100% !important;
        background: rgba(15, 23, 42, 0.65) !important;
        backdrop-filter: blur(12px) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 24px !important;
        box-sizing: border-box !important;
    }

    /* Modal becomes a centered dialog */
    .modal-content,
    #adm-sheet {
        border-radius: 28px !important;
        max-width: 560px !important;
        width: 100% !important;
        max-height: 85vh !important;
        transform: scale(0.92) !important;
        transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease !important;
        opacity: 0 !important;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35) !important;
        margin: 0 !important;
        overflow-y: auto !important;
        background: white !important;
    }

    .modal-overlay.show .modal-content,
    .modal-overlay.show #adm-sheet {
        transform: scale(1) !important;
        opacity: 1 !important;
    }

    #photoViewerModal.modal-overlay {
        left: 0 !important;
        max-width: 100% !important;
        transform: none !important;
    }

    /* Drag handle hide on desktop */
    .jm-drag-handle,
    .modal-drag-handle {
        display: none !important;
    }

    /* ── Scrollbars ───────────────────────────────── */
    .desktop-content::-webkit-scrollbar {
        width: 8px;
    }

    .desktop-content::-webkit-scrollbar-track {
        background: transparent;
    }

    .desktop-content::-webkit-scrollbar-thumb {
        background: rgba(15, 23, 42, 0.15);
        border-radius: 4px;
    }

    .desktop-content::-webkit-scrollbar-thumb:hover {
        background: rgba(15, 23, 42, 0.3);
    }

    /* ── Login Page (Skip Sidebar Layout) ─────────── */
    body.login-page .desktop-shell {
        display: block;
    }

    body.login-page .desktop-sidebar {
        display: none !important;
    }

    body.login-page .desktop-content {
        display: block;
        background: transparent;
        height: auto;
    }

    body.login-page .mobile-app {
        margin: 32px auto;
        max-width: 960px !important;
        width: 94vw !important;
        padding: 0;
        box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35), 0 8px 32px rgba(0, 0, 0, 0.2);
    }
}