/* ==========================================
   SRC Board Evaluation Portal — Stylesheet
   College of Community Health Nursing, Winneba
   Colors: Green, Gold, White
   ========================================== */

/* --- CSS Variables --- */
:root {
    --primary: #25D366;
    --primary-light: #34E876;
    --primary-dark: #128C7E;
    --primary-pale: #DCF8C6;
    --accent: #D4A020;
    --accent-light: #E8B933;
    --accent-dark: #B8891A;
    --danger: #DC3545;
    --warning: #E8B933;
    --info: #2B8CC4;
    --success: #25D366;
    --bg-dark: #0B1F14;
    --bg-card: rgba(14, 36, 24, 0.75);
    --bg-card-hover: rgba(22, 50, 34, 0.8);
    --bg-input: rgba(11, 31, 20, 0.85);
    --text-primary: #F2F9F4;
    --text-secondary: #B0D9BC;
    --text-muted: #6A9E78;
    --border: rgba(37, 211, 102, 0.15);
    --border-hover: rgba(37, 211, 102, 0.3);
    --gradient-primary: linear-gradient(135deg, #25D366, #34E876, #5BF09A);
    --gradient-accent: linear-gradient(135deg, #D4A020, #E8B933);
    --gradient-danger: linear-gradient(135deg, #DC3545, #E85D6A);
    --gradient-dark: linear-gradient(135deg, #0A1A10, #0F2418);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px rgba(37, 211, 102, 0.3);
    --shadow-gold: 0 0 30px rgba(212, 160, 32, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0A1E13;
    background-image: linear-gradient(180deg, rgba(11, 31, 20, 0.65) 0%, rgba(11, 31, 20, 0.88) 100%), url('images/campus-building.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed !important; /* COMPLETELY MOTIONLESS */
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }

/* --- Motionless Fixed Background for ALL Pages --- */
.fixed-campus-background,
.hero-bg {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: -999 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

.fixed-campus-background img,
.hero-bg img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 0.35 !important;
    filter: blur(0.5px) !important;
    transform: none !important;
    animation: none !important;
}

.fixed-campus-background::after,
.hero-bg::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(180deg, rgba(11, 31, 20, 0.65) 0%, rgba(11, 31, 20, 0.88) 100%) !important;
}

/* Remove moving particles and moving background circles */
.particles {
    display: none !important;
}
.hero-decoration,
.circle,
.circle-1,
.circle-2,
.circle-3 {
    display: none !important;
}

/* --- Login Page --- */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px 20px;
}

.login-card {
    background: rgba(12, 28, 18, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(37, 211, 102, 0.2);
    border-top: 3px solid var(--primary);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(37,211,102,0.08), inset 0 1px 0 rgba(255,255,255,0.04);
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    margin-bottom: 16px;
    box-shadow: var(--shadow-glow);
}

.login-logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.login-logo .school-name {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.login-logo p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.login-form { display: flex; flex-direction: column; gap: 18px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
    font-size: 0.85rem; font-weight: 600; color: var(--text-secondary);
    display: flex; align-items: center; gap: 8px;
}
.form-group label i { color: var(--primary-light); font-size: 0.85rem; }

.error-msg {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #F87171;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    display: none;
    align-items: center;
    gap: 8px;
}
.error-msg.show { display: flex; }

.success-msg {
    background: rgba(37, 211, 102, 0.15);
    border: 1px solid rgba(37, 211, 102, 0.3);
    color: var(--primary-light);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    display: none;
    align-items: center;
    gap: 8px;
}
.success-msg.show { display: flex; }

.login-links {
    text-align: center;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.login-links a:hover { color: var(--primary-light); }

.login-links a.admin-link {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Navigation --- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 14px 0; transition: var(--transition); background: transparent;
}
.navbar.scrolled {
    background: rgba(11, 31, 20, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 1.05rem;
}
.nav-logo img {
    width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--primary);
}
.logo-icon {
    width: 36px; height: 36px; background: var(--gradient-primary);
    border-radius: var(--radius-sm); display: flex; align-items: center;
    justify-content: center; font-size: 0.9rem;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-link {
    font-size: 0.9rem; font-weight: 500; color: var(--text-secondary);
    transition: var(--transition); position: relative; padding: 4px 0;
}
.nav-link::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
    background: var(--gradient-primary); border-radius: 2px; transition: width 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-user {
    display: flex; align-items: center; gap: 16px;
}
.nav-user-name {
    font-size: 0.85rem; color: var(--text-secondary); font-weight: 500;
}
.nav-btn {
    padding: 8px 18px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.nav-btn:hover {
    border-color: var(--danger);
    color: var(--danger);
}

.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-hamburger span { width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }
.mobile-menu {
    display: none; position: fixed; top: 60px; left: 0; right: 0;
    background: rgba(11, 31, 20, 0.98); backdrop-filter: blur(20px);
    padding: 20px; flex-direction: column; gap: 16px; z-index: 999;
    border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-link { font-size: 1rem; font-weight: 500; color: var(--text-secondary); padding: 8px 0; transition: var(--transition); }

/* --- Step Indicator --- */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 20px 24px;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(11, 31, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.step.active { color: var(--primary-light); }
.step.completed { color: var(--accent); }

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
    font-size: 0.75rem;
    font-weight: 700;
    transition: var(--transition);
}

.step.active .step-number {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.step.completed .step-number {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--bg-dark);
}

.step-line {
    width: 40px;
    height: 2px;
    background: var(--border);
    transition: var(--transition);
}

.step-line.active { background: var(--primary); }
.step-line.completed { background: var(--accent); }

/* --- Full Page Sections --- */
.full-page {
    min-height: 100vh;
    display: none;
    flex-direction: column;
    justify-content: center;
    padding: 140px 24px 100px;
    position: relative;
    z-index: 1;
}

.full-page.active {
    display: flex;
}

.section { padding: 100px 0; position: relative; z-index: 1; }

.section-header { text-align: center; margin-bottom: 48px; }

.section-tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; background: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.25); border-radius: 50px;
    font-size: 0.8rem; font-weight: 600; color: var(--primary-light);
    text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800; margin-bottom: 14px; line-height: 1.2;
}

.section-desc {
    font-size: 1rem; color: var(--text-secondary);
    max-width: 600px; margin: 0 auto; line-height: 1.7;
}

/* --- Hero / Landing --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px 80px;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: blur(1px);
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(11, 31, 20, 0.4), rgba(11, 31, 20, 0.75));
}

.hero-content { position: relative; z-index: 1; max-width: 800px; }

.hero-logo {
    margin-bottom: 24px;
}

.hero-logo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: var(--shadow-glow), 0 0 60px rgba(37, 211, 102, 0.2);
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px; background: rgba(37, 211, 102, 0.15);
    border: 1px solid rgba(37, 211, 102, 0.3); border-radius: 50px;
    font-size: 0.8rem; font-weight: 600; color: var(--primary-light);
    margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-weight: 800; line-height: 1.15; margin-bottom: 8px;
}

.title-line { display: block; }
.title-line.accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.title-line.gold {
    background: var(--gradient-accent);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.6em;
}

.hero-school-name {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.05rem; color: var(--text-secondary);
    max-width: 600px; margin: 0 auto 36px; line-height: 1.8;
}
.hero-subtitle strong { color: var(--primary-light); }

.hero-stats { display: flex; justify-content: center; gap: 24px; margin-bottom: 40px; }
.stat-card {
    background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 18px 28px; transition: var(--transition);
}
.stat-card:hover { border-color: var(--primary); background: rgba(37, 211, 102, 0.08); }
.stat-number {
    font-size: 1.8rem; font-weight: 800;
    background: var(--gradient-primary); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label {
    font-size: 0.75rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1px; margin-top: 4px;
}

.hero-cta {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 36px; background: var(--gradient-primary);
    border-radius: 50px; font-weight: 600; font-size: 1rem;
    color: white; transition: var(--transition); box-shadow: var(--shadow-glow);
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(37, 211, 102, 0.5); }
.hero-cta i { animation: bounceDown 2s infinite; }
@keyframes bounceDown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

.hero-decoration { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; }
.circle { position: absolute; border-radius: 50%; opacity: 0.08; }
.circle-1 { width: 600px; height: 600px; background: var(--primary); top: -200px; right: -200px; filter: blur(80px); }
.circle-2 { width: 400px; height: 400px; background: var(--accent); bottom: -100px; left: -100px; filter: blur(60px); }
.circle-3 { width: 300px; height: 300px; background: var(--primary-dark); top: 50%; left: 50%; transform: translate(-50%, -50%); filter: blur(100px); opacity: 0.04; }

/* Campus image strip */
.campus-strip {
    position: relative;
    z-index: 1;
    padding: 0;
    overflow: hidden;
    height: 300px;
}
.campus-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.7);
}
.campus-strip::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, var(--bg-dark), transparent 30%, transparent 70%, var(--bg-dark));
}
.campus-strip-text {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    color: white;
}
.campus-strip-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.campus-strip-text p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

/* --- Rating Components --- */
.rating-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 48px; box-shadow: var(--shadow-lg);
    max-width: 700px; margin: 0 auto;
}

.rating-display { text-align: center; margin-bottom: 40px; }

.rating-circle { position: relative; width: 180px; height: 180px; margin: 0 auto 14px; }
.rating-circle svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rating-track { fill: none; stroke: var(--border); stroke-width: 8; }
.rating-fill {
    fill: none; stroke: url(#ratingGradient); stroke-width: 8;
    stroke-linecap: round; stroke-dasharray: 534; stroke-dashoffset: 267;
    transition: stroke-dashoffset 0.5s ease;
}
.rating-value {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); display: flex; align-items: baseline; gap: 2px;
}
.rating-number {
    font-size: 3rem; font-weight: 900; line-height: 1;
    background: var(--gradient-primary); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.rating-percent { font-size: 1.3rem; font-weight: 700; color: var(--text-muted); }
.rating-label { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 3px; transition: var(--transition); }

.slider-container { max-width: 500px; margin: 0 auto 40px; padding: 0 8px; }
.slider-labels { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }
.custom-slider-track { position: relative; height: 10px; background: var(--border); border-radius: 10px; cursor: pointer; user-select: none; }
.custom-slider-fill { position: absolute; top: 0; left: 0; height: 100%; background: var(--gradient-primary); border-radius: 10px; width: 50%; pointer-events: none; }
.custom-slider-thumb {
    position: absolute; top: 50%; left: 50%; width: 28px; height: 28px;
    background: white; border: 3px solid var(--primary); border-radius: 50%;
    transform: translate(-50%, -50%); cursor: grab;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.4); z-index: 2;
    transition: box-shadow 0.2s, transform 0.1s;
}
.custom-slider-thumb:hover { box-shadow: 0 0 25px rgba(37, 211, 102, 0.6); }
.custom-slider-thumb:active { cursor: grabbing; transform: translate(-50%, -50%) scale(1.15); }

.rating-breakdown { display: grid; gap: 12px; }
.breakdown-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 18px; background: rgba(255,255,255,0.02);
    border: 1px solid var(--border); border-radius: var(--radius-md); transition: var(--transition);
}
.breakdown-item:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.04); }
.breakdown-item label { font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); }
.mini-stars { display: flex; gap: 5px; }
.mini-stars i { font-size: 1.05rem; color: var(--border); cursor: pointer; transition: color 0.2s, transform 0.2s; }
.mini-stars i:hover { transform: scale(1.2); }
.mini-stars i.active { color: var(--accent); }

