/* ============================================================
   WANTOR MODEL COLLEGE ADIKPO — GLOBAL STYLESHEET
   Used by every page. Dashboard-specific styles live in
   views/staff-dashboard.ejs and views/{role}-dashboard.ejs.
   ============================================================ */

:root {
    --brown: #6B3A2A;
    --brown-dark: #4A2518;
    --brown-light: #8B5A3C;
    --yellow: #F0C040;
    --yellow-dark: #C8960C;
    --yellow-light: #FFF8E1;
    --blue: #1E3A5F;
    --blue-light: #E8F0FE;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --red: #DC2626;
    --green: #16A34A;
    --purple: #7C3AED;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.14);
    --transition: all 0.25s ease;
    --header-height: 124px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.text-center { text-align: center; }
.text-sm { font-size: 0.85rem; }
.text-md { font-size: 0.95rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-brown { color: var(--brown); }
.text-yellow { color: var(--yellow); }
.text-white { color: white; }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-green { color: var(--green) !important; }
.text-red { color: var(--red) !important; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.p-8 { padding: 8px; }
.p-12 { padding: 12px; }
.p-16 { padding: 16px; }
.p-20 { padding: 20px; }
.p-24 { padding: 24px; }
.rounded-8 { border-radius: 8px; }
.rounded-12 { border-radius: 12px; }
.rounded-full { border-radius: 50%; }
.bg-white { background: white; }
.bg-gray-50 { background: var(--gray-50); }
.bg-yellow-light { background: var(--yellow-light); }
.bg-brown { background: var(--brown); }
.bg-brown-dark { background: var(--brown-dark); }
.shadow-sm { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.w-full { width: 100%; }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

/* ============================================================
   HEADER
   ============================================================ */
.main-header {
    background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown) 40%, var(--brown-dark) 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    text-align: center;
}
.header-logo {
    width: 75px;
    height: 75px;
    background: #fff;
    border: 4px solid var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.header-logo img { width: 85%; height: 85%; object-fit: contain; }
.header-info h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.1;
    white-space: nowrap;
}
@media (max-width: 600px) {
    .header-info h1 { font-size: 1.1rem; white-space: normal; }
}
.header-info .motto {
    font-size: 0.9rem;
    color: var(--yellow);
    font-style: italic;
    letter-spacing: 1.5px;
    margin-top: 2px;
}

/* Navigation */
.main-nav {
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 16px;
}
.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
}
.nav-inner a,
.nav-inner .nav-dropdown > span {
    color: var(--brown-dark);
    text-decoration: none;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 8px 8px 0 0;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
    user-select: none;
}
.nav-inner a:hover,
.nav-inner .nav-dropdown:hover > span {
    background: rgba(255, 255, 255, 0.15);
    color: var(--yellow);
}
.nav-inner a.active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--yellow);
}
.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--brown-dark);
    border-radius: 0 0 12px 12px;
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    overflow: hidden;
}
.nav-dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.2s ease;
}
.dropdown-menu a {
    display: block;
    padding: 10px 18px;
    border-radius: 0;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: white !important;
    white-space: nowrap;
}
.dropdown-menu a:hover { background: rgba(255, 255, 255, 0.12); }

/* Marquee */
.marquee-bar {
    background: var(--yellow);
    color: var(--brown-dark);
    padding: 7px 0;
    overflow: hidden;
    font-weight: 600;
    font-size: 0.88rem;
    border-bottom: 2px solid var(--brown);
    display: block;
}
.marquee-inner {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 22s linear infinite;
    padding-left: 100%;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255,255,255,0.9), 0 0 16px rgba(255,255,255,0.6);
}
.marquee-bar a {
    color: var(--blue);
    text-decoration: underline;
    font-weight: 700;
    margin: 0 6px;
}

/* ============================================================
   HERO / CAROUSEL (home page)
   ============================================================ */
.hero-section { max-width: 1400px; margin: 20px auto; padding: 0 20px; }
.carousel-container {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 420px;
    background: var(--brown-dark);
}
@media (max-width: 768px) { .carousel-container { height: 260px; } }
.carousel-slide { display: none; height: 100%; position: relative; width: 100%; }
.carousel-slide.active { display: block; animation: fadeIn 0.6s ease; }
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}
.carousel-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 40px 32px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
    color: white;
}
.carousel-caption h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 6px; }
.carousel-caption p { font-size: 1rem; opacity: 0.9; }
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: none;
    width: 46px; height: 46px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brown);
    z-index: 10;
    transition: var(--transition);
    box-shadow: var(--shadow);
}
.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.05);
}
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }
.carousel-dots {
    position: absolute;
    bottom: 16px;
    right: 32px;
    display: flex;
    gap: 8px;
    z-index: 10;
    flex-wrap: wrap;
}
.carousel-dots .dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    padding: 0;
}
.carousel-dots .dot.active {
    background: var(--yellow);
    width: 26px;
    border-radius: 12px;
}

