/* ========= MAIN.CSS — Z.P. School, Vita ========= */

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

:root { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: background 0.35s, color 0.35s;
  padding-top: 70px;
}

h1,h2,h3,h4,h5,h6 { font-family: 'Playfair Display', serif; }

a { text-decoration: none; color: inherit; }

/* ===== NAVBAR ===== */
.school-navbar {
  background: var(--bg-nav) !important;
  box-shadow: var(--nav-shadow);
  transition: all 0.3s;
  border-bottom: 3px solid var(--accent);
}

.school-navbar.scrolled { padding: 4px 0; }

.school-logo-icon {
  width: 42px; height: 42px;
  background: var(--accent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.05rem; color: var(--text-primary); }
.brand-loc { font-size: 0.68rem; color: var(--text-muted); letter-spacing: 0.5px; }

.nav-link { font-weight: 600; font-size: 0.88rem; color: var(--text-secondary) !important; padding: 6px 10px !important; border-radius: 6px; transition: all 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--accent) !important; background: var(--accent-light); }

.theme-btn { color: var(--accent) !important; border: 1.5px solid var(--accent); border-radius: 20px !important; padding: 4px 14px !important; }
.theme-dropdown { background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow); }
.theme-dropdown .dropdown-item { color: var(--text-primary); font-size: 0.88rem; padding: 8px 16px; }
.theme-dropdown .dropdown-item:hover { background: var(--accent-light); color: var(--accent); }

