* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f1f5f9;
    color: #1e293b;
    line-height: 1.5;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #ffffff;
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.navbar .brand {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.navbar .brand span {
    color: #38bdf8;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-links a {
    color: #e2e8f0;
    text-decoration: none;
    padding: 7px 13px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: #2563eb;
    color: #ffffff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 18px;
}

.page-header {
    margin-bottom: 20px;
}

.page-header h1 {
    font-size: 1.55rem;
    color: #0f172a;
}

.page-header p {
    color: #64748b;
    font-size: 0.95rem;
}

/* Cards & Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #ffffff;
    padding: 18px 20px;
    border-radius: 10px;
    border-left: 5px solid #2563eb;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.stat-card.warning { border-left-color: #f59e0b; }
.stat-card.info    { border-left-color: #0284c7; }
.stat-card.success { border-left-color: #10b981; }

.stat-card .label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
}

.stat-card .value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 4px;
}

.card {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 22px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.card h2 {
    font-size: 1.15rem;
    margin-bottom: 14px;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
}

/* Grid 2 Kolom */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 20px;
    align-items: start;
}

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

/* Forms */
.form-group {
    margin-bottom: 13px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #334155;
}

.form-control {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.92rem;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
}

.btn:hover { opacity: 0.9; }
.btn-primary { background: #2563eb; color: #fff; }
.btn-success { background: #10b981; color: #fff; }
.btn-warning { background: #f59e0b; color: #fff; }
.btn-danger  { background: #ef4444; color: #fff; }
.btn-secondary { background: #64748b; color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 0.8rem; }

/* Tables */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th, td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background-color: #f8fafc;
    font-weight: 700;
    color: #334155;
}

tr:hover {
    background-color: #f8fafc;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-menunggu  { background: #fef3c7; color: #92400e; }
.badge-dipanggil { background: #dbeafe; color: #1e40af; }
.badge-selesai   { background: #d1fae5; color: #065f46; }
.badge-batal     { background: #fee2e2; color: #991b1b; }
.badge-aktif     { background: #d1fae5; color: #065f46; }
.badge-nonaktif  { background: #e2e8f0; color: #475569; }

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 0.92rem;
    font-weight: 500;
}

.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger  { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info    { background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }

.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    align-items: center;
}

.filter-bar .form-control {
    max-width: 260px;
}

.footer {
    text-align: center;
    padding: 20px;
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 30px;
}
/* Sistem Admin Page */
.logo-hero-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin-bottom: 420px;
}

.logo-hero-section img.logo-kesehatan-besar {
    width: 280px;
    max-width: 85%;
    height: auto;
    display: block;
    margin: 0 auto 18px auto;
}

.logo-hero-section h2 {
    font-size: 1.45rem;
    color: #0f172a;
    margin-bottom: 6px;
}

.logo-hero-section p {
    color: #64748b;
    font-size: 0.95rem;
}

.scroll-hint {
    display: inline-block;
    margin-top: 18px;
    padding: 8px 16px;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.admin-login-box {
    max-width: 480px;
    margin: 0 auto 30px auto;
}

.admin-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    align-items: center;
}

.admin-subnav a {
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    background: #f1f5f9;
}

.admin-subnav a.active,
.admin-subnav a:hover {
    background: #1e3a8a;
    color: #ffffff;
}

.admin-topbar-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}