﻿/* EYDAP School Contest - Water Conservation Theme
   "Η Μεγάλη Μπλε Αποστολή" - PREMIUM DESIGN
   ========================================== */

/* ==========================================
   Custom Font: Hydro (used app-wide)
   ========================================== */
@font-face {
    font-family: 'Hydro';
    src: url('../fonts/Hydro-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hydro';
    src: url('../fonts/Hydro-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hydro';
    src: url('../fonts/Hydro-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --eydap-blue: #0066cc;
    --eydap-light-blue: #4da6ff;
    --eydap-dark-blue: #004999;
    --water-blue: #00a8e8;
    --ocean-blue: #007ea7;
    --sky-blue: #e8f4f8;
    --wave-blue: rgba(0, 168, 232, 0.1);
    --success-green: #28a745;
    --warning-yellow: #ffc107;

    /* Application-wide type scale - use only these 3 sizes throughout the app */
    --font-size-base: 1.125rem;   /* Body text, paragraphs, links, form inputs */
    --font-size-heading: 1.75rem; /* Section titles, h2-h4 style headings */
    --font-size-display: 2.75rem; /* Hero / page titles, h1 style headings */
}

/* ==========================================
   Global Styles
   ========================================== */
html, body {
    font-family: 'Hydro', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: var(--font-size-base);
    color: #333;
    background-color: #f8f9fa;
    scroll-behavior: smooth;
    height: 100%;
    overflow-x: hidden;
}

p,
li,
label,
.form-control,
.form-select,
.btn,
.nav-link,
.dropdown-item {
    font-size: var(--font-size-base);
}

h1, .display-heading {
    font-size: var(--font-size-display);
    font-weight: 700;
}

h2, h3, h4,
.section-heading {
    font-size: var(--font-size-heading);
    font-weight: 700;
}

main {
    display: flow-root;
}

/* ==========================================
   Hero Banner Mascot - Floating Animation
   Applied globally to all admin/dashboard hero mascots
   ========================================== */
.admin-hero-mascot {
    animation: float-mascot 4s ease-in-out infinite;
}

@keyframes float-mascot {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* ==========================================
   Animated Wave Background
   ========================================== */
.wave-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #e8f4f8 0%, #ffffff 100%);
    overflow: hidden;
}

.wave-bg::before,
.wave-bg::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, var(--wave-blue) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: wave-drift 20s linear infinite;
}

.wave-bg::after {
    animation-duration: 30s;
    animation-direction: reverse;
    opacity: 0.5;
}

@keyframes wave-drift {
    from {
        transform: translate(0, 0) rotate(0deg);
    }
    to {
        transform: translate(50px, 50px) rotate(360deg);
    }
}

/* ==========================================
   Navigation Bar - MODERN COMPACT DESIGN
   ========================================== */
.navbar {
    background: linear-gradient(135deg, var(--eydap-dark-blue) 0%, var(--eydap-blue) 100%);
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.3);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-img {
    height: 50px;
    width: auto;
    padding: 6px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.mascot-img {
    height: 44px;
    width: auto;
    transition: all 0.3s ease;
}

.mascot-img:hover {
    transform: scale(1.1) rotate(-3deg);
}

.brand-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.8rem;
    color: #b3d9ff;
    font-weight: 500;
}

/* Compact Navigation Links - Tight Spacing */
.navbar-nav {
    gap: 0;
}

.navbar-nav .nav-item {
    margin: 0;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.92) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.85rem !important;
    border-radius: 6px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.18);
    color: white !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link:active {
    transform: translateY(0);
}

.navbar-nav .nav-link i {
    margin-right: 0.4rem;
    font-size: 0.9rem;
}

/* Login/User Button Special Styling */
.navbar-nav .nav-item.ms-lg-2 {
    margin-left: 0.75rem !important;
}

.navbar-nav .btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.45rem 1rem !important;
    font-size: 0.9rem;
    box-shadow: none !important;
}

