/*
 * SPMB - Politeknik Industri ATMI
 * Custom Stylesheet
 * Extends Bootstrap 5.3 + Font Awesome 6.5
 */

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
    --primary:       #1e3a8a;
    --primary-dark:  #1e2e6e;
    --primary-light: #dbeafe;
    --accent:        #f59e0b;
    --accent-dark:   #d97706;
    --success:       #059669;
    --danger:        #dc2626;
    --light-bg:      #f0f4ff;
    --border-color:  #dde4f5;
    --text-muted:    #6b7280;
    --radius-sm:     8px;
    --radius-md:     12px;
    --radius-lg:     16px;
    --radius-xl:     20px;
    --shadow-sm:     0 2px 8px rgba(30,58,138,.06);
    --shadow-md:     0 4px 20px rgba(30,58,138,.10);
    --shadow-lg:     0 8px 40px rgba(30,58,138,.14);
}

/* =============================================
   GLOBAL
   ============================================= */
* {
    font-family: 'Plus Jakarta Sans', sans-serif;
}
body {
    background: #f8faff;
    color: #1f2937;
}
a {
    color: var(--primary);
}
a:hover {
    color: var(--accent);
}
img {
    max-width: 100%;
}

/* =============================================
   PUBLIC LAYOUT — NAVBAR
   ============================================= */
.navbar-spmb {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(30,58,138,.25);
}
.navbar-spmb .navbar-brand {
    color: #fff !important;
    font-weight: 800;
    font-size: 1.2rem;
}
.navbar-spmb .nav-link {
    color: rgba(255,255,255,.85) !important;
    font-weight: 500;
    transition: color .2s;
}
.navbar-spmb .nav-link:hover {
    color: var(--accent) !important;
}
.btn-login-admin {
    background: var(--accent);
    color: #1a1a1a !important;
    font-weight: 700;
    border-radius: var(--radius-sm);
    padding: 8px 20px;
    transition: all .2s;
}
.btn-login-admin:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2563eb 60%, #3b82f6 100%);
    padding: 90px 0 70px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
    pointer-events: none;
}
.hero-section h1 {
    color: #fff;
    font-size: 2.6rem;
    font-weight: 800;
}
.hero-section p.lead {
    color: rgba(255,255,255,.85);
    font-size: 1.1rem;
}
.hero-badge {
    display: inline-block;
    background: var(--accent);
    color: #1a1a1a;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 50px;
    font-size: .85rem;
    margin-bottom: 16px;
}
.hero-stats {
    background: rgba(255,255,255,.12);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    backdrop-filter: blur(4px);
}
.hero-stats .stat-val {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}
.hero-stats .stat-lbl {
    color: rgba(255,255,255,.75);
    font-size: .85rem;
}

/* =============================================
   SECTION COMMON
   ============================================= */
.section-title {
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}
section {
    padding: 72px 0;
}

/* =============================================
   PROGRAM CARDS
   ============================================= */
.card-program {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform .2s, box-shadow .2s;
}
.card-program:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* =============================================
   ALUR / STEPS
   ============================================= */
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.step-connector {
    width: 3px;
    background: var(--border-color);
    flex-shrink: 0;
}

/* =============================================
   REGISTRATION FORM
   ============================================= */
.form-section {
    background: var(--light-bg);
}
.form-card {
    background: #fff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.form-card .card-header {
    background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
    padding: 24px 32px;
}
.program-btn {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    width: 100%;
    text-align: left;
}
.program-btn.active,
.program-btn:hover {
    border-color: var(--primary);
    background: var(--light-bg);
}
.program-btn .program-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
    flex-shrink: 0;
}
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    background: #f8faff;
}
.upload-zone:hover {
    border-color: var(--primary);
    background: var(--light-bg);
}
.btn-submit-daftar {
    background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 36px;
    font-size: 1.05rem;
    font-weight: 700;
    transition: all .2s;
}
.btn-submit-daftar:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30,58,138,.35);
}

/* =============================================
   JADWAL TABLE
   ============================================= */
