@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Vibrant & Kid-Friendly Palette */
    --primary-color: #06D6A0;
    /* Bright Mint */
    --primary-dark: #05b585;
    --secondary-color: #EF476F;
    /* Radical Red */
    --secondary-dark: #d6335a;
    --accent-color: #FFD166;
    /* Sunglow Yellow */
    --info-color: #118AB2;
    /* Rich Blue */
    --dark-color: #073B4C;
    /* Deep Navy */

    --text-dark: #073B4C;
    --text-light: #6c757d;
    --bg-color: #F8F9FA;
    --bg-warm: #FFF9F0;
    --white: #FFFFFF;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --border-radius-xl: 30px;
    --border-radius-lg: 20px;
    --border-radius-md: 15px;
    --border-radius-sm: 10px;

    --shadow-soft: 0 10px 20px -5px rgba(6, 214, 160, 0.15), 0 5px 10px -3px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.rounded-4 {
    border-radius: 1.5rem !important;
}

.rounded-5 {
    border-radius: 2rem !important;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-warm);
    color: var(--text-dark);
    line-height: 1.6;
    background-image: radial-gradient(#FFD166 1px, transparent 1px), radial-gradient(#06D6A0 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.text-info {
    color: var(--info-color) !important;
}

.text-dark {
    color: var(--dark-color) !important;
}

/* Modern Floating Navbar */
.navbar {
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    transition: all 0.3s ease;
}

.navbar .container {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    padding-top: 3px !important;
    padding-bottom: 3px !important;
}

.nav-link {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-dark) !important;
    transition: all 0.2s ease;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem !important;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(6, 214, 160, 0.05);
}

.nav-link.active-pill {
    background-color: var(--primary-color);
    color: white !important;
}

.nav-link.active-pill i {
    color: white !important;
}

/* Mobile Adjustments */
@media (max-width: 1199.98px) {
    .navbar .container {
        border-radius: 25px !important;
        margin-top: 5px !important;
    }

    .navbar-collapse {
        margin-top: 1rem;
        background: white;
        border-radius: 20px;
        padding: 1.25rem 0.75rem;
        box-shadow: var(--shadow-soft);
    }

    .navbar-nav {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
        margin-bottom: 1rem;
    }

    .nav-link {
        padding: 0.5rem 0.7rem !important;
        text-align: center;
        justify-content: center;
        font-size: 1.1rem;
        white-space: normal;
        /* Allow wrap in mobile boxes if needed, but horizontal menu is still row */
    }

    .nav-link i {
        font-size: 0.9rem;
    }
}

.navbar-brand {
    margin-right: 0.5rem !important;
}

.btn-navbar-login {
    padding: 0.4rem 1.5rem !important;
    font-size: 0.85rem !important;
}

.hover-scale {
    transition: transform 0.2s ease;
}

.hover-scale:hover {
    transform: scale(1.1);
    color: var(--primary-color) !important;
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 0.7rem 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 0 var(--primary-dark);
}

.btn-primary:active {
    transform: translateY(4px);
    box-shadow: none;
}

.btn-primary:hover:not(:active) {
    background-color: #0be3aa;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 0 var(--secondary-dark);
}

.btn-secondary:active {
    transform: translateY(4px);
    box-shadow: none;
}

.btn-secondary:hover:not(:active) {
    background-color: #ff5c7c;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--secondary-dark);
}