/* --- Executive Cards --- */
.exec-section { margin-top: 48px; }
.exec-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem; text-align: center; margin-bottom: 8px;
    color: var(--accent);
}
.exec-section > p { text-align: center; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 28px; }

.exec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 700px; margin: 0 auto; }
.exec-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px; text-align: center;
    transition: var(--transition);
}
.exec-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow-glow); }

.exec-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--gradient-primary); display: flex; align-items: center;
    justify-content: center; margin: 0 auto 12px;
    font-size: 1.3rem; font-weight: 800; color: white;
}

.exec-name { font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.exec-portfolio { font-size: 0.8rem; color: var(--accent); font-weight: 500; margin-bottom: 14px; }

.exec-stars { display: flex; gap: 5px; justify-content: center; }
.exec-stars i { font-size: 1.15rem; color: var(--border); cursor: pointer; transition: all 0.2s; }
.exec-stars i:hover { transform: scale(1.25); }
.exec-stars i.active { color: var(--accent); }

.exec-empty {
    text-align: center; padding: 40px; color: var(--text-muted);
    font-size: 0.9rem; font-style: italic;
}

/* --- Feedback Cards --- */
.feedback-grid { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 800px; margin: 0 auto; }
.feedback-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-xl); overflow: hidden; transition: var(--transition);
}
.feedback-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-md); }
.card-header {
    display: flex; align-items: center; gap: 16px;
    padding: 24px 28px; border-bottom: 1px solid var(--border);
}
.card-icon {
    width: 44px; height: 44px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}