/* Content grid */
.content-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 900px) { .content-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 16px;
}
.card:hover { box-shadow: var(--shadow-lg); }
.card h3 {
    color: var(--brown);
    margin-bottom: 12px;
    font-size: 1.15rem;
    border-bottom: 3px solid var(--yellow);
    display: inline-block;
    padding-bottom: 5px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
    white-space: nowrap;
}
.btn-brown { background: var(--brown); color: white; }
.btn-brown:hover { background: var(--brown-dark); transform: translateY(-2px); }
.btn-yellow { background: var(--yellow); color: var(--brown-dark); }
.btn-yellow:hover { background: var(--yellow-dark); transform: translateY(-2px); }
.btn-blue { background: var(--blue); color: white; }
.btn-blue:hover { background: #152a45; transform: translateY(-2px); }
.btn-sm { padding: 6px 14px; font-size: 0.78rem; }
.btn-outline { background: transparent; border: 2px solid var(--brown); color: var(--brown); }
.btn-outline:hover { background: var(--brown); color: white; }
.btn-danger { background: var(--red); color: white; }
.btn-danger:hover { background: #b91c1c; }
.btn-green { background: var(--green); color: white; }
.btn-green:hover { background: #15803d; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}
.modal-overlay.show { display: flex; }
.modal {
    background: white;
    border-radius: var(--radius);
    padding: 28px;
    max-width: 700px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
}
.modal-wide { max-width: 950px; }
.modal-close {
    position: absolute;
    top: 12px; right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
    font-weight: 700;
    z-index: 10;
}
.modal-close:hover { color: var(--red); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--gray-700);
    font-size: 0.9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--gray-50);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brown);
    box-shadow: 0 0 0 3px rgba(107, 58, 42, 0.1);
    background: white;
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .form-row, .form-row-3 { grid-template-columns: 1fr; } }

.pw-wrapper { position: relative; }
.pw-toggle {
    cursor: pointer;
    color: var(--brown);
    font-size: 0.8rem;
    font-weight: 600;
    user-select: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* ============================================================
   TABLES
   ============================================================ */
.table-responsive {
    overflow-x: auto;
    margin-top: 8px;
    -webkit-overflow-scrolling: touch;
}
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    min-width: 500px;
}
th, td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.88rem;
    white-space: nowrap;
}
th {
    background: var(--brown);
    color: white;
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
tr:hover td { background: var(--gray-50); }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.76rem;
    font-weight: 600;
}
.badge-success { background: #DCFCE7; color: #166534; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-info    { background: #DBEAFE; color: #1E40AF; }
.badge-danger  { background: #FEE2E2; color: #991B1B; }
.badge-purple  { background: #F3E8FF; color: #6B21A8; }

/* ============================================================
   ALERTS & TOAST
   ============================================================ */
.alert {
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 12px;
    border: 1px solid transparent;
}
.alert-error   { background: #FEE2E2; color: var(--red); border-color: #FECACA; }
.alert-success { background: #DCFCE7; color: var(--green); border-color: #BBF7D0; }

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 4000;
    padding: 14px 22px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
    max-width: 420px;
}
.toast-success { background: var(--green); }
.toast-error   { background: var(--red); }
.toast-info    { background: var(--blue); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 24px;
    background: var(--brown);
    color: white;
    border: none;
    width: 42px; height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    z-index: 900;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.back-to-top.visible { display: flex; }
.back-to-top:hover { background: var(--brown-dark); transform: translateY(-3px); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--brown-dark);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 16px 20px;
    font-size: 0.85rem;
    margin-top: auto;
    border-top: 4px solid var(--yellow);
}
.site-footer a {
    color: var(--yellow);
    text-decoration: none;
    font-weight: 700;
}
.site-footer a:hover { text-decoration: underline; }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
    background: var(--brown);
    color: white;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 1rem;
}

/* ============================================================
   CHECKBOXES
   ============================================================ */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}
.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ============================================================
   APPLICATION FORMS
   ============================================================ */
.app-form-container {
    max-width: 1100px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-lg);
}
.app-form-header {
    text-align: center;
    border-bottom: 3px solid var(--yellow);
    padding-bottom: 16px;
    margin-bottom: 20px;
}
.app-form-header .school-logo-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--yellow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 28px;
    color: var(--brown-dark);
    border: 3px solid var(--brown);
    margin-bottom: 8px;
}

/* ============================================================
   STAFF CARDS
   ============================================================ */
