/* =========================================
   EDUPRO COACHING MANAGEMENT SYSTEM - CSS
   ========================================= */

:root {
    --primary: #1a73e8;
    --primary-dark: #0d47a1;
    --secondary: #ff6b35;
    --accent: #ffd700;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --text: #333;
    --muted: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --shadow: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-sm: 0 4px 15px rgba(0,0,0,0.08);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; color: var(--text); overflow-x: hidden; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* TOP BAR */
.top-bar {
    background: var(--dark);
    color: #fff;
    font-size: 0.82rem;
    padding: 8px 0;
}
.top-bar a { color: #fff; text-decoration: none; }
.top-bar .btn-warning { font-size: 0.78rem; padding: 3px 10px; }
.top-bar .btn-light { font-size: 0.78rem; padding: 3px 10px; }
.top-bar .btn-outline-light { font-size: 0.78rem; padding: 3px 10px; }

/* NAVBAR */
#mainNav {
    background: rgba(26, 115, 232, 0.97) !important;
    backdrop-filter: blur(10px);
    padding: 14px 0;
    transition: var(--transition);
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
#mainNav.scrolled { background: var(--dark) !important; }
.navbar-brand { font-size: 1.3rem; font-weight: 700; letter-spacing: 0.5px; }
.nav-link { font-weight: 500; font-size: 0.9rem; transition: var(--transition); margin: 0 4px; }
.nav-link:hover { color: var(--accent) !important; }
.btn-primary-custom {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}
.btn-primary-custom:hover { background: #e55a28; color: white; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255,107,53,0.4); }

/* HERO SECTION */
.hero-section {
    background: linear-gradient(135deg, var(--dark) 0%, #162447 40%, #1f4068 100%);
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-badge { background: rgba(255,215,0,0.2); color: var(--accent); border: 1px solid rgba(255,215,0,0.3); padding: 6px 16px; border-radius: 50px; font-size: 0.82rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.hero-title { font-family: 'Playfair Display', serif; font-size: clamp(2.2rem, 5vw, 3.5rem); color: white; line-height: 1.2; margin: 12px 0; }
.text-highlight { color: var(--accent); position: relative; }
.hero-subtitle { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 520px; line-height: 1.7; }
.btn-hero-primary { background: var(--secondary); color: white; padding: 14px 30px; border-radius: 50px; font-weight: 600; text-decoration: none; border: none; transition: var(--transition); }
.btn-hero-primary:hover { background: #e55a28; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255,107,53,0.5); color: white; }
.btn-hero-outline { background: transparent; color: white; padding: 14px 30px; border-radius: 50px; font-weight: 600; text-decoration: none; border: 2px solid rgba(255,255,255,0.4); transition: var(--transition); }
.btn-hero-outline:hover { border-color: white; background: rgba(255,255,255,0.1); transform: translateY(-3px); color: white; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-number { display: block; font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1px; }
.hero-image-box { position: relative; height: 400px; display: flex; align-items: center; justify-content: center; }
.hero-circle { width: 280px; height: 280px; background: rgba(255,255,255,0.06); border: 2px solid rgba(255,255,255,0.12); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 6rem; color: rgba(255,215,0,0.6); }
.floating-card { position: absolute; background: white; padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.85rem; animation: float 3s ease-in-out infinite; }
.card-1 { top: 20%; left: -10%; animation-delay: 0s; }
.card-2 { bottom: 20%; right: -5%; animation-delay: 1.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* FEATURES */
.features-section { background: white; box-shadow: 0 -4px 20px rgba(0,0,0,0.05); }
.feature-card { background: white; border-radius: var(--radius); padding: 32px 20px; box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid #eee; }
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--primary); }
.feature-icon { width: 64px; height: 64px; background: linear-gradient(135deg, var(--primary), #4da3ff); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: white; margin: 0 auto 16px; }
.feature-card h5 { font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.85rem; color: var(--muted); }

/* SECTIONS */
.section-label { font-size: 0.75rem; font-weight: 700; color: var(--secondary); text-transform: uppercase; letter-spacing: 2px; }
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; margin: 8px 0; color: var(--dark); }
.section-title span { color: var(--primary); }

/* ABOUT */
.about-image-wrapper { position: relative; }
.about-img-placeholder { background: linear-gradient(135deg, #e3f2fd, #bbdefb); border-radius: var(--radius); padding: 60px 40px; text-align: center; }
.about-img-placeholder i { font-size: 5rem; color: var(--primary); margin-bottom: 16px; display: block; }
.about-img-placeholder p { font-size: 1.1rem; font-weight: 600; color: var(--primary-dark); }
.about-badge { position: absolute; bottom: -20px; right: 20px; background: var(--secondary); color: white; padding: 16px 24px; border-radius: var(--radius-sm); text-align: center; box-shadow: var(--shadow); }
.about-badge strong { display: block; font-size: 1.8rem; font-weight: 800; }
.about-badge span { font-size: 0.75rem; }
.about-point { margin-bottom: 10px; font-size: 0.9rem; }

/* COURSES */
.course-card { background: white; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: var(--transition); height: 100%; border: 1px solid #eee; }
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.course-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: white; margin-bottom: 16px; opacity: 0.9; }
.course-card h5 { font-weight: 700; margin-bottom: 8px; }
.course-card p { font-size: 0.85rem; color: var(--muted); }
.course-meta { display: flex; gap: 12px; font-size: 0.78rem; color: var(--muted); margin: 12px 0; padding: 12px 0; border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0; }
.course-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.course-fee { font-weight: 700; font-size: 1rem; color: var(--primary); }

/* BRANCHES */
.branch-card { background: white; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: var(--transition); border-left: 4px solid var(--primary); }
.branch-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.branch-icon { width: 50px; height: 50px; background: linear-gradient(135deg, var(--primary), #4da3ff); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: white; margin-bottom: 16px; }
.branch-card h5 { font-weight: 700; margin-bottom: 12px; }
.branch-card p { font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }

/* TEACHERS */
.teacher-card { background: white; border-radius: var(--radius); padding: 28px 20px; box-shadow: var(--shadow-sm); transition: var(--transition); }
.teacher-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.teacher-avatar { width: 80px; height: 80px; background: linear-gradient(135deg, var(--primary), #4da3ff); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: white; margin: 0 auto 16px; }
.teacher-card h5 { font-weight: 700; margin-bottom: 4px; }
.teacher-branch { font-size: 0.78rem; color: var(--primary); background: #e3f2fd; padding: 3px 12px; border-radius: 50px; }
.teacher-phone { font-size: 0.82rem; color: var(--muted); margin-top: 10px; }
.teacher-social a { width: 32px; height: 32px; border-radius: 50%; background: #f0f4ff; display: inline-flex; align-items: center; justify-content: center; color: var(--primary); margin: 0 3px; text-decoration: none; font-size: 0.75rem; transition: var(--transition); }
.teacher-social a:hover { background: var(--primary); color: white; }

/* NOTICES */
.notice-item { display: flex; gap: 16px; background: white; padding: 20px; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); transition: var(--transition); }
.notice-item:hover { box-shadow: var(--shadow); }
.notice-icon { width: 44px; height: 44px; background: linear-gradient(135deg, #fff3e0, #ffe0b2); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #f57c00; font-size: 1.1rem; flex-shrink: 0; }
.notice-item h6 { font-weight: 700; margin-bottom: 4px; font-size: 0.9rem; }
.notice-item p { font-size: 0.8rem; color: var(--muted); margin-bottom: 4px; }

/* TESTIMONIALS */
.bg-primary-dark { background: linear-gradient(135deg, var(--dark), #162447); }
.testimonial-card { background: rgba(255,255,255,0.08); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 28px; color: white; }
.stars { color: var(--accent); font-size: 1.1rem; margin-bottom: 12px; }
.testimonial-card p { font-size: 0.9rem; color: rgba(255,255,255,0.8); line-height: 1.7; margin-bottom: 20px; }
.student-info { display: flex; align-items: center; gap: 12px; }
.student-avatar { width: 44px; height: 44px; background: var(--secondary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 700; color: white; }
.student-info strong { display: block; font-size: 0.9rem; }
.student-info small { color: rgba(255,255,255,0.6); font-size: 0.75rem; }

/* CONTACT */
.contact-info-item { display: flex; gap: 16px; margin-bottom: 20px; align-items: flex-start; }
.contact-icon { width: 46px; height: 46px; background: linear-gradient(135deg, var(--primary), #4da3ff); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1rem; flex-shrink: 0; }
.contact-form-box { background: white; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.contact-form-box .form-control, .contact-form-box .form-select { border-radius: var(--radius-sm); border: 1.5px solid #e0e0e0; padding: 10px 14px; font-size: 0.9rem; transition: var(--transition); }
.contact-form-box .form-control:focus, .contact-form-box .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,115,232,0.15); }

/* FOOTER */
.footer { background: var(--dark); color: #ccc; padding: 50px 0 20px; }
.footer h5, .footer h6 { color: white; font-weight: 700; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #aaa; text-decoration: none; font-size: 0.88rem; transition: var(--transition); }
.footer-links a:hover { color: var(--accent); padding-left: 6px; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: rgba(255,255,255,0.1); border-radius: 50%; color: #ccc; text-decoration: none; margin-right: 8px; transition: var(--transition); font-size: 0.85rem; }
.social-links a:hover { background: var(--primary); color: white; transform: translateY(-3px); }
.footer-divider { border-color: rgba(255,255,255,0.1); margin: 30px 0 20px; }

/* BACK TO TOP */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; box-shadow: 0 4px 15px rgba(26,115,232,0.4); transition: var(--transition); opacity: 0; visibility: hidden; z-index: 999; }
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); color: white; transform: translateY(-3px); }

/* ========================
   ADMIN / PANEL COMMON
======================== */
.sidebar { width: 260px; background: var(--dark); min-height: 100vh; position: fixed; left: 0; top: 0; z-index: 100; transition: var(--transition); overflow-y: auto; }
.sidebar.collapsed { width: 70px; }
.sidebar-brand { padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; gap: 10px; color: white; font-weight: 700; font-size: 1rem; }
.sidebar-nav { padding: 12px 0; }
.nav-section { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.35); padding: 16px 20px 6px; }
.sidebar-link { display: flex; align-items: center; gap: 12px; padding: 12px 20px; color: rgba(255,255,255,0.65); text-decoration: none; transition: var(--transition); font-size: 0.88rem; }
.sidebar-link:hover, .sidebar-link.active { background: rgba(26,115,232,0.25); color: white; border-right: 3px solid var(--primary); }
.sidebar-link i { font-size: 1rem; width: 18px; }
.main-content { margin-left: 260px; min-height: 100vh; background: #f5f7fb; transition: var(--transition); }
.top-header { background: white; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 1px 10px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 90; }
.page-wrapper { padding: 24px; }
.stat-card { background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 20px; transition: var(--transition); }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-card-icon { width: 58px; height: 58px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: white; }
.stat-card h6 { font-size: 0.78rem; color: var(--muted); font-weight: 500; margin-bottom: 2px; }
.stat-card h3 { font-size: 1.8rem; font-weight: 800; color: var(--dark); }
.card-box { background: white; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px; margin-bottom: 24px; }
.card-box-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid #f0f0f0; }
.card-box-header h5 { font-weight: 700; margin: 0; font-size: 1rem; }
.badge-role { padding: 4px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; }
.table th { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); }
.table td { font-size: 0.88rem; vertical-align: middle; }
.btn-sm { font-size: 0.78rem; padding: 4px 12px; }

/* LOGIN PAGE */
.login-page { min-height: 100vh; background: linear-gradient(135deg, var(--dark), #162447, #1f4068); display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-box { background: white; border-radius: 20px; padding: 40px; width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo i { font-size: 2.5rem; color: var(--primary); }
.login-logo h4 { font-weight: 800; color: var(--dark); margin-top: 8px; }
.login-logo p { font-size: 0.83rem; color: var(--muted); }

/* RESPONSIVE */
@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .hero-stats { gap: 20px; }
}
@media (max-width: 768px) {
    .top-bar .col-md-6:last-child { display: none; }
    .hero-title { font-size: 2rem; }
    .stat-number { font-size: 1.5rem; }
}
@media (max-width: 576px) {
    .hero-stats { gap: 16px; }
    .stat-number { font-size: 1.3rem; }
    .page-wrapper { padding: 14px; }
}