/* ========== RESET & VARIABLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0b1219;  /* carbon black base */
    color: #e6edf3;  /* white with slight grey */
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

:root {
    --cyan: #00bcd4;           /* cyan terang */
    --cyan-light: #4dd0e1;      /* cyan soft */
    --cyan-glow: rgba(0, 188, 212, 0.3);
    --carbon: #0f1a24;          /* carbon dalam */
    --carbon-light: #1e2b36;     /* carbon medium */
    --carbon-soft: #10222e;      /* carbon soft */
    --white: #ffffff;
    --white-soft: #e6edf3;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #1a2833; }
::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan-light); }

/* ========== HEADER (STICKY) ========== */
.navbar {
    background: #0b141c;
    padding: 0.8rem 2rem;
    border-bottom: 2px solid var(--cyan);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    box-shadow: 0 4px 20px rgba(0,188,212,0.2);  /* cyan glow */
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    background-color: rgba(11, 20, 28, 0.95);
    gap: 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.logo-img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 0 8px var(--cyan));  /* cyan glow */
    border-radius: 8px;
    background: white;
    padding: 4px;
    object-fit: contain;
}

.title-unit {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    background: linear-gradient(135deg, #fff 0%, var(--cyan) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
    text-shadow: 0 0 10px var(--cyan-glow);
}

/* ========== NAVIGATION TABS ========== */
.nav-tabs {
    display: flex;
    gap: 8px;
    background: #10222e;  /* carbon soft */
    padding: 0.5rem 1rem;
    border-radius: 48px;
    border: 1px solid #1e3b4a;
    flex-wrap: wrap;
}

.nav-tabs a {
    text-decoration: none;
}

.nav-btn {
    background: transparent;
    border: none;
    color: #a0b8c5;  /* white soft */
    font-weight: 600;
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    text-decoration: none;
}

.nav-btn i {
    color: var(--cyan);
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(0, 188, 212, 0.1);
    color: white;
    transform: translateY(-2px);
}

.nav-btn.active {
    background: var(--cyan);
    color: #0b141c;  /* carbon */
    box-shadow: 0 0 20px var(--cyan);
}

.nav-btn.active i {
    color: #0b141c;  /* carbon */
}

/* ========== MAIN CONTAINER ========== */
.main-container {
    flex: 1;
    padding: 2rem 2rem 1.5rem;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

/* ========== POPUP REMINDER ========== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.popup-card {
    background: linear-gradient(145deg, #0b2635, #123645);
    border: 2px solid var(--cyan);
    border-radius: 30px;
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    box-shadow: 0 30px 50px rgba(0,188,212,0.3);
    position: relative;
    text-align: center;
    animation: popupAppear 0.3s ease;
}

@keyframes popupAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    transition: all 0.3s ease;
}

.popup-close:hover {
    color: var(--cyan);
    transform: rotate(90deg);
}

.popup-message {
    background: #0c2c3a;
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid #1c6c80;
    margin: 1.5rem 0;
}

.deadline {
    font-size: 2.5rem;
    color: var(--cyan);
    font-weight: 800;
    margin: 1rem 0;
    text-shadow: 0 0 15px var(--cyan);
}

.btn-primary {
    background: var(--cyan);
    color: #0b141c;
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 40px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px var(--cyan-glow);
}

.btn-primary:hover {
    background: var(--cyan-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--cyan);
}

/* ========== POPUP DETAIL PRODUK ========== */
.popup-detail {
    max-width: 400px;
    padding: 1.5rem;
    text-align: left;
}

.popup-detail h3 {
    color: var(--cyan);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-right: 30px;
    border-bottom: 2px solid var(--cyan);
    padding-bottom: 0.5rem;
}

.detail-row {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #1c5568;
}

.detail-label {
    font-size: 0.7rem;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-value {
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 0.2rem;
    color: white;
}

/* ========== CARDS ========== */
.card {
    background: var(--carbon-light);
    border-radius: 28px;
    padding: 1.5rem;
    border: 1px solid #264653;
    box-shadow: 0 20px 30px -10px rgba(0,188,212,0.2);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--cyan);
    box-shadow: 0 20px 30px -10px var(--cyan-glow);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 6px solid var(--cyan);
    padding-left: 1rem;
    color: white;
}

.card-title i {
    color: var(--cyan);
    filter: drop-shadow(0 0 5px var(--cyan));
}

/* ========== GRIDS ========== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
}

/* ========== CHART ========== */
.chart-container {
    background: #102531;
    border-radius: 24px;
    padding: 1rem;
    height: 280px;
    border: 1px solid #1b4b5e;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

/* ========== KATEGORI STATS ========== */
.kategori-stats {
    background: #0c2635;
    border-radius: 24px;
    padding: 1.2rem;
    border: 1px solid #1b5e7a;
}

.kategori-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.kategori-item {
    background: #1a3d4a;
    border-radius: 40px;
    padding: 0.8rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--cyan);
    transition: all 0.3s ease;
}

.kategori-item:hover {
    background: #1f4a5a;
    transform: translateX(5px);
}

.kategori-count {
    background: var(--cyan);
    color: #0b141c;
    font-weight: 700;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    box-shadow: 0 0 10px var(--cyan);
}

/* ========== SLIDER ========== */
.slider-container {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid var(--cyan);
    box-shadow: 0 0 20px var(--cyan-glow);
}

.slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.slider-container:hover .slider-img {
    transform: scale(1.05);
}

.slider-overlay {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    font-size: 1.2rem;
    border-top: 1px solid var(--cyan);
}

/* ========== INFO LIST ========== */
.info-list {
    list-style: none;
}

.info-item {
    background: #1c3140;
    margin-bottom: 12px;
    padding: 1rem 1.3rem;
    border-radius: 40px;
    border-left: 5px solid var(--cyan);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #223d4f;
    transform: translateX(5px);
    border-left-width: 8px;
}

.info-item i {
    color: var(--cyan);
    font-size: 1.2rem;
}

/* ========== CARTA ORGANISASI ========== */
.org-tree {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.org-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
}

.org-card {
    background: #0e2632;
    border-radius: 20px;
    padding: 1rem;
    border: 1px solid #1b5e7a;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 280px;
    transition: all 0.3s ease;
}

.org-card:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 15px var(--cyan-glow);
    transform: translateY(-2px);
}

.org-card i {
    color: var(--cyan);
    font-size: 1.3rem;
    margin-top: 3px;
    filter: drop-shadow(0 0 5px var(--cyan));
}

.org-details {
    flex: 1;
}

.org-name {
    font-weight: 700;
    color: white;
    font-size: 0.95rem;
}

.org-wilayah {
    font-size: 0.8rem;
    color: var(--cyan);
    margin: 2px 0;
}

.org-email {
    font-size: 0.7rem;
    color: #9bb7c9;
    word-break: break-all;
}

/* ========== FILTER SECTION ========== */
.filter-section {
    background: #0c2635;
    border-radius: 60px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    border: 1px solid #1b5e7a;
}

.filter-select {
    background: #1e3f4e;
    border: 2px solid var(--cyan);
    color: white;
    padding: 0.7rem 2rem 0.7rem 1rem;
    border-radius: 40px;
    min-width: 220px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:hover {
    background: #234b5c;
    border-color: var(--cyan-light);
}

.filter-badge {
    background: var(--cyan);
    color: #0b141c;
    border-radius: 30px;
    padding: 0.4rem 1.2rem;
    font-weight: 700;
    box-shadow: 0 0 10px var(--cyan);
}

.filter-reset {
    background: transparent;
    border: 2px solid var(--cyan);
    color: var(--cyan);
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-reset:hover {
    background: var(--cyan);
    color: #0b141c;
    box-shadow: 0 0 15px var(--cyan);
}

/* ========== JADUAL + PAGINATION ========== */
.table-responsive {
    overflow-x: auto;
    background: #102531;
    border-radius: 24px;
    padding: 0.2rem;
    border: 1px solid #1b4b5e;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 600px;
}

th {
    background: #06313f;
    color: var(--cyan);
    padding: 1rem 0.8rem;
    border-bottom: 3px solid var(--cyan);
    font-weight: 600;
}

td {
    padding: 1rem 0.8rem;
    border-bottom: 1px solid #1d4b5e;
    color: #e6edf3;
}

tr {
    cursor: pointer;
    transition: all 0.2s ease;
}

tr:hover td {
    background: #1b4050;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.pagination-btn {
    background: transparent;
    border: 2px solid var(--cyan);
    color: var(--cyan);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--cyan);
    color: #0b141c;
    box-shadow: 0 0 15px var(--cyan);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-info {
    color: white;
    font-weight: 500;
}

/* ========== PRODUK PATEN (KOSONG) ========== */
.empty-patent {
    background: linear-gradient(145deg, #0a1f2b, #0b2635);
    border-radius: 40px;
    padding: 4rem 2rem;
    text-align: center;
    border: 2px dashed var(--cyan);
}

.empty-patent i {
    color: var(--cyan);
    filter: drop-shadow(0 0 15px var(--cyan));
}

/* ========== SOP INTERAKTIF ========== */
.sop-interaktif {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

.sop-card-interaktif {
    background: linear-gradient(145deg, #0d2b3a, #0a1f2b);
    border-radius: 24px;
    padding: 1.5rem;
    border: 1px solid #1f5568;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    display: block;
}

.sop-card-interaktif:hover {
    transform: translateY(-5px);
    border-color: var(--cyan);
    box-shadow: 0 10px 25px var(--cyan-glow);
}

.sop-icon {
    font-size: 2.5rem;
    color: var(--cyan);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--cyan));
}

.sop-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.sop-desc {
    color: #9bb7c9;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.sop-btn {
    background: transparent;
    border: 2px solid var(--cyan);
    color: var(--cyan);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    display: inline-block;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.sop-card-interaktif:hover .sop-btn {
    background: var(--cyan);
    color: #0b141c;
}

/* ========== COE ========== */
.coe-coming {
    background: linear-gradient(145deg, #0a2635, #0f3345);
    border-radius: 50px;
    padding: 5rem 2rem;
    text-align: center;
    border: 3px dashed var(--cyan);
}

.coe-coming i {
    color: var(--cyan);
    filter: drop-shadow(0 0 20px var(--cyan));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ========== FOOTER ========== */
footer {
    text-align: center;
    padding: 1.2rem;
    border-top: 1px solid #1a3645;
    margin-top: auto;
    color: #9bb7c9;
}

footer i {
    color: var(--cyan);
}

/* ========== MEDIA QUERIES ========== */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 0.6rem 1rem;
    }
    .logo-img {
        height: 36px;
    }
    .title-unit {
        font-size: 1rem;
    }
    .nav-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        width: 100%;
        padding: 0.4rem;
    }
    .nav-btn {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
    .main-container {
        padding: 1rem 0.8rem;
    }
    .grid-2 {
        display: block;
    }
    .card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    .chart-container {
        height: 200px;
    }
    .kategori-grid {
        grid-template-columns: 1fr;
    }
    .slider-container {
        height: 200px;
    }
    .org-card {
        min-width: 100%;
    }
    .filter-section {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }
    .filter-select {
        width: 100%;
    }
    .sop-interaktif {
        grid-template-columns: 1fr;
    }
    .pagination {
        flex-wrap: wrap;
    }
}