.brand-status-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-icon {
    width: 28px;
    height: 28px;
    background: #d1fae5;
    color: #059669;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.brand-text {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    letter-spacing: 0.3px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-green);
    box-shadow: 0 0 6px var(--color-green);
    transition: all 0.3s ease;
    flex-shrink: 0 !important;
}

.status-dot.offline { 
    background: #ef4444; 
    box-shadow: 0 0 6px #ef4444; 
}

.user-status { 
    display: flex; 
    align-items: right; 
    gap: 8px; 
    font-size: 0.75rem; 
    font-weight: 500; 
    color: var(--text-muted); 
    background: var(--bg-card); 
    padding: 5px 12px; 
    /*border-radius: 30px; */
    /*border: 1px solid var(--border-color); */
    box-shadow: var(--shadow-sm); 
    white-space: nowrap;
}

.btn-login-cs {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #3b82f6;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
    cursor: pointer;
    font-family: inherit;
}

.btn-login-cs:hover {
    background: #2563eb;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.btn-logout-cs {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #ef4444;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
    cursor: pointer;
    font-family: inherit;
}

.btn-logout-cs2 {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #60ab96;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
    cursor: pointer;
    font-family: inherit;
}

.btn-logout-cs:hover {
    background: #dc2626;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.3);
}

.btn-logout-cs2:hover {
    background: #65a694;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(134, 194, 177, 0.3);
}

.form-input-ob {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    background: #ffffff;
}

.form-input-ob:focus {
    border-color: #3b82f6;
}

.top-section { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 14px; 
    margin-bottom: 14px; 
    align-items: stretch;
}

.date-wrapper { 
    display: flex; 
    align-items: center; 
    background: var(--bg-card);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    flex: 0 0 auto;
}

.date-filter-form { 
    display: flex; 
    gap: 8px; 
    align-items: center; 
    margin: 0; 
}

.date-filter-form input { 
    padding: 6px 10px; 
    border: 1px solid var(--border-color); 
    border-radius: 4px; 
    font-family: inherit; 
    font-size: 0.75rem; 
    color: var(--text-dark); 
    background: #f8faf9; 
    outline: none; 
    transition: border-color 0.2s;
}

.date-filter-form input:focus {
    border-color: var(--color-blue);
}