.table-jadwal th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}
.table-jadwal td {
    vertical-align: middle;
}

/* =============================================
   ADMIN LAYOUT — SIDEBAR
   ============================================= */
.sidebar {
    width: 260px;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(30,58,138,.2);
}
.sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.sidebar-brand h5 {
    color: #fff;
    font-weight: 800;
    margin: 0;
    font-size: 1.1rem;
}
.sidebar-brand small {
    color: rgba(255,255,255,.6);
    font-size: .75rem;
}
.sidebar-badge {
    background: var(--accent);
    color: #1a1a1a;
    font-size: .7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    text-transform: uppercase;
}
.sidebar-nav {
    padding: 16px 12px;
    flex: 1;
}
.sidebar-nav .nav-label {
    color: rgba(255,255,255,.4);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 8px 8px 4px;
}
.sidebar-nav .nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,.75);
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 500;
    font-size: .9rem;
    transition: all .2s;
}
.sidebar-nav .nav-item a:hover,
.sidebar-nav .nav-item a.active {
    background: rgba(255,255,255,.12);
    color: #fff;
}
.sidebar-nav .nav-item a .nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
}
.sidebar-nav .nav-item a.active .nav-icon {
    background: var(--accent);
    color: #1a1a1a;
}
.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,.1);
}
.main-content {
    margin-left: 260px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.topbar {
    background: #fff;
    padding: 14px 28px;
    border-bottom: 1px solid #e8edf5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    position: sticky;
    top: 0;
    z-index: 50;
}
.topbar-title {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.05rem;
}
.user-pill {
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    padding: 6px 16px;
    font-size: .85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.page-body {
    padding: 28px;
    flex: 1;
}

/* =============================================
   ADMIN — TABLE
   ============================================= */
.table-spmb {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.table-spmb .table {
    margin: 0;
}
.table-spmb .table thead th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 14px 16px;
    font-size: .85rem;
}
.table-spmb .table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    border-color: #f0f4ff;
}
.table-spmb .table tbody tr:hover {
    background: #f8faff;
}

/* =============================================
   ADMIN — STATUS BADGES
   ============================================= */
.badge-status     { padding: 5px 12px; border-radius: 50px; font-size: .75rem; font-weight: 600; }
.badge-daftar     { background: #dbeafe; color: #1e40af; }
.badge-bayar      { background: #fef3c7; color: #92400e; }
.badge-lengkap    { background: #d1fae5; color: #065f46; }
.badge-lulus      { background: #ede9fe; color: #4c1d95; }
.badge-tolak      { background: #fee2e2; color: #991b1b; }
.badge-diumumkan  { background: #ede9fe; color: #4c1d95; }
.badge-konfirm    { background: #cffafe; color: #0e7490; }
.badge-belum      { background: #fee2e2; color: #991b1b; }

/* =============================================
   ADMIN — STAT CARDS
   ============================================= */
.stat-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
}
.stat-card .stat-val {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
}
.stat-card .stat-lbl {
    color: var(--text-muted);
    font-size: .85rem;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,.75);
    padding: 40px 0 20px;
}
footer a {
    color: var(--accent);
    text-decoration: none;
}
footer a:hover {
    color: #fff;
}

/* =============================================
   ALERTS
   ============================================= */
.alert-spmb {
    border-radius: var(--radius-md);
    border: none;
}

/* =============================================
   FORM CONTROLS
   ============================================= */
.form-control,
.form-select {
    border-radius: 10px;
    border: 1.5px solid var(--border-color);
    padding: 10px 14px;
    transition: border .2s, box-shadow .2s;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30,58,138,.12);
}
.form-label {
    font-weight: 600;
    color: #374151;
    font-size: .9rem;
}

/* =============================================
   RESPONSIVE — SIDEBAR MOBILE
   ============================================= */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform .3s ease;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
}

/* =============================================
   PRINT — hide non-essential elements
   ============================================= */
@media print {
    .sidebar, .topbar, .btn, nav, footer {
        display: none !important;
    }
    .main-content {
        margin: 0 !important;
    }
}
