/* ==========================================================================
   students_list.css — Sneh Shikshan Avam Manav Seva Sansthan (Rewa, MP)
   Students List Page Styling
   ========================================================================== */

:root {
    --orange:        #ffa500;
    --orange-dark:   #e69500;
    --navy:          #1a2c4e;
    --navy-dark:     #0f1c34;
    --navy-light:    #2a3f66;
    --white:         #ffffff;
    --text-dark:     #222222;
    --text-muted:    #667085;
    --bg-soft:       #f7f9fc;
    --green:         #10b981;
    --pink:          #ec4899;
    --shadow-sm:     0 2px 10px rgba(0, 0, 0, 0.06);
    --shadow-md:     0 6px 24px rgba(0, 0, 0, 0.10);
    --shadow-lg:     0 12px 40px rgba(0, 0, 0, 0.15);
    --radius:        14px;
}

/* -------------------- Utility -------------------- */
.section-pad { padding: 70px 0; }

.section-tag {
    display: inline-block;
    background: rgba(255, 165, 0, 0.15);
    color: var(--orange-dark);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 14px;
    line-height: 1.25;
}

.section-sub {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.section-head { margin-bottom: 40px; }

/* -------------------- Buttons -------------------- */
.btn-brand {
    background: var(--orange);
    color: var(--white) !important;
    font-weight: 700;
    border: 2px solid var(--orange);
    padding: 10px 26px;
    border-radius: 50px;
    font-size: 14.5px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-brand:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 44, 78, 0.3);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: var(--white);
    font-weight: 700;
    padding: 10px 26px;
    border-radius: 50px;
    font-size: 14.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

/* ==========================================================================
   PAGE HERO (shared)
   ========================================================================== */
.page-hero {
    position: relative;
    min-height: 280px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 60px 0;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 30%, rgba(255, 165, 0, 0.20), transparent 45%),
        radial-gradient(circle at 85% 70%, rgba(255, 165, 0, 0.15), transparent 45%);
    pointer-events: none;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg,
            rgba(255,255,255,0.03) 0 20px,
            transparent 20px 40px);
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.page-hero-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--white);
    margin: 0 0 14px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.page-breadcrumb {
    justify-content: center;
    margin: 0;
    background: transparent;
    padding: 0;
}

.page-breadcrumb .breadcrumb-item,
.page-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.page-breadcrumb .breadcrumb-item a:hover { color: var(--orange); }
.page-breadcrumb .breadcrumb-item.active { color: var(--orange); font-weight: 700; }

.page-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    line-height: 1;
}

.page-breadcrumb i { margin-right: 4px; }

/* ==========================================================================
   STATS STRIP
   ========================================================================== */
.stats-strip {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding: 35px 0;
    position: relative;
    overflow: hidden;
}

.stats-strip::before {
    content: "";
    position: absolute;
    top: -50px; right: -80px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255, 165, 0, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.stats-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
    z-index: 1;
    padding: 10px;
    transition: transform 0.3s ease;
}

.stats-item:hover { transform: translateY(-3px); }

.stats-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: var(--white);
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.35);
}

.stats-info { text-align: left; }

.stats-info h3 {
    font-size: 30px;
    font-weight: 800;
    color: var(--white);
    margin: 0 0 2px;
    line-height: 1;
}

.stats-info p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.3px;
}

/* ==========================================================================
   STUDENTS SECTION
   ========================================================================== */
.students-section { background: var(--bg-soft); }

/* -------------------- Toolbar -------------------- */
.toolbar {
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
}

.toolbar-search {
    flex: 1;
    min-width: 240px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-soft);
    border: 1.5px solid #e5e9f0;
    border-radius: 50px;
    padding: 8px 18px;
    transition: all 0.3s ease;
    position: relative;
}

.toolbar-search:focus-within {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.15);
    background: var(--white);
}

.toolbar-search i {
    color: var(--orange);
    font-size: 16px;
    flex-shrink: 0;
}

.toolbar-search input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 14.5px;
    color: var(--navy);
    padding: 4px 0;
}

