/* =============================================
   PMB Online UNASMAN - Custom Styles
   ============================================= */

:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --secondary: #198754;
    --accent: #ffc107;
    --dark: #1a1a2e;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Poppins', sans-serif !important;
    color: #333;
}

/* Force Poppins di semua elemen admin */
.main-content, .main-content *, .sidebar, .sidebar *,
table, th, td, .card, .card *, .btn, input, select, textarea {
    font-family: 'Poppins', sans-serif !important;
}

/* Ratakan font - tidak bold, tidak kapital */
.main-content h1, .main-content h2, .main-content h3, 
.main-content h4, .main-content h5, .main-content h6,
.main-content .fw-bold, .main-content .fw-semibold,
.main-content th, .main-content strong,
.card-header h6, .card-header .fw-bold {
    font-weight: 500 !important;
    text-transform: none !important;
}
.main-content table {
    font-size: 0.82rem !important;
}
.main-content table td, .main-content table th {
    font-size: 0.82rem !important;
    font-weight: 400 !important;
    text-transform: none !important;
    padding: 8px 10px !important;
}
.main-content table .fw-semibold {
    text-transform: capitalize !important;
    font-weight: 400 !important;
}
.main-content h4 {
    font-size: 1.1rem !important;
}
.main-content h5 {
    font-size: 1rem !important;
}
.main-content h6 {
    font-size: 0.88rem !important;
}
.sidebar .nav-link {
    text-transform: none !important;
}
.sidebar small.text-muted {
    text-transform: uppercase !important;
    font-size: 0.68rem !important;
    font-weight: 500 !important;
    letter-spacing: 1px;
}

/* Tombol Daftar Navbar */
.btn-daftar-nav {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
    transition: all 0.3s ease;
}
.btn-daftar-nav:hover {
    background: #ffc107;
    color: #000;
    border-color: #ffc107;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Cards */
.info-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.info-card .card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 15px;
}

/* Timeline / Alur */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

/* Section Titles */
.section-title {
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* Jadwal Table */
.jadwal-card {
    border-left: 5px solid var(--primary);
    border-radius: 10px;
}

.jadwal-card.aktif {
    border-left-color: var(--secondary);
}

/* Stats Counter */
.stat-box {
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.stat-box .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* Login & Form Pages */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.auth-card .card-header {
    background: var(--primary);
    padding: 30px;
    text-align: center;
}

/* Dashboard Sidebar */
.sidebar {
    height: 100vh;
    background: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    z-index: 1000;
    transition: all 0.3s;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid #eee;
    font-family: 'Poppins', sans-serif;
}
.sidebar::-webkit-scrollbar {
    width: 4px;
}
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
}

.sidebar .nav-link {
    color: #333;
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    margin: 2px 10px;
    transition: all 0.2s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: #5a2d82;
    background: #f3eeff;
    font-weight: 600;
}

.sidebar .nav-link i {
    width: 22px;
    text-align: center;
    margin-right: 10px;
    font-size: 0.95rem;
    color: #666;
}
.sidebar .nav-link:hover i,
.sidebar .nav-link.active i {
    color: #5a2d82;
}

.main-content {
    margin-left: 250px;
    padding: 25px 30px;
    min-height: 100vh;
    background: #f8f9fc;
    font-family: 'Poppins', sans-serif;
}

/* Dashboard Cards */
.dash-card {
    border: none;
    border-radius: 12px;
    padding: 20px 25px;
    color: white;
    position: relative;
    overflow: hidden;
}

.dash-card::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.dash-card.bg-gradient-primary { background: linear-gradient(135deg, #667eea, #764ba2); }
.dash-card.bg-gradient-success { background: linear-gradient(135deg, #11998e, #38ef7d); }
.dash-card.bg-gradient-warning { background: linear-gradient(135deg, #f093fb, #f5576c); }
.dash-card.bg-gradient-info { background: linear-gradient(135deg, #4facfe, #00f2fe); }

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-number {
        left: 20px;
        transform: none;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* Status badges */
.status-pending { background: #fff3cd; color: #856404; }
.status-verifikasi { background: #cce5ff; color: #004085; }
.status-diterima { background: #d4edda; color: #155724; }
.status-ditolak { background: #f8d7da; color: #721c24; }