.concern-icon { background: rgba(220, 53, 69, 0.15); color: var(--danger); }
.commend-icon { background: rgba(37, 211, 102, 0.15); color: var(--primary-light); }
.recommend-icon { background: rgba(212, 160, 32, 0.15); color: var(--accent); }
.card-header h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 2px; }
.card-header p { font-size: 0.8rem; color: var(--text-muted); }
.card-body { padding: 24px 28px; }

.tag-selector { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tag {
    display: inline-flex; padding: 5px 13px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    border-radius: 50px; font-size: 0.78rem; font-weight: 500;
    color: var(--text-secondary); cursor: pointer; transition: var(--transition); user-select: none;
}
.tag:hover { border-color: var(--primary-light); color: var(--primary-light); background: rgba(37, 211, 102, 0.1); }
.tag.selected { background: rgba(37, 211, 102, 0.2); border-color: var(--primary); color: var(--primary-light); }

.textarea-wrapper { position: relative; }
textarea, input[type="text"], input[type="password"], select {
    width: 100%; padding: 13px 16px; background: var(--bg-input);
    border: 1px solid var(--border); border-radius: var(--radius-md);
    color: var(--text-primary); font-family: 'Inter', sans-serif;
    font-size: 0.93rem; line-height: 1.7; transition: var(--transition); resize: vertical;
}
textarea:focus, input[type="text"]:focus, input[type="password"]:focus, select:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}
textarea::placeholder, input::placeholder { color: var(--text-muted); }
select {
    cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23A0C4AC' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
select option { background: var(--bg-card); color: var(--text-primary); }
.char-count { text-align: right; font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; }

/* --- Issues Section --- */
.issues-container {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg);
    max-width: 800px; margin: 0 auto;
}
.issue-categories {
    display: flex; overflow-x: auto; border-bottom: 1px solid var(--border);
    padding: 8px; gap: 4px; scrollbar-width: none;
}
.issue-categories::-webkit-scrollbar { display: none; }
.issue-cat {
    display: flex; align-items: center; gap: 7px; padding: 10px 16px;
    background: transparent; border: 1px solid transparent;
    border-radius: var(--radius-md); color: var(--text-secondary);
    font-family: 'Inter', sans-serif; font-size: 0.82rem; font-weight: 500;
    cursor: pointer; transition: var(--transition); white-space: nowrap; flex-shrink: 0;
}
.issue-cat:hover { background: rgba(255,255,255,0.04); color: var(--text-primary); }
.issue-cat.active { background: rgba(37, 211, 102, 0.15); border-color: rgba(37, 211, 102, 0.3); color: var(--primary-light); }
.issue-form { padding: 28px; display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* --- Submit Section --- */
.submit-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 36px; box-shadow: var(--shadow-lg);
    max-width: 600px; margin: 0 auto;
}
.submit-summary { display: grid; gap: 14px; margin-bottom: 28px; }
.summary-item {
    display: flex; align-items: center; gap: 14px; padding: 14px 18px;
    background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: var(--radius-md);
}
.summary-icon {
    width: 38px; height: 38px; background: rgba(37, 211, 102, 0.12);
    border-radius: var(--radius-sm); display: flex; align-items: center;
    justify-content: center; color: var(--primary-light); flex-shrink: 0;
}
.summary-detail { display: flex; justify-content: space-between; align-items: center; flex: 1; }
.summary-label { font-size: 0.85rem; color: var(--text-secondary); }
.summary-value { font-weight: 700; font-size: 0.9rem; }

.anonymous-notice {
    display: flex; align-items: flex-start; gap: 14px; padding: 18px;
    background: rgba(37, 211, 102, 0.08); border: 1px solid rgba(37, 211, 102, 0.2);
    border-radius: var(--radius-md); margin-bottom: 28px;
}
.anonymous-notice > i { font-size: 1.4rem; color: var(--primary-light); margin-top: 2px; flex-shrink: 0; }
.anonymous-notice strong { color: var(--primary-light); display: block; margin-bottom: 4px; font-size: 0.9rem; }
.anonymous-notice p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; }

/* --- Buttons --- */
.btn-primary {
    padding: 14px 32px; background: var(--gradient-primary); border: none;
    border-radius: var(--radius-md); font-family: 'Inter', sans-serif;
    font-size: 0.95rem; font-weight: 700; color: #0B1F14; cursor: pointer;
    transition: var(--transition); box-shadow: var(--shadow-glow);
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(37, 211, 102, 0.5); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
    padding: 14px 32px; background: transparent; border: 1px solid var(--border);
    border-radius: var(--radius-md); font-family: 'Inter', sans-serif;
    font-size: 0.95rem; font-weight: 600; color: var(--text-secondary); cursor: pointer;
    transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary-light); }

.btn-danger {
    padding: 10px 20px; background: var(--gradient-danger); border: none;
    border-radius: var(--radius-sm); font-family: 'Inter', sans-serif;
    font-size: 0.85rem; font-weight: 600; color: white; cursor: pointer;
    transition: var(--transition);
}
.btn-danger:hover { transform: translateY(-1px); }

