/* ========== REVISI MODERN VALIDATION CSS - AUTO COLLAPSE + STICKY HEADER + SEARCH ========== */
:root {
    --primary-blue: #002B95; 
    --hover-blue: #001f6d;
    --bg-light: #f8fafc;
    --border-thin: #cbd5e1;
    --text-dark: #1e293b;
    --sidebar-wide: 260px;
    --sidebar-narrow: 80px;
    --row-hover: #eef2ff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

.container { display: flex; min-height: 100vh; }

/* SIDEBAR AUTO COLLAPSE */
.sidebar {
    width: var(--sidebar-narrow);
    background: var(--primary-blue);
    color: white;
    padding: 1.5rem 0.8rem;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 2px 0 12px rgba(0,0,0,0.05);
}

.sidebar:hover {
    width: var(--sidebar-wide);
}

.sidebar .logo h3 { 
    font-size: 1.2rem; 
    margin-bottom: 2rem; 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    padding-left: 10px;
    letter-spacing: -0.2px;
}

.sidebar ul { list-style: none; }

.menu-item a {
    display: flex; 
    align-items: center; 
    padding: 12px 15px; 
    color: rgba(255,255,255,0.85);
    text-decoration: none; 
    border-radius: 8px; 
    margin-bottom: 5px;
    transition: 0.3s;
}

.menu-item a i {
    min-width: 25px;
    font-size: 1.2rem;
    text-align: center;
}

.menu-item a span {
    opacity: 0;
    transition: opacity 0.3s;
    margin-left: 10px;
}

.sidebar:hover .menu-item a span {
    opacity: 1;
}

.menu-item a:hover, .menu-item.active a {
    background: rgba(255,255,255,0.15); 
    color: #fff;
}

/* MAIN CONTENT */
.content { 
    margin-left: var(--sidebar-narrow); 
    width: calc(100% - var(--sidebar-narrow)); 
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* STICKY HEADER ZONE */
.sticky-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 98;
    background: var(--bg-light);
    transition: all 0.2s ease;
}

/* Header Logo area */
.content-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0.75rem 2rem 0.5rem 2rem;
    background: var(--bg-light);
}
.main-logo { 
    height: 38px; 
    width: auto; 
    opacity: 0.92;
    transition: 0.2s;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.05));
}

/* Judul halaman */
.title-section {
    padding: 0rem 2rem 0.75rem 2rem;
    background: var(--bg-light);
}

.title-section h2 {
    font-size: 1.55rem;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
    letter-spacing: -0.3px;
    border-left: 4px solid var(--primary-blue);
    padding-left: 1rem;
}

/* TABS styling */
.validation-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 1.25rem;
    padding-bottom: 0;
}
.tab-btn { 
    padding: 8px 24px; 
    border: none; 
    background: #eef2ff; 
    cursor: pointer; 
    border-radius: 40px; 
    font-weight: 700; 
    transition: 0.25s ease;
    font-size: 0.9rem;
    color: #1e293b;
}
.tab-btn.active { 
    background: var(--primary-blue); 
    color: white; 
    box-shadow: 0 2px 6px rgba(0,43,149,0.2);
}
.tab-btn:hover:not(.active) {
    background: #dfe7f5;
    transform: translateY(-1px);
}

/* DASHBOARD CARDS */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 1rem; }
.card {
    background: white; border-radius: 20px; padding: 1.5rem;
    border: 1px solid var(--border-thin); transition: 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 20px -12px rgba(0,0,0,0.1); }

/* REMINDER FULL WIDTH */
.full-width-card {
    grid-column: 1 / -1;
    background: #fff9e6;
    border-left: 5px solid #f59e0b;
}
.full-width-card p {
    margin: 8px 0;
}
.full-width-card i {
    color: #f59e0b;
    margin-right: 8px;
}

/* TABEL */
.contact-category {
    margin-bottom: 2rem;
}
.contact-category h3 {
    background:#eef2ff; 
    padding:8px 12px; 
    border-left:4px solid #002B95; 
    margin: 20px 0 12px 0; 
    font-size: 0.9rem;
    border-radius: 0 12px 12px 0;
}
.table-container { 
    background: white; 
    border-radius: 14px; 
    overflow: auto; 
    border: 1px solid var(--border-thin);
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.data-table { 
    width: 100%; 
    border-collapse: collapse; 
    min-width: 500px;
}
.data-table th, .data-table td {
    padding: 6px 12px;
    border: 1px solid var(--border-thin); 
    font-size: 0.95rem;
}
.data-table th { 
    background: #f8fafc; 
    font-weight: 700; 
    color: #1e293b;
}
.data-table tbody tr:hover {
    background-color: var(--row-hover);
    transition: background-color 0.2s ease-in-out;
}

/* SEARCH CONTAINER - Diatas judul tabel */
.search-container {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 320px;
}
.search-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
    pointer-events: none;
    transition: color 0.2s ease;
}
.search-input {
    width: 100%;
    padding: 10px 16px 10px 38px;
    border: 1px solid var(--border-thin);
    border-radius: 40px;
    font-size: 0.85rem;
    font-family: inherit;
    background: white;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.search-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0,43,149,0.1);
}
.search-input:focus + i {
    color: var(--primary-blue);
}
.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: all 0.2s;
}
.search-clear:hover {
    background: #e2e8f0;
    color: #1e293b;
}
.no-result {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 14px;
    border: 1px solid var(--border-thin);
    color: #64748b;
    font-size: 0.9rem;
}
.no-result i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
    color: #cbd5e1;
}

/* TOMBOL VIEW */
.view-btn {
    background: var(--primary-blue); color: white; border: none;
    padding: 4px 14px; border-radius: 30px; cursor: pointer;
    font-size: 0.75rem; font-weight: 600; transition: 0.2s;
}
.view-btn:hover { background: var(--hover-blue); transform: scale(1.02); }

/* MODAL */
.modal {
    display: none; position: fixed; z-index: 1000; left: 0; top: 0;
    width: 100%; height: 100%; background: rgba(0,0,0,0.5);
    align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}
.modal.show { display: flex; opacity: 1; }
.modal-content {
    background: white; width: 90%; max-width: 800px; padding: 2rem;
    border-radius: 24px; position: relative; max-height: 85vh; overflow-y: auto;
    transform: translateY(-20px); transition: transform 0.3s ease;
    box-shadow: 0 30px 40px rgba(0,0,0,0.2);
}
.modal.show .modal-content { transform: translateY(0); }
.probing-image { 
    width: 100%; 
    border-radius: 16px; 
    margin: 15px 0; 
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.content-main-padding {
    padding: 0.5rem 2rem 2rem 2rem;
}

/* Validation section wrapper */
.validation-section-wrapper {
    display: flex;
    flex-direction: column;
}

@media (max-width: 680px) {
    .content-header { padding: 0.75rem 1rem 0.25rem 1rem; }
    .title-section { padding: 0rem 1rem 0.75rem 1rem; }
    .content-main-padding { padding: 0.5rem 1rem 2rem 1rem; }
    .tab-btn { padding: 6px 16px; font-size: 0.8rem; }
    .search-wrapper { max-width: 100%; }
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #eef2ff; border-radius: 4px; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 4px; }