/* ===================================================================
   CENDEKIA PROTEKSI - Custom Stylesheet
   Bootstrap 5 + Custom theme
   =================================================================== */

:root {
    --cp-primary: #1e3a8a;       /* deep blue */
    --cp-primary-dark: #1e40af;
    --cp-secondary: #d4a017;     /* gold accent */
    --cp-success: #10b981;
    --cp-warning: #f59e0b;
    --cp-danger: #ef4444;
    --cp-bg: #f5f7fb;
    --cp-text: #1f2937;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--cp-bg);
    color: var(--cp-text);
}

.btn-primary {
    background-color: var(--cp-primary);
    border-color: var(--cp-primary);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--cp-primary-dark);
    border-color: var(--cp-primary-dark);
}

.app-navbar {
    background: linear-gradient(90deg, var(--cp-primary) 0%, var(--cp-primary-dark) 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.app-navbar .navbar-brand {
    font-weight: 600;
    letter-spacing: 0.3px;
}
.app-navbar .nav-link {
    transition: opacity 0.2s;
}
.app-navbar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
}

/* ============================================================
   AUTH PAGE
============================================================ */
.auth-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-wrapper {
    width: 100%;
    max-width: 460px;
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 40px 36px;
    text-align: center;
}

.auth-brand .brand-logo {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--cp-primary), var(--cp-primary-dark));
    color: #fff;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.35);
}

.auth-brand .brand-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--cp-primary);
    margin: 0;
}

.auth-brand .brand-tagline {
    color: #6b7280;
    font-size: 14px;
    margin-top: 4px;
}

.auth-form-wrapper {
    text-align: left;
    margin-top: 28px;
}

.auth-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.auth-subtitle {
    font-size: 14px;
    margin-bottom: 24px;
}

.auth-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    color: #9ca3af;
}

/* ============================================================
   STAT CARDS
============================================================ */
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.stat-card .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
}

.stat-card .stat-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-card .stat-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--cp-text);
    line-height: 1.1;
}

.stat-primary .stat-icon { background: linear-gradient(135deg, #3b82f6, #1e3a8a); }
.stat-success .stat-icon { background: linear-gradient(135deg, #10b981, #047857); }
.stat-warning .stat-icon { background: linear-gradient(135deg, #f59e0b, #d97706); }
.stat-danger  .stat-icon { background: linear-gradient(135deg, #ef4444, #b91c1c); }

/* ============================================================
   TABLES
============================================================ */
.table thead th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #6b7280;
    font-weight: 600;
}

.table code {
    background: #f1f5f9;
    color: #1e3a8a;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
}

/* ============================================================
   POLICY CARD (mobile)
============================================================ */
.policy-card {
    background: #fff;
    transition: box-shadow 0.2s;
}
.policy-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* ============================================================
   MISC
============================================================ */
.card { border-radius: 12px; }

.btn-success {
    background-color: #25d366;
    border-color: #25d366;
}
.btn-success:hover {
    background-color: #1da851;
    border-color: #1da851;
}

.badge {
    font-weight: 500;
    letter-spacing: 0.2px;
    padding: 0.4em 0.7em;
}

@media (max-width: 768px) {
    .auth-card { padding: 28px 22px; }
    .stat-card .stat-value { font-size: 22px; }
}