.btn-sm { padding: 6px 14px; font-size: 0.78rem; border-radius: 6px; }

.submit-btn {
    width: 100%; padding: 16px; background: var(--gradient-primary); border: none;
    border-radius: var(--radius-md); font-family: 'Inter', sans-serif;
    font-size: 1rem; font-weight: 700; color: #0B1F14; cursor: pointer;
    transition: var(--transition); box-shadow: var(--shadow-glow);
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(37, 211, 102, 0.5); }
.submit-btn .btn-loading, .submit-btn .btn-success { display: none; }
.submit-btn.loading .btn-text { display: none; }
.submit-btn.loading .btn-loading { display: inline-flex; align-items: center; gap: 8px; }
.submit-btn.success { background: var(--gradient-accent); box-shadow: var(--shadow-gold); }
.submit-btn.success .btn-text { display: none; }
.submit-btn.success .btn-success { display: inline-flex; align-items: center; gap: 8px; }

.page-nav {
    display: flex; justify-content: center; gap: 16px;
    margin-top: 40px; padding-bottom: 20px;
}


/* --- Modals --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.75); backdrop-filter: blur(12px);
    display: none; align-items: center; justify-content: center;
    z-index: 10000; padding: 24px;
}
.modal-overlay.open { display: flex; }

.modal {
    background: rgba(12, 28, 18, 0.97);
    border: 1px solid rgba(37,211,102,0.2);
    border-top: 3px solid var(--primary);
    border-radius: var(--radius-xl); padding: 40px; text-align: center;
    max-width: 500px; width: 100%; position: relative; overflow: hidden;
    animation: modalIn 0.3s ease;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.modal.wide { max-width: 640px; text-align: left; padding: 0; }
.modal.wide .modal-header {
    padding: 20px 28px;
    border-bottom: 1px solid rgba(37,211,102,0.12);
    background: rgba(37,211,102,0.04);
    display: flex; align-items: center; gap: 12px;
}
.modal.wide .modal-header i {
    width: 32px; height: 32px; border-radius: 8px;
    background: rgba(37,211,102,0.15); display: flex;
    align-items: center; justify-content: center;
    color: var(--primary-light); font-size: 0.85rem; flex-shrink: 0;
}
.modal.wide .modal-header h2 {
    font-family: 'Playfair Display', serif; font-size: 1.15rem;
    font-weight: 800; margin: 0;
}
.modal.wide .modal-body { padding: 24px 28px; max-height: 75vh; overflow-y: auto; }

@keyframes modalIn { from { opacity:0; transform: scale(0.92) translateY(16px); } to { opacity:1; transform: scale(1) translateY(0); } }

.modal-icon { font-size: 3rem; color: var(--primary-light); margin-bottom: 14px; }
.modal h2 { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin-bottom: 10px; }
.modal p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.7; margin-bottom: 20px; }
.modal-form { display: flex; flex-direction: column; gap: 14px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* Form groups inside modals */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); }
.form-group input, .form-group select, .form-group textarea {
    padding: 11px 14px; border-radius: var(--radius-sm); font-size: 0.88rem;
    font-family: 'Inter', sans-serif; color: var(--text-primary);
    background: rgba(8,22,14,0.9); border: 1px solid rgba(37,211,102,0.18);
    outline: none; transition: var(--transition); width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,211,102,0.1);
}
.form-group select option { background: #0B1F14; }

/* Toast */
.toast {
    position: fixed; top: 24px; right: 24px; z-index: 20000;
    background: rgba(12,28,18,0.97); border: 1px solid rgba(37,211,102,0.25);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md); padding: 14px 20px;
    display: flex; align-items: center; gap: 10px;
    font-size: 0.88rem; font-weight: 600; color: var(--text-primary);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    transform: translateX(120%); transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
    min-width: 260px;
}
.toast.show { transform: translateX(0); }
.toast.error { border-left-color: var(--danger); }
.toast.error i { color: var(--danger); }
.toast i { color: var(--primary-light); font-size: 1rem; }

/* --- Admin Panel --- */
#adminLogin { position: relative; z-index: 10; min-height: 100vh; display: flex; align-items: center; justify-content: center; }

#adminPanel {
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px; min-width: 260px; background: rgba(8,22,14,0.97);
    backdrop-filter: blur(20px); border-right: 1px solid rgba(37,211,102,0.12);
    display: flex; flex-direction: column; position: fixed;
    top: 0; left: 0; bottom: 0; z-index: 50; overflow-y: auto;
}
.sidebar-header {
    padding: 28px 20px 20px; border-bottom: 1px solid rgba(37,211,102,0.1); text-align: center;
}
.sidebar-header img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); margin-bottom: 10px; }
.sidebar-header h2 { font-size: 1rem; font-weight: 800; color: var(--primary-light); margin-bottom: 4px; }
.sidebar-header p { font-size: 0.75rem; color: var(--text-muted); }

.sidebar-nav { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.nav-item {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    border-radius: 10px; color: var(--text-secondary); font-size: 0.87rem;
    font-weight: 600; cursor: pointer; transition: var(--transition);
    border: none; background: none; font-family: 'Inter', sans-serif;
    width: 100%; text-align: left;
}
.nav-item:hover { background: rgba(37,211,102,0.08); color: var(--text-primary); }
.nav-item.active { background: rgba(37,211,102,0.14); color: var(--primary-light); font-weight: 700; border: 1px solid rgba(37,211,102,0.2); }
.nav-item i { width: 18px; text-align: center; font-size: 0.9rem; }

.sidebar-footer { padding: 12px; border-top: 1px solid rgba(37,211,102,0.1); }

.admin-main {
    margin-left: 260px; padding: 0; min-height: 100vh;
    flex: 1; position: relative; z-index: 1;
}

/* Institution Banner */
.admin-institution-banner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 28px; flex-wrap: wrap; gap: 12px;
    background: linear-gradient(135deg, rgba(8,28,18,0.95) 0%, rgba(12,36,24,0.97) 100%);
    backdrop-filter: blur(16px); border-bottom: 1px solid rgba(37,211,102,0.15);
    position: sticky; top: 0; z-index: 10;
}
.banner-left { display: flex; align-items: center; gap: 14px; }
.banner-left img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); }
.banner-left h2 { font-size: 0.95rem; font-weight: 800; margin-bottom: 2px; }
.banner-left p { font-size: 0.75rem; color: var(--text-muted); }
.banner-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.banner-pill {
    padding: 5px 14px; border-radius: 50px; font-size: 0.72rem; font-weight: 700;
    background: rgba(37,211,102,0.1); border: 1px solid rgba(37,211,102,0.2);
    color: var(--primary-light); display: inline-flex; align-items: center; gap: 6px;
    transition: var(--transition);
}
.banner-pill:hover { background: rgba(37,211,102,0.18); }