.toolbar-search input::placeholder { color: #9ca3af; }

.search-clear {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    padding: 4px;
    cursor: pointer;
    display: none;
    line-height: 1;
}

.search-clear.visible { display: inline-block; }
.search-clear:hover { color: var(--orange); }

/* Filters */
.toolbar-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-soft);
    border: 1.5px solid transparent;
    color: var(--navy);
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    background: rgba(255, 165, 0, 0.12);
    color: var(--orange-dark);
}

.filter-btn.active {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.35);
}

/* Actions */
.toolbar-actions { display: flex; gap: 8px; }

.action-btn {
    background: var(--navy);
    color: var(--white);
    border: 1.5px solid var(--navy);
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.action-btn:hover {
    background: var(--orange);
    border-color: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(255, 165, 0, 0.35);
}

/* Results Info */
.results-info {
    color: var(--text-muted);
    font-size: 13.5px;
    margin-bottom: 16px;
    padding: 0 4px;
}

.results-info b { color: var(--navy); font-weight: 700; }

/* ==========================================================================
   STUDENTS GRID (Table-like Layout)
   ========================================================================== */
.students-grid {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* Header Row */
.grid-header {
    display: grid;
    grid-template-columns: 60px 1fr 140px 130px 80px;
    gap: 14px;
    align-items: center;
    background: var(--navy);
    color: var(--white);
    padding: 16px 22px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.grid-header .col-num { text-align: center; }
.grid-header .col-class,
.grid-header .col-gender,
.grid-header .col-action { text-align: center; }

/* Data Row */
.grid-row {
    display: grid;
    grid-template-columns: 60px 1fr 140px 130px 80px;
    gap: 14px;
    align-items: center;
    padding: 14px 22px;
    border-bottom: 1px solid #eef1f6;
    transition: all 0.25s ease;
    background: var(--white);
}

.grid-row:last-child { border-bottom: none; }

.grid-row:hover {
    background: linear-gradient(90deg,
        rgba(255, 165, 0, 0.06) 0%,
        rgba(255, 165, 0, 0.02) 100%);
    transform: translateX(2px);
    border-left: 3px solid var(--orange);
    padding-left: 19px;
}

/* Number / Roll Badge */
.col-num { text-align: center; }

.roll-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: var(--orange);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.grid-row:hover .roll-badge {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: var(--white);
    transform: scale(1.08);
}

/* Student Name */
.col-name {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.student-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.15), rgba(26, 44, 78, 0.08));
    color: var(--orange);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.grid-row:hover .student-avatar {
    background: var(--orange);
    color: var(--white);
    transform: rotate(-6deg) scale(1.05);
}

.student-name { min-width: 0; }

.student-name strong {
    display: block;
    color: var(--navy);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.student-name small {
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 500;
}

/* Class Badge */
.col-class { text-align: center; }

.class-badge {
    display: inline-block;
    background: rgba(26, 44, 78, 0.08);
    color: var(--navy);
    font-size: 12.5px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 30px;
    letter-spacing: 0.3px;
}

/* Gender Badge */
.col-gender { text-align: center; }

.gender-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 30px;
    letter-spacing: 0.3px;
}

.gender-boys {
    background: rgba(16, 185, 129, 0.12);
    color: #0e8c65;
}

.gender-girls {
    background: rgba(236, 72, 153, 0.12);
    color: #be185d;
}

.gender-badge i { font-size: 14px; }

/* Action */
.col-action { text-align: center; }

.row-action {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--navy);
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    text-decoration: none;
}

.row-action:hover {
    background: var(--orange);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(255, 165, 0, 0.4);
}

/* No Results */
.no-results {
    padding: 70px 20px;
    text-align: center;
    color: var(--text-muted);
}

.no-results i {
    font-size: 54px;
    color: #cbd5e1;
    margin-bottom: 18px;
    display: inline-block;
}

.no-results h5 {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.no-results p {
    font-size: 14px;
    margin: 0;
}

/* List Note */
.list-note {
    display: flex;
    gap: 10px;
    align