/* ============================================================
   CNPAC - Certificate of No Pending Administrative Case
   Custom Stylesheet
   ============================================================ */

:root {
    --primary:      #1565C0;
    --primary-dark: #0D47A1;
    --accent:       #FFA000;
    --bg:           #F5F7FA;
    --card-shadow:  0 2px 16px rgba(21,101,192,.08);
    --nav-h:        58px;
}

/* ── Base ───────────────────────────────────────────────── */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: #333;
}

/* ── Top Navbar ─────────────────────────────────────────── */
.topnav {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    height: var(--nav-h);
    padding-top: 0;
    padding-bottom: 0;
}

.topnav .navbar-brand {
    color: #fff;
    font-size: .95rem;
}
.topnav .navbar-brand:hover { color: #fff; }

.topnav .nav-link {
    color: rgba(255,255,255,.82);
    font-size: .875rem;
    padding: .45rem .8rem;
    border-radius: 6px;
    transition: background .2s, color .15s;
}
.topnav .nav-link:hover  { color: #fff; background: rgba(255,255,255,.15); }
.topnav .nav-link.active { color: #fff; background: rgba(255,255,255,.2);  }
.topnav .nav-link.disabled { opacity: .55; }

.topnav .navbar-toggler { box-shadow: none !important; }

/* Dropdown overrides */
.topnav .dropdown-menu { border-radius: 10px; }
.topnav .dropdown-item { font-size: .875rem; border-radius: 6px; margin: .1rem .3rem; width: calc(100% - .6rem); }
.topnav .dropdown-item.active,
.topnav .dropdown-item:active { background-color: var(--primary); color: #fff; }

/* ── Page Wrapper (below fixed navbar) ──────────────────── */
.page-wrapper {
    padding-top: calc(var(--nav-h) + .5rem);
    min-height: 100vh;
    background: var(--bg);
}

.page-content {
    padding: 1.5rem;
}

/* ── Auth / Login Page ──────────────────────────────────── */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 1rem;
}

.auth-wrapper  { width: 100%; max-width: 430px; }
.auth-card     { border: none; border-radius: 16px; }

.auth-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
}

/* Google sign-in button */
.btn-google {
    background: #fff;
    border: 1.5px solid #dadce0;
    color: #3c4043;
    font-weight: 500;
    padding: .65rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow .2s, background .2s;
}
.btn-google:hover { background: #f8f9fa; box-shadow: 0 1px 6px rgba(0,0,0,.15); color: #3c4043; }

/* ── Cards ──────────────────────────────────────────────── */
.card {
    border: none !important;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}
.card-header {
    border-radius: 12px 12px 0 0 !important;
    border-bottom: none;
}

/* ── Stat Icons ─────────────────────────────────────────── */
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn-primary { background-color: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background-color: var(--primary-dark); border-color: var(--primary-dark); }

/* ── Star Rating ────────────────────────────────────────── */
.star-rating {
    display: flex;
    gap: 6px;
}

.star-rating .fa-star {
    font-size: 1.75rem;
    cursor: pointer;
    color: #dee2e6;
    transition: color .12s, transform .1s;
}

.star-rating .fa-star:hover  { transform: scale(1.15); }
.star-rating .fa-star.star-active   { color: #FFA000; }
.star-rating .fa-star.star-inactive { color: #dee2e6; }

.rating-label {
    font-size: .875rem;
    font-weight: 500;
}

/* ── Mobile navbar adjustments ──────────────────────────── */
@media (max-width: 991.98px) {
    .topnav { height: auto; }
    .page-wrapper { padding-top: calc(var(--nav-h) + 1rem); }

    /* Stack nav links nicely when collapsed */
    .topnav .navbar-collapse {
        background: var(--primary-dark);
        border-radius: 0 0 10px 10px;
        padding: .5rem 1rem 1rem;
        margin: 0 -1.5rem;
    }
    .topnav .dropdown-menu {
        background: rgba(255,255,255,.95);
    }
}