/* Tab content */
.tab-content { display: none; padding: 28px; }
.tab-content.active { display: block; }

/* Admin Header */
.admin-header { margin-bottom: 28px; }
.admin-header h1 { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 800; margin-bottom: 6px; }
.admin-header p { color: var(--text-muted); font-size: 0.87rem; }

/* Stat Grid */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.admin-stat-card {
    background: rgba(12,30,20,0.88); backdrop-filter: blur(16px);
    border: 1px solid rgba(37,211,102,0.14); border-radius: var(--radius-md);
    padding: 22px 20px; transition: var(--transition);
    border-top: 2px solid transparent; box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.admin-stat-card:nth-child(1) { border-top-color: var(--primary); }
.admin-stat-card:nth-child(2) { border-top-color: var(--accent); }
.admin-stat-card:nth-child(3) { border-top-color: var(--danger); }
.admin-stat-card:nth-child(4) { border-top-color: var(--info); }
.admin-stat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(0,0,0,0.3); }
.stat-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; margin-bottom: 14px; }
.stat-icon.green { background: rgba(37,211,102,0.15); color: var(--primary-light); }
.stat-icon.gold  { background: rgba(212,160,32,0.15); color: var(--accent); }
.stat-icon.red   { background: rgba(220,53,69,0.15);  color: var(--danger); }
.stat-icon.blue  { background: rgba(43,140,196,0.15); color: var(--info); }
.stat-value { font-size: 2.2rem; font-weight: 900; line-height: 1; margin-bottom: 4px; }
.stat-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 6px; }
.stat-sub   { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }

/* Analytics Grid */
.analytics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.analytics-card {
    background: rgba(12,30,20,0.88); backdrop-filter: blur(16px);
    border: 1px solid rgba(37,211,102,0.12); border-radius: var(--radius-md);
    padding: 22px; transition: var(--transition);
}
.analytics-card:hover { border-color: rgba(37,211,102,0.28); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.analytics-card h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; }
.dist-item { margin-bottom: 14px; }
.dist-header { display: flex; justify-content: space-between; font-size: 0.79rem; margin-bottom: 6px; color: var(--text-secondary); }
.dist-bar-bg { width: 100%; height: 8px; background: rgba(255,255,255,0.06); border-radius: 6px; overflow: hidden; }
.dist-bar-fill { height: 100%; border-radius: 6px; transition: width 0.7s ease; }

/* Category Badges */
.category-badges-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.category-badge-item {
    padding: 10px 14px; background: rgba(255,255,255,0.02);
    border: 1px solid rgba(37,211,102,0.1); border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: space-between; transition: var(--transition);
}
.category-badge-item:hover { background: rgba(37,211,102,0.05); border-color: rgba(37,211,102,0.2); }
.cat-name { font-size: 0.8rem; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; }
.cat-count { font-weight: 900; font-size: 1rem; color: var(--text-primary); }

/* Toolbar */
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 16px; flex-wrap: wrap; }
.toolbar h3 { font-size: 1.1rem; font-weight: 700; }
.toolbar-actions { display: flex; gap: 10px; align-items: center; }
.toolbar input[type="text"] { max-width: 260px; }