.navbar-nav .btn-outline-light:hover,
.navbar-nav .btn-outline-light:focus,
.navbar-nav .btn-outline-light:active,
.navbar-nav .btn-outline-light.show {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.8);
    color: white !important;
    box-shadow: none !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .navbar-nav .nav-link {
        padding: 0.6rem 1rem !important;
        margin: 0.15rem 0;
    }
    
    .navbar-nav .nav-item.ms-lg-2 {
        margin-left: 0 !important;
        margin-top: 0.5rem;
    }
}

@media (min-width: 992px) {
    /* Even tighter spacing on large screens */
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem !important;
    }
}

/* ==========================================
   Hero Section with Multi-Size Water Drops
   ========================================== */
.hero-section {
    background: linear-gradient(135deg, #003d7a 0%, #0066cc 40%, #00a8e8 100%);
    padding: 7rem 0 8rem;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 102, 204, 0.3);
}

.hero-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: white;
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.8rem;
    font-weight: 900;
    color: white;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.2rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-section h2 {
    font-size: 1.8rem;
    color: #b3e5fc;
    font-weight: 600;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-section .lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    line-height: 1.7;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Hero Buttons - Premium Style */
.hero-section .btn-light {
    background: white;
    color: var(--eydap-blue);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-section .btn-light:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    background: #f0f8ff;
    color: var(--eydap-dark-blue);
}

.hero-section .btn-light i {
    margin-right: 0.6rem;
    font-size: 1.2rem;
}

.hero-section .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: white;
    background: transparent;
    padding: 0.9rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-section .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--eydap-blue);
    transform: translateY(-3px);
    border-color: white;
}

/* Multi-Size Floating Water Drops - BIGGER */
.hero-animation {
    position: relative;
    height: 450px;
    z-index: 1;
}

.water-drop {
    position: absolute;
    color: rgba(255, 255, 255, 0.3);
    animation: drop ease-in-out infinite;
    pointer-events: none;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

/* First drop - Extra Large */
.water-drop:nth-child(1) {
    left: 15%;
    top: 5%;
    font-size: 8rem;
    animation-delay: 0s;
    animation-duration: 4s;
}

/* Second drop - Massive (center) */
.water-drop:nth-child(2) {
    left: 50%;
    top: 15%;
    font-size: 11rem;
    animation-delay: 1.3s;
    animation-duration: 5s;
    color: rgba(255, 255, 255, 0.4);
    transform: translateX(-50%);
}

/* Third drop - Large */
.water-drop:nth-child(3) {
    left: 80%;
    top: 8%;
    font-size: 6.5rem;
    animation-delay: 2.5s;
    animation-duration: 4.5s;
}

@keyframes drop {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    5% {
        opacity: 0.3;
    }
    50% {
        transform: translateY(45px) scale(1.2);
        opacity: 0.75;
    }
    95% {
        opacity: 0.3;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   General Buttons
   ========================================== */
.btn-primary {
    background: linear-gradient(135deg, var(--eydap-blue) 0%, var(--water-blue) 100%);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0, 168, 232, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 168, 232, 0.6);
    background: linear-gradient(135deg, var(--water-blue) 0%, var(--eydap-blue) 100%);
}

/* ==========================================
   Feature Cards
   ========================================== */
.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 102, 204, 0.1);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 168, 232, 0.25);
    border-color: var(--eydap-light-blue);
}

