/* ============================================================
   shared.css — Style bersama untuk semua halaman
   PAMDES AIQ BELEQ - SAMBIK ELEN
   ============================================================ */

/* ===== VARIABEL OVERRIDE ===== */
:root {
    --pamdes-blue: #0D47A1;
    --pamdes-mid: #1565C0;
    --pamdes-light: #1976D2;
    --pamdes-accent: #00B8D9;
    --pamdes-water: #00E5FF;
    --nav-height: 68px;
}

/* ===== HEADER / NAVBAR ===== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(8, 14, 36, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 229, 255, 0.12);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    height: var(--nav-height);
}

#main-header .nav-container {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Logo */
#main-header .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

#main-header .logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--pamdes-mid), var(--pamdes-accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
}

#main-header .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

#main-header .logo-main {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    color: var(--pamdes-water);
    white-space: nowrap;
}

#main-header .logo-sub {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.62rem;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
}

/* Nav Links */
#main-header .nav-links {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

#main-header .nav-links a {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

#main-header .nav-links a:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

#main-header .nav-links a.active {
    background: rgba(0, 229, 255, 0.12);
    color: var(--pamdes-water);
    font-weight: 600;
}

#main-header .nav-links a.nav-logout {
    margin-left: 0.5rem;
    border: 1px solid rgba(255, 61, 0, 0.4);
    color: #FF7043;
    border-radius: 8px;
    padding: 0.4rem 0.9rem;
}

#main-header .nav-links a.nav-logout:hover {
    background: rgba(255, 61, 0, 0.1);
    color: #FF5252;
    border-color: rgba(255, 61, 0, 0.7);
}

/* ===== FOOTER ===== */
.app-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 1.2rem 0;
    margin-top: 4rem;
}

.app-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.app-footer .footer-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--pamdes-water);
}

.app-footer .footer-copy {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ===== PAGE WRAPPER ===== */
.page-wrap {
    padding-top: calc(var(--nav-height) + 2rem);
    padding-bottom: 4rem;
}

/* ===== SECTION CARD ===== */
.section-card {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
}

/* ===== PAGE TITLE ===== */
.page-title {
    margin-bottom: 1.8rem;
}

.page-title h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
}

.page-title p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 0.3rem;
}

.page-title .breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.page-title .breadcrumb span {
    color: var(--pamdes-water);
}

/* ===== BADGE ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge-success {
    background: rgba(0, 200, 83, 0.15);
    color: #00C853;
}

.badge-warning {
    background: rgba(255, 171, 0, 0.15);
    color: #FFAB00;
}

.badge-danger {
    background: rgba(255, 61, 0, 0.15);
    color: #FF5252;
}

.badge-info {
    background: rgba(0, 229, 255, 0.12);
    color: #00E5FF;
}

/* ===== NOTE / ALERT BOX ===== */
.alert-box {
    display: flex;
    gap: 0.8rem;
    padding: 1rem 1.3rem;
    border-radius: 10px;
    font-size: 0.87rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    border: 1px solid;
}

.alert-box.warning {
    background: rgba(255, 171, 0, 0.07);
    border-color: rgba(255, 171, 0, 0.3);
    color: rgba(255, 255, 255, 0.85);
}

.alert-box .alert-icon {
    flex-shrink: 0;
    font-size: 1.1rem;
    color: var(--warning);
    margin-top: 0.1rem;
}

.alert-box strong {
    color: var(--warning);
}

/* ===== FORM LABEL SECTION ===== */
.field-section {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--pamdes-water);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 229, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== STAT CARDS ===== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.stat-pill {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 1.3rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s;
}

.stat-pill:hover {
    transform: translateY(-2px);
}

.stat-pill-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-pill-icon.c {
    background: rgba(0, 229, 255, 0.12);
    color: var(--pamdes-water);
}

.stat-pill-icon.g {
    background: rgba(0, 200, 83, 0.12);
    color: #00C853;
}

.stat-pill-icon.b {
    background: rgba(33, 150, 243, 0.12);
    color: #42A5F5;
}

.stat-pill-icon.r {
    background: rgba(255, 61, 0, 0.12);
    color: #FF5252;
}

.stat-pill h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.stat-pill small {
    color: var(--text-muted);
    font-size: 0.78rem;
    display: block;
    margin-top: 0.2rem;
}

/* ===== TABLE ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.87rem;
}

.data-table thead th {
    background: rgba(13, 71, 161, 0.7);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.85rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
    white-space: nowrap;
}

.data-table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.85);
}

.data-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ===== LOGIN PAGE ===== */
.login-page-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.login-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.login-brand .brand-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--pamdes-mid), var(--pamdes-accent));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    margin: 0 auto 1rem;
    box-shadow: 0 0 30px rgba(0, 184, 217, 0.4);
}

.login-brand h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--pamdes-water);
    line-height: 1.4;
}

.login-brand p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.login-divider {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 1.5rem 0;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    #main-header .logo-sub {
        display: none;
    }

    #main-header .logo-main {
        font-size: 0.65rem;
    }

    #main-header .nav-links a {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    #main-header .nav-links a i {
        display: none;
    }

    .section-card {
        padding: 1.3rem;
    }
}