/* =========================================
   DESIGN SYSTEM - MTs Tahfidz Ismailiyah (DARK THEME)
   ========================================= */

:root {
    --bg-base: #050505;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);
    --border-glass: rgba(255, 255, 255, 0.08);
    
    --primary: #10b981;
    --primary-glow: rgba(16, 185, 129, 0.5);
    --secondary: #3b82f6;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;
    --accent-blue: #3b82f6;

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* =========================================
   DYNAMIC BACKGROUND SHAPES
   ========================================= */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.5;
    animation: float 20s infinite alternate;
}
.shape-1 { width: 600px; height: 600px; background: radial-gradient(circle, var(--primary) 0%, rgba(16, 185, 129, 0) 70%); top: -200px; left: -200px; }
.shape-2 { width: 500px; height: 500px; background: radial-gradient(circle, var(--secondary) 0%, rgba(59, 130, 246, 0) 70%); bottom: -100px; right: -100px; animation-delay: -5s; }
.shape-3 { width: 400px; height: 400px; background: radial-gradient(circle, #8b5cf6 0%, rgba(139, 92, 246, 0) 70%); top: 40%; left: 40%; opacity: 0.3; animation-delay: -10s; }

@keyframes float { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(50px, 50px) scale(1.1); } }

/* =========================================
   NAVIGATION
   ========================================= */
.glass-nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: rgba(5, 5, 5, 0.5); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 1rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-icon-img { height: 40px; width: auto; object-fit: contain; }
.logo-text-wrapper { display: flex; flex-direction: column; }
.logo-text { font-weight: 600; font-size: 1.1rem; line-height: 1.2; letter-spacing: 0.5px; }

.login-btn-nav {
    background: var(--bg-glass); border: 1px solid var(--border-glass);
    color: var(--text-main); padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm); font-family: inherit; font-weight: 500;
    cursor: pointer; transition: var(--transition-smooth);
}
.login-btn-nav:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    max-width: 1200px; margin: 120px auto 60px; padding: 0 1.5rem;
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
.badge {
    background: rgba(16, 185, 129, 0.1); color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.2); padding: 0.5rem 1.25rem;
    border-radius: 100px; font-size: 0.875rem; font-weight: 600; margin-bottom: 2rem;
}
.hero-title { font-size: 4rem; line-height: 1.1; font-weight: 700; margin-bottom: 1.5rem; }
.gradient-text { background: linear-gradient(to right, #10b981, #3b82f6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin-bottom: 2.5rem; line-height: 1.6; }
.primary-btn {
    background: var(--primary); color: #fff; border: none;
    padding: 1rem 2rem; border-radius: var(--radius-sm); font-size: 1rem; font-weight: 600; font-family: inherit; cursor: pointer;
    display: flex; align-items: center; gap: 0.75rem; transition: var(--transition-smooth); box-shadow: 0 0 20px var(--primary-glow);
}
.primary-btn:hover { background: #0ea5e9; transform: translateY(-2px); }

/* =========================================
   GLASS CARD UTILITY
   ========================================= */
.glass-card {
    background: var(--bg-glass); border: 1px solid var(--border-glass);
    backdrop-filter: blur(20px); border-radius: var(--radius-md); padding: 2rem;
}

/* =========================================
   SINGLE STAT CARD
   ========================================= */
.single-stat-card {
    width: 100%; max-width: 1000px; margin: 2rem auto; text-align: center;
}
.single-stat-card h2 { font-size: 1.3rem; margin-bottom: 1.5rem; color: var(--text-main); font-weight: 600; }
.stat-summary-boxes {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.summary-box {
    background: rgba(0,0,0,0.2); border: 1px solid var(--border-glass);
    border-radius: 12px; padding: 1.5rem 1rem; display: flex; flex-direction: column; align-items: center;
    transition: var(--transition-smooth);
}
.summary-box:hover { background: rgba(255,255,255,0.05); }
.summary-box .icon {
    width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 1.2rem; margin-bottom: 0.5rem;
}
.summary-box .icon.green { background: rgba(16, 185, 129, 0.2); color: var(--accent-green); }
.summary-box .icon.orange { background: rgba(245, 158, 11, 0.2); color: var(--accent-orange); }
.summary-box .icon.blue { background: rgba(59, 130, 246, 0.2); color: var(--accent-blue); }
.summary-box .icon.red { background: rgba(239, 68, 68, 0.2); color: var(--accent-red); }
.summary-box .val { font-size: 2rem; font-weight: 700; color: var(--text-main); line-height: 1; margin-bottom: 0.3rem;}
.summary-box .lbl { font-size: 0.85rem; color: var(--text-muted); }

/* =========================================
   DETAILS ACCORDION
   ========================================= */
.details-section { width: 100%; max-width: 1000px; margin: 0 auto; text-align: left; }
.details-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.details-header h2 { font-size: 1.3rem; }

.tabs { display: flex; gap: 0.5rem; background: rgba(0, 0, 0, 0.3); padding: 0.3rem; border-radius: 10px; border: 1px solid var(--border-glass); }
.tab-btn { padding: 0.5rem 1.2rem; border: none; background: transparent; border-radius: 8px; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all 0.2s; font-family: inherit;}
.tab-btn.active { background: rgba(255,255,255,0.1); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Accordion */
.accordion-container { display: flex; flex-direction: column; gap: 1rem; }
.accordion-item {
    background: rgba(0,0,0,0.2); border: 1px solid var(--border-glass); border-radius: 12px; overflow: hidden;
}
.accordion-header {
    width: 100%; padding: 1.25rem 1.5rem; background: transparent; border: none; color: var(--text-main);
    font-size: 1.1rem; font-weight: 600; text-align: left; display: flex; justify-content: space-between;
    align-items: center; cursor: pointer; font-family: inherit; transition: var(--transition-smooth);
}
.accordion-header:hover { background: rgba(255,255,255,0.02); }
.accordion-icon { font-size: 0.8rem; transition: transform 0.3s ease; }
.accordion-item.active .accordion-icon { transform: rotate(180deg); }
.accordion-body {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
    background: rgba(0,0,0,0.3);
}
.accordion-item.active .accordion-body { max-height: 1000px; }

/* Table inside Accordion */
.table-responsive { width: 100%; overflow-x: auto; padding: 0 1.5rem 1.5rem 1.5rem; }
.data-table { width: 100%; border-collapse: collapse; min-width: 500px; }
.data-table th, .data-table td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.05); }
.data-table th { color: var(--text-muted); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.data-table td { font-size: 0.95rem; color: #cbd5e1; }
.data-table tr:last-child td { border-bottom: none; }

.status-badge {
    padding: 0.3rem 0.6rem; border-radius: 100px; font-size: 0.75rem; font-weight: 600;
}
.status-badge.green { background: rgba(16, 185, 129, 0.2); color: var(--accent-green); }
.status-badge.orange { background: rgba(245, 158, 11, 0.2); color: var(--accent-orange); }
.status-badge.blue { background: rgba(59, 130, 246, 0.2); color: var(--accent-blue); }
.status-badge.red { background: rgba(239, 68, 68, 0.2); color: var(--accent-red); }

/* =========================================
   MODAL LOGIN
   ========================================= */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(10px);
    z-index: 1000; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: var(--transition-smooth);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-card { width: 100%; max-width: 450px; padding: 3rem; transform: scale(0.95) translateY(20px); transition: var(--transition-smooth); opacity: 0; }
.modal-overlay.active .modal-card { transform: scale(1) translateY(0); opacity: 1; }
.close-btn { position: absolute; top: 1.5rem; right: 1.5rem; background: transparent; border: none; color: var(--text-muted); cursor: pointer; transition: var(--transition-smooth); }
.close-btn:hover { color: var(--text-main); transform: rotate(90deg); }
.modal-header { text-align: center; margin-bottom: 2.5rem; }
.modal-header h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.modal-header p { color: var(--text-muted); }
.input-group { margin-bottom: 1.5rem; }
.input-group label { display: block; margin-bottom: 0.5rem; color: var(--text-muted); font-size: 0.875rem; }
.input-wrapper { position: relative; }
.input-wrapper svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.input-wrapper input { width: 100%; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border-glass); color: var(--text-main); padding: 1rem 1rem 1rem 3rem; border-radius: var(--radius-sm); font-family: inherit; font-size: 1rem; }
.input-wrapper input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 10px rgba(16, 185, 129, 0.2); }
.submit-btn { width: 100%; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; border: none; padding: 1.25rem; border-radius: var(--radius-sm); font-size: 1rem; font-weight: 600; cursor: pointer; margin-top: 1rem; }
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3); }

.modal-footer { text-align: center; margin-top: 2rem; font-size: 0.85rem; color: rgba(255,255,255,0.4); }
.tiktok-link { color: var(--primary); text-decoration: none; font-weight: 600; transition: 0.2s; }
.tiktok-link:hover { color: var(--secondary); text-decoration: underline; }

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 768px) {
    .nav-container { padding: 1rem; }
    /* Fix for mobile: Reduce logo font size and make it wrap neatly instead of hiding */
    .logo-text { font-size: 0.95rem; }
    .logo-icon-img { height: 35px; }
    
    .hero-title { font-size: 2.5rem; }
    .hero-section { padding: 0 1rem; }
    .stat-summary-boxes { grid-template-columns: repeat(2, 1fr); }
    .details-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .modal-card { padding: 2rem; margin: 1rem; }
}

.footer-break { display: none; }
@media (max-width: 480px) {
  .footer-oleh { display: none; }
  .footer-break { display: block; }
}