.staff-grid { display: flex; flex-direction: column; gap: 24px; }
.staff-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
}
.staff-card {
    background: linear-gradient(180deg, #FFFEF9 0%, #FFF9F0 100%);
    border-radius: var(--radius);
    padding: 24px 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(107, 58, 42, 0.12);
    text-align: center;
    width: 270px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.staff-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--yellow);
}
.staff-card:hover { transform: translateY(-6px); box-shadow: 0 14px 36px rgba(107, 58, 42, 0.22); }
.staff-card.proprietor-card {
    width: 350px;
    border: 3px solid var(--yellow-dark);
    background: linear-gradient(180deg, #FFFDF0 0%, #FFF8E1 50%, #FFFEF9 100%);
}
.staff-card.proprietor-card::before { background: var(--brown-dark); height: 6px; }
.staff-card.principal-card {
    width: 310px;
    border: 2px solid var(--yellow-dark);
    background: linear-gradient(180deg, #FFFEFA 0%, #FFFDF5 100%);
    box-shadow: 0 10px 28px rgba(107, 58, 42, 0.18);
}
.staff-card .staff-avatar {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: var(--brown);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 auto 12px;
    border: 3px solid var(--yellow);
    flex-shrink: 0;
}
.staff-card.proprietor-card .staff-avatar {
    width: 100px; height: 100px;
    font-size: 2.4rem;
    border: 4px solid var(--yellow-dark);
    background: var(--brown-dark);
}
.staff-card.principal-card .staff-avatar {
    width: 85px; height: 85px;
    font-size: 2rem;
}
.staff-card h4 { color: var(--brown-dark); margin-bottom: 4px; font-size: 1rem; font-weight: 700; }
.staff-card .role { font-weight: 600; color: var(--blue); font-size: 0.88rem; margin-bottom: 2px; }
.staff-card .subject { font-size: 0.82rem; color: var(--gray-600); margin-bottom: 4px; }
.staff-card .contact-info { font-size: 0.78rem; color: var(--gray-500); }

/* ============================================================
   PERMISSIONS COLUMN
   ============================================================ */
.perms-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
    background: var(--gray-50);
    border-radius: 8px;
}
.perms-column label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.83rem;
    cursor: pointer;
    padding: 7px 12px;
    border-radius: 6px;
    background: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}
.perms-column label:hover { background: var(--yellow-light); }

/* ============================================================
   SEARCH
   ============================================================ */
.search-container { position: relative; margin-bottom: 12px; }
.search-container input {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid var(--gray-300);
    border-radius: 25px;
    font-size: 0.9rem;
    background: white;
    transition: var(--transition);
}
.search-container input:focus {
    outline: none;
    border-color: var(--brown);
    box-shadow: 0 0 0 3px rgba(107, 58, 42, 0.08);
}
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow-lg);
    z-index: 50;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}
.search-suggestions.show { display: block; }
.search-suggestions .suggestion-item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}
.search-suggestions .suggestion-item:hover { background: var(--yellow-light); }

/* ============================================================
   BLOG PREVIEW CARD
   ============================================================ */
.blog-preview-card {
    display: flex;
    gap: 14px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 10px;
    align-items: center;
    transition: var(--transition);
}
.blog-preview-card:hover { background: white; box-shadow: var(--shadow); }
.blog-preview-card img {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

/* ============================================================
   SHARE BUTTONS
   ============================================================ */
.share-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.share-btn {
    padding: 6px 14px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    color: white;
    transition: var(--transition);
}
.share-btn.fb { background: #1877F2; }
.share-btn.tw { background: #1DA1F2; }
.share-btn.wa { background: #25D366; }
.share-btn:hover { opacity: 0.85; transform: scale(1.04); }

/* ============================================================
   STUDENT LIST ITEM
   ============================================================ */
.student-list-item {
    background: white;
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.student-list-item:hover { box-shadow: var(--shadow-lg); }

/* ============================================================
   EDITABLE / READONLY FIELDS
   ============================================================ */
.editable-field input,
.editable-field textarea {
    background: #fff;
    border: 1px solid var(--brown);
}
.readonly-field input {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    cursor: not-allowed;
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    body * { visibility: hidden; }
    .print-area, .print-area * { visibility: visible; }
    .print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 15mm;
        font-family: 'Times New Roman', serif;
    }
}

/* ============================================================
   SPREADSHEET TABLE
   ============================================================ */
.spreadsheet-table th,
.spreadsheet-table td {
    padding: 6px 8px;
    font-size: 0.82rem;
}
.spreadsheet-table input {
    width: 60px;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}
.spreadsheet-table input:focus {
    outline: none;
    border-color: var(--brown);
    box-shadow: 0 0 3px rgba(107, 58, 42, 0.2);
}

/* ============================================================
   HIDDEN LEGACY ELEMENTS
   ============================================================ */
.dashboard-mobile-bar { display: none !important; }