.btn-outline-primary {
    background-color: transparent;
    border: 3px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-light-capsule {
    background-color: white;
    color: var(--text-dark);
    border: 2px solid #eee;
}

.btn-light-capsule:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    background-color: var(--white);
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.card:hover {
    /* transform: translateY(-8px) rotate(1deg); */
    box-shadow: var(--shadow-hover);
    z-index: 2;
}

/* Modern Inputs with Fun Style */
.form-control,
.form-select {
    border-radius: var(--border-radius-md);
    border: 3px solid #E9ECEF;
    padding: 0.8rem 1rem;
    transition: all 0.2s;
    background-color: #ffffff;
    font-weight: 600;
    color: var(--text-dark);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(6, 214, 160, 0.2);
}

/* Utilities */
.rounded-blob {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.bg-soft-primary {
    background-color: rgba(6, 214, 160, 0.1);
}

.bg-soft-secondary {
    background-color: rgba(239, 71, 111, 0.1);
}

.bg-soft-accent {
    background-color: rgba(255, 209, 102, 0.2);
}

/* Gallery Cards */
.card-gallery-school {
    border-bottom: 6px solid var(--primary-color);
}

.card-gallery-student {
    border-bottom: 6px solid var(--info-color);
}

.badge-year {
    background-color: var(--accent-color);
    color: var(--dark-color);
    font-weight: 800;
    padding: 0.5em 1em;
    border-radius: 50px;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

/* Custom Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.hover-scale {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-scale:hover {
    transform: scale(1.15);
}

/* Mobile Toggler */
.navbar-toggler {
    border: 2px solid var(--primary-color);
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 4px rgba(6, 214, 160, 0.2);
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(6, 214, 160, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

@media (max-width: 1399.98px) {
    body {
        padding-bottom: 70px;
    }
}

/* Artwork Frames (Global Display) */
/* --- Classic --- */
.frame-classic-wood {
    border: 20px solid #5d4037 !important;
    border-image: linear-gradient(to bottom right, #5d4037, #3e2723, #5d4037) 1 !important;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7), 0 10px 20px rgba(0, 0, 0, 0.3);
}

.frame-gold-elegant {
    border: 20px solid #daa520 !important;
    border-style: ridge !important;
    background-color: #000;
    /* Contrast for inner */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.frame-silver-patina {
    border: 20px solid #C0C0C0 !important;
    border-style: ridge !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), inset 0 0 5px rgba(0, 0, 0, 0.3);
    border-image: linear-gradient(45deg, #e0e0e0, #9e9e9e, #e0e0e0) 1 !important;
}

.frame-vintage-ornate {
    border: 25px solid #8d6e63;
    outline: 5px solid #4e342e;
    outline-offset: -10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* --- Modern --- */
.frame-modern-black {
    border: 20px solid #212529 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.frame-gallery-white {
    border: 30px solid #fff !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1), inset 0 0 0 1px #e9ecef;
}

.frame-minimal-steel {
    border: 15px solid #607d8b !important;
    border-radius: 4px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.frame-neon-glow {
    border: 10px solid #333 !important;
    box-shadow: 0 0 15px #00ffea, 0 0 30px #00ffea inset;
    border-radius: 8px;
}

/* --- Pattern/Fun --- */
.frame-colorful {
    border: 15px solid #FF4081 !important;
    border-radius: 15px;
    border-style: dashed !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.frame-pattern-dots {
    border: 20px solid transparent !important;
    border-image: radial-gradient(#FFD166 30%, transparent 31%) 0 0 20px 20px repeat !important;
    border-image-slice: 20 !important;
    border-image-width: 20px !important;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.frame-pattern-stripes {
    border: 20px solid #06D6A0 !important;
    background: repeating-linear-gradient(45deg,
            #06D6A0,
            #06D6A0 10px,
            #04bfa0 10px,
            #04bfa0 20px);
    box-shadow: 5px 5px 0px #073B4C;
}

.frame-wood-grain {
    border: 25px solid #a1887f;
    border-image: repeating-linear-gradient(45deg, #a1887f 0, #a1887f 2px, #8d6e63 2px, #8d6e63 4px) 25;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments for frames on small screens */
@media (max-width: 768px) {

    .frame-classic-wood,
    .frame-gold-elegant,
    .frame-silver-patina,
    .frame-modern-black {
        border-width: 12px !important;
    }

    .frame-gallery-white,
    .frame-vintage-ornate {
        border-width: 15px !important;
    }

    .frame-minimal-steel,
    .frame-colorful {
        border-width: 8px !important;
    }

    .frame-pattern-dots,
    .frame-pattern-stripes,
    .frame-wood-grain {
        border-width: 12px !important;
        border-image-width: 12px !important;
    }
}

/* Utilities for Scaled Frame Previews */
.frame-scaled {
    border-width: 8px !important;
    border-image-width: 8px !important;
    outline-width: 2px !important;
    outline-offset: -4px !important;
    /* Pull outline in */
    border-radius: 4px !important;
    /* Soften corners */
}

/* Strip Preview for Dropdown */
.frame-preview-strip {
    width: 60px;
    height: 20px;
    margin-left: auto;
    /* Push to right */
    display: inline-block;
    border: 5px solid #ddd;
    box-sizing: border-box;
}

/* Force border style for strips so border-image works */
.frame-preview-strip.frame-classic-wood,
.frame-preview-strip.frame-gold-elegant,
.frame-preview-strip.frame-silver-patina,
.frame-preview-strip.frame-modern-black,
.frame-preview-strip.frame-gallery-white,
.frame-preview-strip.frame-minimal-steel,
.frame-preview-strip.frame-neon-glow,
.frame-preview-strip.frame-colorful,
.frame-preview-strip.frame-pattern-dots,
.frame-preview-strip.frame-pattern-stripes,
.frame-preview-strip.frame-wood-grain,
.frame-preview-strip.frame-vintage-ornate {
    border-style: solid !important;
    border-width: 5px !important;
    border-image-width: 5px !important;
    box-shadow: none !important;
    /* Remove heavy shadows for strip */
}