/* ═══════════ FutureClassroom360 — Core Styles ═══════════ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Serif+Display&display=swap');

:root {
    --primary: #1a1a2e;
    --primary-light: #16213e;
    --accent: #e94560;
    --accent-dark: #c73e54;
    --gold: #d4a745;
    --green: #27ae60;
    --blue: #3498db;
    --text: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #f1f5f9;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --font: 'DM Sans', system-ui, -apple-system, sans-serif;
    --font-display: 'DM Serif Display', Georgia, serif;
    --max-w: 1200px;
    --transition: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.25;
    color: var(--primary);
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.25rem; }

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; height: auto; display: block; }

/* ─── Layout ─── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-light { background: var(--bg-alt); }
.text-center { text-align: center; }

.section-header { text-align: center; max-width: 600px; margin: 0 auto 48px; }
.section-header h2 { margin-bottom: 10px; }
.section-header p { color: var(--text-light); font-size: 15px; }
.accent-line { width: 50px; height: 3px; background: var(--accent); margin: 16px auto 0; border-radius: 2px; }

/* ─── Buttons ─── */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 24px; border-radius: 50px; font-size: 14px;
    font-weight: 600; border: 2px solid transparent;
    cursor: pointer; transition: all var(--transition);
    text-decoration: none; font-family: var(--font);
    line-height: 1.4;
}
.btn-sm { padding: 7px 18px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 15px; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-dark { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-dark:hover { background: var(--primary-light); color: #fff; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-white { background: #fff; color: var(--primary); border-color: #fff; }
.btn-white:hover { background: #f8f8f8; }
.btn-green { background: var(--green); color: #fff; border-color: var(--green); }
.btn-green:hover { opacity: 0.9; color: #fff; }
.btn-danger { background: #dc3545; color: #fff; border-color: #dc3545; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ─── Forms ─── */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--text); margin-bottom: 6px;
}
.form-control {
    width: 100%; padding: 11px 16px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-size: 14px; font-family: var(--font);
    transition: border var(--transition); background: #fff;
    color: var(--text);
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(233,69,96,0.08); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* ─── Alerts ─── */
.alert {
    padding: 14px 20px; border-radius: var(--radius-sm); margin-bottom: 20px;
    font-size: 14px; font-weight: 500;
}
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* ─── Grid helpers ─── */
.courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }

/* ─── Benefits ─── */
.benefit-item {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 32px 28px; transition: all var(--transition);
}
.benefit-item:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.benefit-icon { font-size: 2rem; margin-bottom: 14px; }
.benefit-item h3 { font-size: 1.05rem; margin-bottom: 8px; font-family: var(--font); font-weight: 600; }
.benefit-item p { font-size: 13px; color: var(--text-light); line-height: 1.7; }

/* ─── Navbar ─── */
.navbar {
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 0 0; position: sticky; top: 0; z-index: 100;
}
.navbar .container {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 64px;
}
.navbar-brand {
    font-family: var(--font-display); font-size: 1.3rem;
    color: var(--primary); text-decoration: none; display: flex; align-items: center; gap: 8px;
}
.navbar-brand img { height: 36px; }
.navbar-nav { display: flex; align-items: center; gap: 6px; list-style: none; }
.navbar-nav a {
    padding: 8px 14px; font-size: 14px; font-weight: 500;
    color: var(--text-light); border-radius: var(--radius-sm); transition: all var(--transition);
}
.navbar-nav a:hover, .navbar-nav a.active { color: var(--accent); background: rgba(233,69,96,0.05); }
.navbar-nav .btn { margin-left: 8px; }

.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); padding: 4px; }

/* ─── Footer ─── */
.footer {
    background: var(--primary); color: rgba(255,255,255,0.7); padding: 60px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-family: var(--font); font-weight: 600; font-size: 15px; margin-bottom: 16px; }
.footer a { color: rgba(255,255,255,0.6); font-size: 14px; display: block; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer-bottom {
    margin-top: 40px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center; font-size: 13px; color: rgba(255,255,255,0.4);
}
.footer-brand { font-family: var(--font-display); font-size: 1.3rem; color: #fff; margin-bottom: 10px; }
.footer-desc { font-size: 14px; line-height: 1.7; max-width: 300px; }

/* ─── Tables ─── */
.table-wrap { overflow-x: auto; }
table.data-table {
    width: 100%; border-collapse: collapse; font-size: 14px;
}
table.data-table th {
    background: var(--bg-alt); padding: 12px 16px; text-align: left;
    font-weight: 600; font-size: 12px; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border);
}
table.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border-light); }
table.data-table tr:hover { background: var(--bg-alt); }

/* ─── Badge ─── */
.badge {
    display: inline-block; padding: 3px 10px; border-radius: 50px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.3px;
}
.badge-green { background: #d1fae5; color: #065f46; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-gray { background: #f1f5f9; color: #64748b; }

/* ─── Card ─── */
.card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 28px; margin-bottom: 24px;
}
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.card-header h3 { font-family: var(--font); font-weight: 600; }

/* ─── Pagination ─── */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 10px;
    border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
    border: 1px solid var(--border); color: var(--text-light);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ─── Admin / Dashboard Layout ─── */
.dashboard-layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 260px; background: var(--primary); color: #fff; padding: 24px 0;
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 101; overflow-y: auto;
}
.sidebar-brand {
    font-family: var(--font-display); font-size: 1.15rem;
    padding: 0 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #fff; display: flex; align-items: center; gap: 8px;
}
.sidebar-nav { padding: 16px 0; }
.sidebar-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 20px; font-size: 14px; color: rgba(255,255,255,0.6);
    transition: all var(--transition);
}
.sidebar-nav a:hover, .sidebar-nav a.active {
    color: #fff; background: rgba(255,255,255,0.08);
}
.sidebar-nav a .icon { font-size: 1.1rem; width: 24px; text-align: center; }
.sidebar-section {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: rgba(255,255,255,0.3);
    padding: 20px 20px 8px;
}
.main-content { flex: 1; margin-left: 260px; padding: 24px 32px; background: var(--bg-alt); min-height: 100vh; }
.main-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.main-header h1 { font-size: 1.5rem; font-family: var(--font); font-weight: 700; }

/* ─── Stat Cards ─── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-bottom: 28px; }
.stat-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; display: flex; align-items: center; gap: 16px;
}
.stat-icon { font-size: 2rem; }
.stat-value { font-size: 1.8rem; font-weight: 700; color: var(--primary); line-height: 1; }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ─── Responsive ─── */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .sidebar { transform: translateX(-100%); transition: transform var(--transition); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
}
@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    .container { padding: 0 16px; }
    .section { padding: 50px 0; }
    .navbar-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); }
    .navbar-nav.open { display: flex; }
    .mobile-toggle { display: block; }
    .courses-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}