/* ===== HERO ===== */
.hero-section {
  position: relative; height: 100vh; min-height: 620px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg-overlay { position: absolute; inset: 0; background: var(--hero-overlay); z-index: 1; }
.hero-slider { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-content { position: relative; z-index: 2; color: #fff; }
.hero-badge {
  display: inline-block; padding: 4px 18px;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 30px; font-size: 0.8rem; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 20px;
  animation: fadeInDown 0.8s ease both;
}
.hero-title {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 900; line-height: 1.1; margin-bottom: 20px;
  animation: fadeInUp 1s ease 0.2s both;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero-title span { color: #ffd700; }
.hero-subtitle { font-size: 1.1rem; opacity: 0.9; max-width: 600px; margin: 0 auto 30px; animation: fadeInUp 1s ease 0.4s both; }
.hero-btns { animation: fadeInUp 1s ease 0.6s both; }
.btn-hero-primary { background: var(--accent); color: #fff; border: none; padding: 12px 30px; border-radius: 30px; font-weight: 700; transition: all 0.3s; }
.btn-hero-primary:hover { background: var(--accent-2); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.btn-hero-outline { border: 2px solid rgba(255,255,255,0.7); color: #fff; padding: 11px 28px; border-radius: 30px; font-weight: 700; transition: all 0.3s; }
.btn-hero-outline:hover { background: rgba(255,255,255,0.15); color: #fff; }

.hero-stats { animation: fadeInUp 1s ease 0.8s both; }
.stat-item { text-align: center; }
.stat-num { display: block; font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 900; color: #ffd700; line-height: 1; }
.stat-label { font-size: 0.75rem; opacity: 0.8; letter-spacing: 1px; text-transform: uppercase; }

.hero-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s; }
.hero-dot.active { background: #fff; width: 28px; border-radius: 5px; }

/* ===== QUICK ACCESS ===== */
.quick-access { background: var(--bg-secondary); }
.quick-card {
  background: var(--quick-bg);
  border: 1.5px solid var(--border);
  border-radius: 18px; padding: 36px 28px; text-align: center;
  cursor: pointer; transition: all 0.35s; position: relative; overflow: hidden;
}
.quick-card::before { content: ''; position: absolute; inset: 0; background: var(--accent); opacity: 0; transition: opacity 0.3s; border-radius: 18px; }
.quick-card:hover::before { opacity: 0.05; }
.quick-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--accent); }
.qc-icon { width: 70px; height: 70px; background: var(--accent-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 1.8rem; color: var(--accent); transition: all 0.3s; }
.quick-card:hover .qc-icon { background: var(--accent); color: #fff; }
.quick-card h4 { font-size: 1.15rem; margin-bottom: 8px; color: var(--text-primary); }
.quick-card p { color: var(--text-secondary); font-size: 0.9rem; }
.qc-arrow { position: absolute; bottom: 16px; right: 20px; color: var(--accent); opacity: 0; transition: all 0.3s; }
.quick-card:hover .qc-arrow { opacity: 1; transform: translateX(4px); }

/* ===== SECTION LABELS ===== */
.section-label { font-size: 0.75rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 3px; margin-bottom: 8px; }
.section-heading { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; color: var(--text-primary); line-height: 1.2; }
.section-sub { color: var(--text-muted); margin-top: 8px; }

/* ===== NOTICE SECTION ===== */
.notice-section { background: var(--bg-primary); }
.feature-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.feature-item i { color: var(--accent); font-size: 1.1rem; flex-shrink: 0; }

.notice-board { background: var(--notice-bg); border: 1.5px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.notice-header { background: var(--accent); color: #fff; padding: 14px 20px; font-weight: 700; font-size: 1rem; }
.notice-list { padding: 0 20px; max-height: 320px; overflow-y: auto; }
.notice-item { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; color: var(--text-secondary); display: flex; align-items: center; gap: 10px; }
.notice-item:last-child { border-bottom: none; }
.notice-item.new { color: var(--text-primary); font-weight: 600; }
.badge-new { background: var(--accent); color: #fff; font-size: 0.65rem; padding: 2px 8px; border-radius: 20px; flex-shrink: 0; }
.notice-date { font-size: 0.72rem; color: var(--text-muted); flex-shrink: 0; }

/* ===== SUBJECTS ===== */
.subjects-section { background: var(--bg-secondary); }
#classCards .class-card, .class-card {
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 20px 12px; text-align: center;
  margin-bottom: 12px; transition: all 0.3s; cursor: pointer;
}
.class-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.class-card .class-num { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 900; color: var(--accent); }
.class-card .class-label { font-size: 0.75rem; color: var(--text-muted); }

.subject-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.subject-tag { padding: 8px 18px; border-radius: 30px; font-size: 0.85rem; font-weight: 600; color: #fff; }
.subject-tag.math { background: var(--subject-math); }
.subject-tag.science { background: var(--subject-science); }
.subject-tag.english { background: var(--subject-english); }
.subject-tag.hindi { background: var(--subject-hindi); }
.subject-tag.marathi { background: var(--subject-marathi); }
.subject-tag.evs { background: var(--subject-evs); }

/* ===== TESTIMONIALS ===== */
.testimonial-section { background: var(--bg-primary); }
.testimonial-card {
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: 16px; padding: 28px; transition: all 0.3s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--accent); }
.stars { color: #f39c12; font-size: 1.1rem; margin-bottom: 12px; }
.testimonial-card p { color: var(--text-secondary); font-style: italic; line-height: 1.6; }
.t-author { margin-top: 14px; font-size: 0.85rem; color: var(--text-muted); }

/* ===== FOOTER ===== */
.site-footer { background: var(--footer-bg); color: var(--footer-text); }
.footer-brand { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: #fff; }
.footer-desc { font-size: 0.88rem; color: var(--footer-text); line-height: 1.6; }
.social-links { display: flex; gap: 10px; }
.social-links a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--footer-text); transition: all 0.3s; }
.social-links a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-heading { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #fff; margin-bottom: 14px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 0.88rem; color: var(--footer-text); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-2); }
.footer-contact p { font-size: 0.88rem; margin-bottom: 8px; line-height: 1.5; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* ===== LOGIN PAGE ===== */
.login-section { min-height: calc(100vh - 70px); display: flex; align-items: center; background: var(--bg-primary); padding: 40px 0; }
.login-card { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 20px; padding: 44px 40px; box-shadow: var(--shadow); max-width: 460px; width: 100%; margin: auto; }
.login-logo { width: 70px; height: 70px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #fff; margin: 0 auto 20px; }
.login-card h3 { font-size: 1.6rem; text-align: center; color: var(--text-primary); }
.login-card p { text-align: center; color: var(--text-muted); font-size: 0.9rem; }

.role-tabs { display: flex; gap: 8px; margin: 20px 0; background: var(--bg-primary); border-radius: 12px; padding: 4px; }
.role-tab { flex: 1; text-align: center; padding: 8px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 0.85rem; color: var(--text-muted); transition: all 0.3s; }
.role-tab.active { background: var(--accent); color: #fff; }

.form-label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.form-control { background: var(--input-bg); border: 1.5px solid var(--border); color: var(--text-primary); border-radius: 10px; padding: 10px 14px; font-size: 0.9rem; transition: all 0.2s; }
.form-control:focus { background: var(--bg-card); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); color: var(--text-primary); }
.btn-login { background: var(--accent); color: #fff; border: none; width: 100%; padding: 12px; border-radius: 10px; font-weight: 700; font-size: 0.95rem; transition: all 0.3s; }
.btn-login:hover { background: var(--accent-2); transform: translateY(-1px); }

/* ===== DASHBOARD ===== */
.dashboard-sidebar {
  background: var(--bg-card); border-right: 1.5px solid var(--border);
  min-height: calc(100vh - 70px); padding: 24px 0;
  position: sticky; top: 70px;
}
.sidebar-user { padding: 0 20px 20px; border-bottom: 1px solid var(--border); text-align: center; }
.sidebar-avatar { width: 64px; height: 64px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; color: #fff; font-size: 1.6rem; }
.sidebar-name { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); }
.sidebar-role { font-size: 0.75rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.sidebar-nav { padding: 12px 10px; }
.sidebar-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; color: var(--text-secondary); font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: all 0.2s; margin-bottom: 4px; }
.sidebar-nav-item:hover, .sidebar-nav-item.active { background: var(--accent-light); color: var(--accent); }
.sidebar-nav-item i { width: 18px; text-align: center; }

.dashboard-main { padding: 28px; background: var(--bg-primary); min-height: calc(100vh - 70px); }
.dashboard-title { font-size: 1.5rem; font-weight: 900; color: var(--text-primary); margin-bottom: 4px; }
.dashboard-sub { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 24px; }

.db-stat-card { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 14px; padding: 20px; transition: all 0.3s; }
.db-stat-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.db-stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff; margin-bottom: 12px; }
.db-stat-num { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 900; color: var(--text-primary); }
.db-stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* ===== TABLE STYLES ===== */
.school-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.school-table th { background: var(--table-header); color: #fff; padding: 12px 16px; text-align: left; font-weight: 600; font-size: 0.82rem; }
.school-table td { padding: 11px 16px; border-bottom: 1px solid var(--border); color: var(--text-secondary); vertical-align: middle; }
.school-table tr:hover td { background: var(--accent-light); }
.school-table .present { color: var(--present-color); font-weight: 700; }
.school-table .absent { color: var(--absent-color); font-weight: 700; }
.table-wrap { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }

.pass-badge { background: var(--pass-color); color: #fff; padding: 2px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.fail-badge { background: var(--fail-color); color: #fff; padding: 2px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }

/* ===== FILTER ROW ===== */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.filter-select { background: var(--input-bg); border: 1.5px solid var(--border); color: var(--text-primary); border-radius: 10px; padding: 8px 14px; font-size: 0.88rem; }
.filter-select:focus { outline: none; border-color: var(--accent); }

/* ===== PAGE SECTIONS ===== */
.page-hero { background: var(--accent); color: #fff; padding: 60px 0 40px; text-align: center; }
.page-hero h1 { font-size: 2.4rem; font-weight: 900; margin-bottom: 8px; }
.page-hero p { opacity: 0.85; font-size: 1rem; }
.breadcrumb-item a, .breadcrumb-item.active { color: rgba(255,255,255,0.8) !important; }

.content-section { padding: 60px 0; background: var(--bg-primary); }
.content-section.alt { background: var(--bg-secondary); }

/* ===== ABOUT PAGE ===== */
.about-card { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 16px; padding: 28px; text-align: center; transition: all 0.3s; }
.about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.about-card .about-icon { font-size: 2.5rem; color: var(--accent); margin-bottom: 14px; }
.about-card h5 { color: var(--text-primary); margin-bottom: 8px; }
.about-card p { color: var(--text-secondary); font-size: 0.88rem; }

.teacher-card { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 14px; overflow: hidden; transition: all 0.3s; }
.teacher-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.teacher-avatar { width: 80px; height: 80px; background: var(--accent-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 20px auto 12px; font-size: 2rem; color: var(--accent); }
.teacher-card .tc-body { padding: 0 20px 20px; text-align: center; }
.teacher-card h6 { color: var(--text-primary); font-weight: 700; }
.teacher-card .tc-sub { font-size: 0.8rem; color: var(--text-muted); }

/* ===== CONTACT ===== */
.contact-info-card { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 14px; padding: 28px; }
.ci-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.ci-item:last-child { border-bottom: none; }
.ci-icon { width: 44px; height: 44px; background: var(--accent-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 1.1rem; flex-shrink: 0; }
.ci-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.ci-value { font-size: 0.9rem; color: var(--text-primary); font-weight: 600; }

/* ===== SYLLABUS ===== */
.syllabus-class-btn { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 18px; font-weight: 700; cursor: pointer; transition: all 0.25s; color: var(--text-secondary); font-size: 0.88rem; }
.syllabus-class-btn:hover, .syllabus-class-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.syllabus-subject-card { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
.ssc-header { padding: 14px 18px; font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; gap: 10px; color: #fff; cursor: pointer; }
.ssc-body { padding: 16px 18px; color: var(--text-secondary); font-size: 0.88rem; }
.ssc-body ul { padding-left: 18px; }
.ssc-body li { margin-bottom: 6px; }

/* ===== SERVICES ===== */
.service-card { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 16px; padding: 32px 24px; text-align: center; transition: all 0.3s; height: 100%; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--accent); }
.service-icon { font-size: 2.4rem; color: var(--accent); margin-bottom: 16px; }
.service-card h5 { color: var(--text-primary); margin-bottom: 10px; }
.service-card p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }

.fade-in { opacity: 0; transform: translateY(20px); transition: all 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .login-card { padding: 28px 20px; }
  .dashboard-sidebar { position: static; min-height: auto; border-right: none; border-bottom: 1.5px solid var(--border); }
  .dashboard-main { padding: 16px; }
  .filter-row { flex-direction: column; }
  .hero-stats { gap: 20px; }
  .stat-num { font-size: 1.6rem; }
}

@media (max-width: 576px) {
  .quick-card { padding: 24px 18px; }
  .role-tabs { flex-direction: column; }
}