.feature-icon {
    font-size: 4rem;
    color: var(--water-blue);
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.feature-card h3 {
    color: var(--eydap-dark-blue);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #6c757d;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ==========================================
   Step Cards - ENHANCED VISIBILITY
   ========================================== */
.step-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd, #0dcaf0);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.2);
    border-color: #0d6efd;
}

.step-card:hover::before {
    transform: scaleX(1);
}

.step-number {
    position: absolute;
    top: -10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(13, 110, 253, 0.3);
}

.step-number span {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.step-icon {
    font-size: 3rem;
    color: #0d6efd;
    margin-bottom: 1rem;
    text-align: center;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.75rem;
    text-align: center;
}

.step-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.6;
    text-align: center;
    min-height: 100px;
}

.step-action {
    text-align: center;
    margin-top: auto;
}

.step-action .btn {
    border-radius: 20px;
    padding: 0.375rem 1rem;
    transition: all 0.3s ease;
}

.step-action .btn:hover {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section h2 {
        font-size: 1.4rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature-icon {
        font-size: 3rem;
    }

    .award-icon {
        font-size: 4rem;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .logo-img {
        height: 45px;
        padding: 6px;
    }

    .footer-logo {
        height: 55px;
        padding: 8px;
    }

    .water-drop:nth-child(1) {
        font-size: 5rem;
    }

    .water-drop:nth-child(2) {
        font-size: 7rem;
    }

    .water-drop:nth-child(3) {
        font-size: 4rem;
    }

    .hero-animation {
        height: 350px;
    }

    .step-content h5 {
        font-size: 1.2rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* Logout button in dropdown */
.dropdown-item.btn-link {
    color: inherit;
    text-decoration: none;
    width: 100%;
    border: none;
    background: none;
}

.dropdown-item.btn-link:hover {
    background-color: var(--bs-dropdown-link-hover-bg);
}

/* Modern Timeline Section - Compact with Color Themes */
.timeline-section-modern {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.timeline-card-colored {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.timeline-card-colored::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: height 0.3s ease;
    border-radius: 12px 12px 0 0;
}

/* Blue Theme - Registration */
.timeline-card-colored.blue-theme::before {
    background: linear-gradient(90deg, #0d6efd, #0dcaf0);
}

.timeline-card-colored.blue-theme .timeline-icon-colored {
    color: #0d6efd;
}

.timeline-card-colored.blue-theme:hover {
    border-color: #0d6efd;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.25);
}

/* Green Theme - Project Submission */
.timeline-card-colored.green-theme::before {
    background: linear-gradient(90deg, #198754, #20c997);
}

.timeline-card-colored.green-theme .timeline-icon-colored {
    color: #198754;
}

.timeline-card-colored.green-theme:hover {
    border-color: #198754;
    box-shadow: 0 8px 25px rgba(25, 135, 84, 0.25);
}

/* Purple Theme - Evaluation */
.timeline-card-colored.purple-theme::before {
    background: linear-gradient(90deg, #6f42c1, #a78bfa);
}

.timeline-card-colored.purple-theme .timeline-icon-colored {
    color: #6f42c1;
}

.timeline-card-colored.purple-theme:hover {
    border-color: #6f42c1;
    box-shadow: 0 8px 25px rgba(111, 66, 193, 0.25);
}

/* Gold Theme - Awards */
.timeline-card-colored.gold-theme::before {
    background: linear-gradient(90deg, #ffc107, #ff9800);
}

.timeline-card-colored.gold-theme .timeline-icon-colored {
    color: #ff9800;
}

.timeline-card-colored.gold-theme:hover {
    border-color: #ffc107;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.25);
}

.timeline-card-colored:hover::before {
    height: 8px;
}

.timeline-card-colored:hover {
    transform: translateY(-5px);
}

.timeline-icon-colored {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.timeline-card-colored:hover .timeline-icon-colored {
    transform: scale(1.15) rotate(5deg);
}

.timeline-title-colored {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
    text-align: center;
    min-height: 20px;
}

.timeline-dates-colored {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.5rem;
    font-size: 0.8rem;
    text-align: center;
}

.timeline-dates-colored.single {
    padding: 0.4rem 0.5rem;
}

.date-item-colored {
    color: #495057;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.date-separator {
    display: inline-block;
    margin: 0 0.25rem;
    color: #6c757d;
    font-weight: bold;
}

.date-item-colored i {
    font-size: 0.85rem;
}

/* Cookie Notice Banner - high-contrast navy card, matches the footer/navbar theme */
.cookie-notice {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0E2663;
    color: #ffffff;
    border-top: 3px solid var(--eydap-light-blue, #4da6ff);
    box-shadow: 0 -4px 16px rgba(0, 12, 80, 0.3);
    padding: 0.5rem 0;
    z-index: 1050;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-notice {
        animation: none;
    }
}

.cookie-notice-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1rem;
}

.cookie-notice-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    color: #cfd8ea;
    line-height: 1;
}

.cookie-notice-text {
    flex: 1 1 auto;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.35;
    color: #ffffff;
}

.cookie-notice-text a {
    color: #cfd8ea;
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
}

.cookie-notice-text a:hover,
.cookie-notice-text a:focus-visible {
    color: #ffffff;
}

/* Same look as the Index page buttons (.hero-btn): white bg, deep-blue text */
.cookie-notice-btn {
    flex-shrink: 0;
    background-color: #ffffff;
    color: #000C50;
    border: 1px solid #ffffff;
    font-weight: 400;
    font-size: 0.85rem;
    padding: 0.3rem 1rem;
    white-space: nowrap;
}

.cookie-notice-btn:hover,
.cookie-notice-btn:focus-visible {
    background-color: #f0f4fa;
    color: #000C50;
    border-color: #f0f4fa;
}

/* Phones: hide the icon, put the button under the text */
@media (max-width: 575.98px) {
    .cookie-notice-inner {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .cookie-notice-icon {
        display: none;
    }

    .cookie-notice-text {
        flex-basis: 100%;
        font-size: 0.8rem;
    }

    .cookie-notice-btn {
        width: 100%;
    }
}

/* ==========================================
   Footer - EYDAP Theme
   ========================================== */
.footer {
    background-color: #0E2663;
    color: white !important;
    padding: 0.6rem 0;
    box-shadow: none;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.footer span {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Ensure footer stays at bottom */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* ==========================================================
   RESPONSIVE BASELINE (Stage 1)
   ========================================================== */
@media (max-width: 991px) {
    .container-wide {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 576px) {
    .container-wide {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

@media (max-width: 991px) {
    .admin-hero {
        padding: 1.25rem 0;
    }

    .admin-hero-title {
        font-size: 1.5rem;
    }

    .admin-hero-mascot {
        max-height: 120px;
    }
}

@media (max-width: 576px) {
    .admin-hero {
        padding: 1rem 0;
        text-align: center;
    }

    .admin-hero-title {
        font-size: 1.25rem;
    }

    .admin-hero-title i {
        display: block;
        margin: 0 auto 0.35rem;
    }

    .admin-hero-mascot {
        max-height: 90px;
    }
}

@media (max-width: 576px) {
    .logo-img {
        height: 38px;
        width: auto;
        padding: 4px;
    }

    .brand-title {
        font-size: 1rem;
    }

    .brand-subtitle {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .footer-logo {
        height: 42px;
    }

    .footer span {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .modern-table-wrapper {
        border-left: none;
        border-right: none;
    }

    .modern-table thead th,
    .modern-table tbody td {
        padding: 0.6rem 0.65rem;
        font-size: 0.82rem;
    }

    .action-btn {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 576px) {
    .form-section {
        padding: 1rem 0;
    }

    .form-section-header {
        gap: 0.6rem;
        margin-bottom: 1rem;
    }

    .form-section-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .form-section-title {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .stat-card {
        padding: 1rem 0.75rem;
    }

    .stat-card-value {
        font-size: 1.35rem;
    }

    .stat-card-label {
        font-size: 0.75rem;
    }
}

/* ==========================================================
   RESPONSIVE BASELINE (Stage 4) - tablets & phones
   ========================================================== */
img, video, iframe {
    max-width: 100%;
}

@media (max-width: 991px) {
    .register-hero {
        height: 220px;
    }

    .register-hero-content {
        padding: 1.25rem 0;
    }
}

@media (max-width: 576px) {
    .register-hero {
        height: 170px;
    }

    .register-hero-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 767px) {
    .container-wide .d-flex.justify-content-between,
    .container .d-flex.justify-content-between {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .form-section form .btn {
        width: 100%;
    }

    .form-section form .d-flex.gap-2 {
        width: 100%;
    }
}

.modern-pagination {
    flex-wrap: wrap;
    row-gap: 0.25rem;
}

@media (max-width: 576px) {
    .modern-pagination .page-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
    }
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
    }
}

.form-section-body,
.modern-table td {
    overflow-wrap: anywhere;
}