/* ============================================
   FRONTEND CSS - Rapat Kenaikan Kelas
   Modern Education Dashboard Theme
   ============================================ */

:root {
    --primary: #1e3a5f;
    --primary-light: #2563eb;
    --primary-dark: #0f1d30;
    --accent: #3b82f6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #0ea5e9;
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.4);
    
    --gradient-primary: linear-gradient(135deg, var(--accent) 0%, #1d4ed8 100%);
    --gradient-dark: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

/* Dark Mode Variables */
[data-bs-theme="dark"] {
    --bg-light: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --card-bg: #1e293b;
    --border: #334155;
}

/* ============================================
   BASE & TYPOGRAPHY
   ============================================ */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #1d4ed8;
}

.transition-all {
    transition: all 0.3s ease;
}

/* ============================================
   COMPONENTS
   ============================================ */
.btn-primary-gradient {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    color: white;
}

.card-glass {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-glass:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.hover-lift:hover > td {
    background-color: #dbeafe !important; /* Terlihat lebih jelas dengan warna biru muda (blue-100) */
}

[data-bs-theme="dark"] .hover-lift:hover > td {
    background-color: #1e40af !important; /* Biru tua untuk dark mode */
}

.table-modern tbody tr {
    transition: all 0.2s ease;
}

/* Custom Table Striped for better visibility */
.table-modern.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(0, 0, 0, 0.03);
}

[data-bs-theme="dark"] .table-modern.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(255, 255, 255, 0.04);
}

.page-title-box {
    background: var(--gradient-dark);
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.page-title-box::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    z-index: 0;
}

.page-title-content {
    position: relative;
    z-index: 1;
}

/* ============================================
   NAVBAR
   ============================================ */
.main-navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px 0;
}

[data-bs-theme="dark"] .main-navbar {
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.main-navbar.navbar-scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

.navbar-logo {
    height: 40px;
    object-fit: contain;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main) !important;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
    margin: 0 4px;
}

.nav-link:hover, .nav-link.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent) !important;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    background: var(--bg-light);
    border: 1px solid var(--border);
}

.theme-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ============================================
   HERO / JUMBOTRON
   ============================================ */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-dark);
    color: white;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 40px 20px;
}

.hero-logo-box {
    margin-bottom: 30px;
    display: inline-block;
    animation: float 6s ease-in-out infinite;
}

.hero-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 15px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 10px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    background: linear-gradient(to right, #fff, #93c5fd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    font-family: 'Poppins', sans-serif;
}

.time-box {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
    border-radius: var(--radius-xl);
    margin-bottom: 40px;
}

.real-time {
    font-family: 'Outfit', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
}

.real-date {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    border-left: 1px solid rgba(255,255,255,0.2);
    padding-left: 15px;
}

.btn-start-meeting {
    font-size: 1.2rem;
    padding: 15px 40px;
    border-radius: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-start-meeting:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
    color: white;
}

/* Running Text */
.running-text-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    color: white;
    padding: 10px 0;
    z-index: 10;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.running-text {
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
}

/* ANIMATIONS */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpAnim 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUpAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .real-time { font-size: 1.5rem; }
    .time-box { flex-direction: column; gap: 5px; padding: 15px; }
    .real-date { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 5px; }
    .page-title-box { padding: 30px 0; border-radius: 0 0 20px 20px; }
}

/* Fullscreen Presentation Mode for Index */
body.is-fullscreen .main-navbar {
    display: none !important;
}
body.is-fullscreen .running-text-container {
    display: none !important;
}

body.is-fullscreen #heroFullscreenBtn {
    position: fixed !important;
    top: 25px !important;
    right: 25px !important;
}