.date-filter-form span {
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.date-filter-form button { 
    padding: 6px 12px; 
    background: var(--color-blue); 
    color: white; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
    font-family: inherit; 
    font-size: 0.75rem; 
    font-weight: 600; 
    transition: background 0.2s; 
    letter-spacing: 0.2px;
}

.date-filter-form button:hover {
    background: #3b82f6;
}

.stats-grid { 
    display: flex; 
    flex: 1;
    flex-wrap: wrap;
    gap: 14px; 
}

.stat-card { 
    flex: 1;
    min-width: 180px;
    background: linear-gradient(125deg, #ffffff 0%, #f2b6e2 60%); 
    border: 1px solid var(--border-color); 
    border-radius: var(--radius-md); 
    padding: 14px 16px; 
    display: flex; 
    align-items: center; 
    gap: 14px; 
    box-shadow: var(--shadow-sm); 
}

.stat-card1 { 
    flex: 1;
    min-width: 180px;
    background: linear-gradient(125deg, #ffffff 0%, #91bdf2 60%); 
    border: 1px solid var(--border-color); 
    border-radius: var(--radius-md); 
    padding: 14px 16px; 
    display: flex; 
    align-items: center; 
    gap: 14px; 
    box-shadow: var(--shadow-sm); 
}

.stat-card2 { 
    flex: 1;
    min-width: 180px;
    background: linear-gradient(125deg, #ffffff 0%, #befade 60%); 
    border: 1px solid var(--border-color); 
    border-radius: var(--radius-md); 
    padding: 14px 16px; 
    display: flex; 
    align-items: center; 
    gap: 14px; 
    box-shadow: var(--shadow-sm); 
}

.stat-icon { font-size: 1.3rem; background: #f8faf9; padding: 10px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.stat-info { display: flex; flex-direction: column; }
.stat-value { font-size: 1.2rem; font-weight: 600; color: var(--text-dark); line-height: 1.2; }
.stat-value span { font-size: 0.75rem; color: var(--text-muted); font-weight: 400; margin-left: 2px; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 400; margin-top: 2px; letter-spacing: 0.1px; }

.middle-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; margin-top: 0px; margin-bottom: 14px; }
.panel { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.panel-title { font-size: 0.85rem; font-weight: 600; margin-bottom: 14px; color: var(--text-dark); display: flex; align-items: center; gap: 6px; letter-spacing: 0.2px; }
.chart-wrapper { position: relative; height: 240px; width: 100%; }

.info-list { display: flex; flex-direction: column; gap: 12px; }
.info-item { padding-bottom: 12px; border-bottom: 1px solid var(--border-color); }
.info-item:last-child { border-bottom: none; padding-bottom: 0; }
.info-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.info-val { font-size: 0.75rem; font-weight: 500; color: var(--text-dark); }

.badge { padding: 4px 8px; border-radius: 4px; font-size: 0.65rem; font-weight: 600; }
.bg-red-light { background: #fce7f3; color: #db2777; }
.bg-green-light { background: #d1fae5; color: #059669; }

.table-responsive { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); padding: 10px 12px; border-bottom: 1px solid var(--border-color); white-space: nowrap; letter-spacing: 0.1px; background: transparent; }
td { font-size: 0.75rem; color: var(--text-dark); padding: 10px 12px; border-bottom: 1px solid var(--border-color); white-space: nowrap; }
tbody tr:hover { background-color: #f8faf9; }

.user-progress-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
}

.user-progress-card:last-child {
    margin-bottom: 0;
}

.user-progress-header-modern {
    background: #f8faf9;
    padding: 16px;
    border-bottom: 1px dashed var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    background: #d1fae5;
    color: #059669;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.user-info-modern {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-name-modern {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.user-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.office-badge, .region-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.office-badge { background: #e0e7ff; color: #4338ca; }
.region-badge { background: #fce7f3; color: #db2777; }

.user-progress-body {
    padding: 0 16px;
}

.task-item {
    padding: 16px 0;
    border-bottom: 1px solid #eef2f1;
}

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

.task-row {
    display: flex;
    align-items: flex-start;
    font-size: 0.75rem;
    margin-bottom: 10px;
}

.task-label {
    width: 90px;
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-top: 2px;
}

.task-separator {
    width: 10px;
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 5px;
    margin-top: 2px;
}

.task-value {
    color: var(--text-dark);
    flex: 1;
    word-wrap: break-word;
    word-break: break-word;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mobile-only { display: none; }
.desktop-only { display: block; }
.cs-mobile-view { display: none; }

.form-grid-ob {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.form-span-2 {
    grid-column: span 2;
}

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

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }

    .brand-status-wrapper { 
        margin-bottom: 15px; 
        flex-direction: row; 
        align-items: flex-start; 
        justify-content: space-between; 
        gap: 10px;
    }
    
    .header-actions {
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }

    .brand-icon { width: 24px; height: 24px; font-size: 0.9rem; border-radius: 5px; }
    .brand-text { font-size: 0.9rem; white-space: nowrap; }

    .user-status { 
        gap: 6px; 
        font-size: 0.7rem; 
        padding: 5px 10px; 
    }

    .top-section { 
        flex-direction: column; 
        align-items: stretch; 
        gap: 10px; 
    }
    
    .date-wrapper {
        width: 100%; 
        padding: 10px 12px; 
    }
    
    .date-filter-form { width: 100%; flex-direction: row; align-items: center; gap: 6px; }
    .date-filter-form input { flex: 1; font-size: 0.75rem; padding: 6px 8px; border-radius: 6px; min-width: 0;}
    .date-filter-form span { font-size: 0.75rem; }
    .date-filter-form button { flex: 0 0 auto; font-size: 0.75rem; padding: 6px 12px; border-radius: 6px; }

    .stats-grid { flex-direction: column; gap: 10px; }
    .stat-card { padding: 12px; gap: 10px; border-radius: 8px; min-width: 100%; }
    .stat-icon { font-size: 1.2rem; padding: 8px; border-radius: 8px; }
    .stat-value { font-size: 1.1rem; }
    .stat-value span { font-size: 0.7rem; }
    .stat-label { font-size: 0.7rem; }

    .panel { padding: 12px; border-radius: 8px; margin-bottom: 12px; }
    .panel-title { font-size: 0.8rem; margin-bottom: 10px; }
    .info-label { font-size: 0.7rem; }
    .info-val { font-size: 0.7rem; }
    .chart-wrapper { height: 200px; }
    
    .desktop-view { display: none !important; }
    
    .slide-hint {
        font-size: 0.7rem;
        color: #9ca3af;
        text-align: left;
        margin-bottom: 10px;
        font-style: italic;
    }

    .cs-mobile-view, .mobile-view { 
        display: flex !important; 
        overflow-x: auto; 
        scroll-snap-type: x mandatory; 
        gap: 10px; 
        scrollbar-width: none;
        padding-bottom: 10px;
    }
    .cs-mobile-view::-webkit-scrollbar, .mobile-view::-webkit-scrollbar { display: none; }
    
    .log-slide-card, .lapor-slide-card { 
        flex: 0 0 100%; 
        scroll-snap-align: center; 
        background: #ffffff; 
        border: 1px solid #e5e7eb; 
        border-radius: 16px; 
        padding: 20px;
        box-sizing: border-box;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        margin-bottom: 0 !important;
    }

    .form-grid-ob {
        grid-template-columns: 1fr;
    }
    .form-span-2 {
        grid-column: span 1;
    }
}

.btn-bukti {
    background: #e0fee3;
    color: #4c7d48;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-block;
    cursor: pointer;
    font-family: inherit;
    margin-right: 4px;
}

.btn-bukti:hover {
    background: #bae6fd;
    color: #0369a1;
}

.mobile-view { display: none; }
    
.log-list-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f9fafb; }
.log-label { font-size: 13px; color: #6b7280; }
.log-value { font-size: 13px; font-weight: 600; color: #1f2937; }

.modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.5); 
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-card);
    margin: auto;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    animation: modalFadeIn 0.3s ease;
}

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

.close-modal {
    color: var(--text-muted);
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-modal:hover,
.close-modal:focus {
    color: #ef4444;
    text-decoration: none;
}


.modal-header {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.modal-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}