/* Data Table */
.data-table { width: 100%; border-collapse: collapse; background: rgba(10,26,16,0.6); border: 1px solid rgba(37,211,102,0.1); border-radius: var(--radius-md); overflow: hidden; }
.data-table thead th { padding: 13px 18px; text-align: left; font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid rgba(37,211,102,0.1); background: rgba(37,211,102,0.04); }
.data-table tbody td { padding: 13px 18px; font-size: 0.86rem; color: var(--text-secondary); border-bottom: 1px solid rgba(37,211,102,0.06); vertical-align: middle; }
.data-table tbody tr:hover { background: rgba(37,211,102,0.04); }
.data-table tbody tr:last-child td { border-bottom: none; }
.action-btns { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 50px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.badge-success { background: rgba(37,211,102,0.12); color: var(--primary-light); }
.badge-warning { background: rgba(212,160,32,0.12); color: var(--accent); }
.badge-danger  { background: rgba(220,53,69,0.12);  color: var(--danger); }

/* Empty State */
.empty-state { text-align: center; padding: 60px 24px; color: var(--text-muted); }
.empty-state i { font-size: 2.8rem; margin-bottom: 14px; display: block; opacity: 0.25; }
.empty-state p { font-size: 0.9rem; line-height: 1.6; }

/* Responsive */
@media (max-width: 1200px) { .stat-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 900px)  { .analytics-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px)  {
    .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
    .admin-main { margin-left: 0; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Tab toolbar refinements ---- */
.toolbar {
    background: rgba(12,30,20,0.7);
    border: 1px solid rgba(37,211,102,0.12);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    margin-bottom: 20px;
}
.toolbar h3 { font-size: 1rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.toolbar input[type="text"] {
    background: rgba(8,22,14,0.9);
    border: 1px solid rgba(37,211,102,0.2);
    border-radius: var(--radius-sm);
    padding: 9px 14px; font-size: 0.85rem;
    color: var(--text-primary); font-family: 'Inter', sans-serif;
    min-width: 220px; outline: none; transition: var(--transition);
}
.toolbar input[type="text"]:focus { border-color: var(--primary); }

/* ---- Data table improvements ---- */
.data-table { border-radius: var(--radius-md); overflow: hidden; }
.data-table thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.data-table thead th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }

/* Action buttons layout */
.action-btns { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; min-width: 160px; }

/* btn-danger */
.btn-danger {
    padding: 8px 16px; background: var(--gradient-danger); border: none;
    border-radius: var(--radius-sm); font-family: 'Inter', sans-serif;
    font-size: 0.82rem; font-weight: 700; color: white; cursor: pointer;
    transition: var(--transition); display: inline-flex; align-items: center; gap: 6px;
}
.btn-danger:hover { transform: translateY(-1px); box-shadow: 0 0 20px rgba(220,53,69,0.35); }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(37,211,102,0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(37,211,102,0.35); }
/* =========================================================
   COMPREHENSIVE MOBILE RESPONSIVE SUITE
   Tailored for iPhone SE (320/375px), iPhone 7 & 7 Plus (375/414px), 
   iPhone 11 (414px/375px), and small handheld screens.
   Zero visual interference on laptop and desktop screens (>900px).
   ========================================================= */

/* Prevent iOS auto-zoom on input focus */
@media (max-width: 768px) {
    input[type="text"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px !important;
    }
    button, input, select, textarea, .nav-item, .tag, .issue-cat {
        touch-action: manipulation;
    }
}

/* --- Admin Mobile Header & Drawer (Hidden on Laptops) --- */
.admin-mobile-header {
    display: none;
}
.sidebar-backdrop {
    display: none;
}

@media (max-width: 1024px) {
    .admin-sidebar { width: 220px; }
    .admin-main { margin-left: 220px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .admin-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 18px;
        background: rgba(8, 22, 14, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(37, 211, 102, 0.2);
        position: sticky;
        top: 0;
        z-index: 100;
        width: 100%;
    }
    .admin-hamburger {
        background: rgba(37, 211, 102, 0.12);
        border: 1px solid rgba(37, 211, 102, 0.25);
        color: var(--primary-light);
        width: 42px;
        height: 42px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.15rem;
        cursor: pointer;
        transition: var(--transition);
    }
    .admin-hamburger:active {
        transform: scale(0.92);
        background: rgba(37, 211, 102, 0.25);
    }
    .admin-mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .admin-mobile-brand img {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: 1.5px solid var(--primary);
    }
    .admin-mobile-brand span {
        font-family: 'Playfair Display', serif;
        font-weight: 800;
        font-size: 1.05rem;
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    .admin-mobile-logout {
        background: rgba(220, 53, 69, 0.12);
        border: 1px solid rgba(220, 53, 69, 0.25);
        color: var(--danger);
        width: 42px;
        height: 42px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.05rem;
        cursor: pointer;
    }

    /* Sidebar Drawer */
    .admin-sidebar {
        display: flex !important;
        position: fixed !important;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 82vw;
        z-index: 1050 !important;
        transform: translateX(-100%);
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 10px 0 40px rgba(0,0,0,0.8);
    }
    .admin-sidebar.mobile-open {
        transform: translateX(0) !important;
    }
    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        z-index: 1040;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    .sidebar-backdrop.active {
        opacity: 1;
        pointer-events: auto;
    }
    #adminPanel {
        display: block !important;
        width: 100% !important;
        position: relative !important;
    }
    .admin-main {
        margin-left: 0 !important;
        width: 100% !important;
    }
    .admin-institution-banner {
        padding: 12px 16px;
    }
    .banner-left h2 {
        font-size: 0.88rem;
    }
    .banner-left p {
        font-size: 0.72rem;
    }
    .stat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    .analytics-grid {
        grid-template-columns: 1fr !important;
    }
    .tab-content {
        padding: 18px 14px;
    }
}

/* --- Smartphones & Small Handhelds (max-width: 768px) --- */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    /* Containers */
    .container {
        padding: 0 14px;
    }

    /* Evaluation Navbar (Title Bar) */
    .navbar, .navbar.scrolled {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 50px !important;
        padding: 0 !important;
        background: rgba(8, 22, 14, 0.98) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(37, 211, 102, 0.15) !important;
        z-index: 1000 !important;
        display: flex !important;
        align-items: center !important;
    }
    .nav-container {
        padding: 0 14px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .nav-logo img {
        width: 28px;
        height: 28px;
    }
    .nav-logo span {
        font-size: 0.88rem;
        font-weight: 700;
    }
    .nav-user {
        gap: 8px;
    }
    .nav-user-name {
        font-size: 0.8rem;
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .nav-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    /* Step Indicator Bar — Placed immediately under the Title Bar */
    .step-indicator {
        position: fixed !important;
        top: 50px !important; /* Immediately below the 50px title bar */
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        height: 44px !important;
        padding: 4px 10px !important;
        background: rgba(11, 31, 20, 0.98) !important;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(37, 211, 102, 0.18) !important;
        z-index: 999 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    .step {
        padding: 2px 4px;
    }
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.78rem;
    }
    .step-text {
        display: none !important;
    }
    .step-line {
        width: 24px;
        min-width: 14px;
        height: 2px;
        margin: 0 4px;
    }

    /* Full-page sections start right below the fixed title + step bar (50px + 44px = 94px) */
    .full-page {
        padding-top: 108px !important;
        padding-bottom: 40px !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
        min-height: calc(100vh - 94px);
        justify-content: flex-start !important;
        box-sizing: border-box !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Headers */
    .section-header {
        margin-bottom: 20px;
        text-align: center;
    }
    .section-title {
        font-size: 1.45rem !important;
        line-height: 1.25;
        margin-bottom: 6px;
    }
    .section-desc {
        font-size: 0.84rem;
        line-height: 1.45;
    }
    .section-tag {
        font-size: 0.72rem;
        padding: 4px 10px;
        margin-bottom: 8px;
    }

    /* Step 1: Rating Circle & Slider */
    .rating-card {
        padding: 24px 14px !important;
        border-radius: 16px;
    }
    .rating-display {
        margin-bottom: 20px;
    }
    .rating-circle {
        width: 144px;
        height: 144px;
        margin-bottom: 8px;
    }
    .rating-number {
        font-size: 2.3rem;
    }
    .rating-percent {
        font-size: 1.1rem;
    }
    .rating-label {
        font-size: 0.88rem;
        letter-spacing: 2px;
    }
    .slider-container {
        margin-bottom: 26px;
        padding: 0 4px;
    }
    .custom-slider-track {
        height: 14px;
        border-radius: 12px;
    }
    .custom-slider-fill {
        border-radius: 12px;
    }
    .custom-slider-thumb {
        width: 32px;
        height: 32px;
        box-shadow: 0 0 14px rgba(37, 211, 102, 0.6);
    }
    
    /* Category breakdown item */
    .breakdown-item {
        padding: 10px 12px;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
        text-align: left !important;
        border-radius: 10px;
    }
    .breakdown-item label {
        font-size: 0.82rem;
        width: 100%;
        color: var(--text-primary);
    }
    .mini-stars {
        display: flex;
        gap: 10px;
        width: 100%;
        justify-content: flex-start;
    }
    .mini-stars i {
        font-size: 1.35rem;
        padding: 4px 2px;
    }

    /* Executive Ratings */
    .exec-section {
        margin-top: 32px;
    }
    .exec-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    .exec-card {
        padding: 16px 14px;
        border-radius: 14px;
    }
    .exec-avatar {
        width: 48px;
        height: 48px;
        font-size: 1.05rem;
        margin-bottom: 8px;
    }
    .exec-name {
        font-size: 0.95rem;
    }
    .exec-portfolio {
        font-size: 0.78rem;
        margin-bottom: 10px;
    }
    .exec-stars i {
        font-size: 1.35rem;
        padding: 4px 2px;
    }

    /* Step 2: Feedback */
    .feedback-grid {
        gap: 16px;
    }
    .feedback-card {
        border-radius: 16px;
    }
    .card-header {
        padding: 14px 16px;
        gap: 12px;
    }
    .card-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    .card-header h3 {
        font-size: 0.98rem;
    }
    .card-header p {
        font-size: 0.75rem;
    }
    .card-body {
        padding: 14px 16px;
    }
    .tag-selector {
        gap: 6px;
        margin-bottom: 12px;
    }
    .tag {
        font-size: 0.72rem;
        padding: 6px 11px;
        min-height: 32px;
    }

    /* Step 3: Issues (Zero horizontal scroll, perfectly responsive 2-column grid) */
    .issues-container {
        border-radius: 16px;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    .issue-categories {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 12px 10px !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        border-bottom: 1px solid rgba(37, 211, 102, 0.15) !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .issue-cat {
        width: 100% !important;
        white-space: normal !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 10px 6px !important;
        font-size: 0.78rem !important;
        line-height: 1.25 !important;
        min-height: 44px !important;
        border-radius: 10px !important;
        flex-shrink: 1 !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(37, 211, 102, 0.15) !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        box-sizing: border-box !important;
    }
    .issue-cat i {
        font-size: 0.85rem;
    }
    .issue-cat.active {
        background: rgba(37, 211, 102, 0.2) !important;
        border-color: var(--primary) !important;
        color: var(--primary-light) !important;
        box-shadow: 0 0 10px rgba(37, 211, 102, 0.25);
    }
    .issue-form {
        padding: 16px 12px !important;
        gap: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        width: 100% !important;
    }
    .issue-form input, .issue-form select, .issue-form textarea {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Step 4: Submit & Summary */
    .submit-card {
        padding: 20px 14px;
        border-radius: 16px;
    }
    .submit-summary {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 18px;
    }
    .summary-item {
        padding: 10px 12px;
        gap: 10px;
        border-radius: 10px;
    }
    .summary-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    .summary-label {
        font-size: 0.72rem;
    }
    .summary-value {
        font-size: 0.82rem;
    }
    .anon-toggle-row {
        padding: 14px 12px;
        gap: 10px;
        border-radius: 12px;
    }
    .anon-toggle-info strong {
        font-size: 0.88rem;
    }
    .anon-toggle-info p {
        font-size: 0.74rem;
        line-height: 1.4;
    }
    .submit-btn {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    .page-nav {
        padding: 20px 0 36px;
        gap: 10px;
    }
    .page-nav button {
        flex: 1;
        padding: 12px 14px;
        font-size: 0.88rem;
        justify-content: center;
    }

    /* Tables in Admin */
    #recentTable, #execTable, #adminTable, #studentTable, #editedResponsesTable, #responsesTable {
        width: 100%;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
        margin-bottom: 16px;
    }
    .data-table {
        min-width: 620px;
        width: 100%;
    }
    .toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px;
    }
    .toolbar input[type="text"] {
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100%;
    }
    .toolbar-actions {
        flex-wrap: wrap;
        width: 100%;
    }
    .toolbar-actions button, .toolbar-actions a {
        flex: 1;
        justify-content: center;
        font-size: 0.8rem;
    }

    /* Modals on Mobile */
    .modal {
        max-width: 95vw !important;
        max-height: 90vh !important;
        padding: 24px 18px !important;
        border-radius: 18px !important;
        overflow-y: auto;
    }
}

/* --- iPhone SE (1st & 2nd gen), iPhone 7, 7 Plus, 11 (max-width: 480px) --- */
@media (max-width: 480px) {
    /* Login & Register Pages */
    .login-page {
        padding: 20px 12px;
        align-items: flex-start;
        padding-top: 30px;
    }
    .login-card {
        padding: 26px 18px !important;
        border-radius: 18px !important;
        max-width: 100% !important;
    }
    .login-logo {
        margin-bottom: 22px;
    }
    .login-logo img {
        width: 68px;
        height: 68px;
        margin-bottom: 10px;
    }
    .login-logo h1 {
        font-size: 1.35rem;
        line-height: 1.2;
    }
    .login-logo .school-name {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
        line-height: 1.3;
    }
    .login-logo p {
        font-size: 0.8rem;
        margin-top: 6px;
    }
    .login-form {
        gap: 13px;
    }
    .form-group label {
        font-size: 0.8rem;
    }
    .fp-card {
        padding: 22px 16px !important;
        border-radius: 18px !important;
        max-width: 95vw !important;
    }
    .fp-card h2 {
        font-size: 1.25rem;
    }
    .fp-card p {
        font-size: 0.8rem;
        margin-bottom: 16px;
    }

    /* Admin stat cards on smaller phones */
    .stat-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
    .admin-stat-card {
        padding: 14px 10px !important;
        border-radius: 10px;
    }
    .stat-value {
        font-size: 1.45rem !important;
    }
    .stat-title {
        font-size: 0.7rem !important;
        letter-spacing: 0.5px !important;
    }
    .stat-sub {
        font-size: 0.65rem !important;
        line-height: 1.3;
    }
    .stat-icon {
        width: 34px !important;
        height: 34px !important;
        font-size: 0.9rem !important;
        margin-bottom: 8px !important;
    }

    /* Submit summary on iPhone SE: single column */
    .submit-summary {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    /* Responses view */
    .my-response {
        padding: 14px 10px;
    }
    .response-header {
        padding-top: 65px;
    }
    .response-header h2 {
        font-size: 1.35rem;
    }
    .response-card {
        padding: 18px 14px;
        border-radius: 14px;
    }
    .response-rating-big {
        font-size: 2.3rem;
    }
}

/* Extra small devices e.g. iPhone 5/SE (max-width: 360px) */
@media (max-width: 360px) {
    .nav-user-name {
        display: none;
    }
    .section-title {
        font-size: 1.3rem !important;
    }
    .rating-circle {
        width: 130px;
        height: 130px;
    }
    .rating-number {
        font-size: 2rem;
    }
}


/* ---- Admin Login Wrapper ---- */
#adminLogin { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
/* ==========================================
   Polish & Refinements Layer
   ========================================== */

/* Login card divider line */
.login-form-divider {
    display: flex; align-items: center; gap: 12px; margin: 4px 0;
}
.login-form-divider::before,
.login-form-divider::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37,211,102,0.2), transparent);
}
.login-form-divider span {
    font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px;
}

/* Better input styling */
input[type="text"], input[type="password"] {
    background: rgba(8, 22, 14, 0.9) !important;
    border-color: rgba(37, 211, 102, 0.18) !important;
}
input[type="text"]:hover, input[type="password"]:hover {
    border-color: rgba(37, 211, 102, 0.35) !important;
}

/* Sidebar badge counter (future use) */
.nav-badge {
    margin-left: auto; padding: 2px 8px;
    background: rgba(37, 211, 102, 0.15);
    border: 1px solid rgba(37, 211, 102, 0.25);
    border-radius: 50px; font-size: 0.7rem; font-weight: 700;
    color: var(--primary-light);
}

/* Admin stat card subtle top accent */
.admin-stat-card {
    border-top: 2px solid transparent;
    transition: border-top-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.admin-stat-card:nth-child(1) { border-top-color: var(--primary); }
.admin-stat-card:nth-child(2) { border-top-color: var(--accent); }
.admin-stat-card:nth-child(3) { border-top-color: var(--danger); }
.admin-stat-card:nth-child(4) { border-top-color: var(--info); }

/* Data table refinement */
.data-table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.data-table thead tr {
    background: rgba(37, 211, 102, 0.05);
}
.data-table tbody tr {
    transition: background 0.15s ease;
}
.data-table tbody tr:hover {
    background: rgba(37, 211, 102, 0.05) !important;
}

/* Action button group polish */
.action-btns { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.action-btns .btn-primary, .action-btns .btn-outline, .action-btns .btn-danger {
    white-space: nowrap;
}

/* Banner pill hover */
.banner-pill {
    transition: var(--transition);
}
.banner-pill:hover {
    background: rgba(37, 211, 102, 0.2) !important;
}

/* Institution banner refined */
.admin-institution-banner {
    background: linear-gradient(135deg, rgba(14, 38, 25, 0.92) 0%, rgba(10, 26, 16, 0.95) 100%);
}

/* Improved analytics card hover */
.analytics-card {
    transition: var(--transition);
}
.analytics-card:hover {
    border-color: rgba(37, 211, 102, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

/* Empty state icon pulse */
.empty-state i {
    animation: subtlePulse 3s ease-in-out infinite;
}
@keyframes subtlePulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(1.05); }
}

/* Toast refinement */
.toast {
    min-width: 260px;
    border-left: 4px solid rgba(255,255,255,0.4);
}

/* Feedback card header icon */
.card-header i { width: 36px; height: 36px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }

/* Exec card avatar initials */
.exec-avatar {
    width: 54px; height: 54px; border-radius: 50%;
    background: var(--gradient-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: 800; color: #0B1F14;
    margin: 0 auto 12px; box-shadow: var(--shadow-glow);
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); }
::-webkit-scrollbar-thumb { background: rgba(37, 211, 102, 0.25); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(37, 211, 102, 0.4); }

/* Smooth modal body scrollbar */
.modal-body { scrollbar-width: thin; scrollbar-color: rgba(37,211,102,0.25) transparent; }

/* Section label / role badges */
.role-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; border-radius: 50px; font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.role-pill.super { background: rgba(212,160,32,0.15); color: var(--accent); border: 1px solid rgba(212,160,32,0.3); }
.role-pill.admin { background: rgba(37,211,102,0.12); color: var(--primary-light); border: 1px solid rgba(37,211,102,0.25); }
.role-pill.mod { background: rgba(43,140,196,0.12); color: var(--info); border: 1px solid rgba(43,140,196,0.25); }

/* Evaluation status pulsing dot */
@keyframes liveGlow {
    0%, 100% { box-shadow: 0 0 6px #25D366, 0 0 12px #25D366; }
    50% { box-shadow: 0 0 16px #25D366, 0 0 28px #25D366; }
}
#evalStatusIndicator { animation: liveGlow 2s ease-in-out infinite; }
