/* ============================================================================

APLIKACIJA: Matematični Mojster (OŠ 1.–5. razred)

DATOTEKA:   style.css (v glavni mapi poleg index.php in sprites.svg)

VERZIJA:    0.9.0

OPIS:       Prenovljena sodobna grafična podoba:

        - Pisavi Fredoka (naslovi/števila) in Nunito (besedilo)


        - Barvne teme po spolu otroka (Nevtralna, Deček, Deklica)


        - Taktilni 3D gumbi z vektorskimi ikonami iz sprites.svg


        - Sodobna administratorska plošča s stranskim menijem


        - Igrive kartice sklopov in oblikovanje vseh 7 tipov nalog


        - Popolna odzivnost za telefone, tablice in računalnike


============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@500;600;700;800;900&display=swap');

/* ----------------------------------------------------------------------------

BARVNI ŽETONI (DESIGN TOKENS) IN TEME PO SPOLU OTROKA

---------------------------------------------------------------------------- */
:root,
body.theme-neutral {
--primary: #3b82f6;
--primary-hover: #2563eb;
--primary-dark: #1d4ed8;
--primary-soft: #eff6ff;
--primary-border: #bfdbfe;

--accent: #f59e0b;
--accent-dark: #b45309;
--accent-soft: #fef3c7;
--accent-border: #fcd34d;

--hero-from: #2563eb;
--hero-to: #4f46e5;

--bg-page: #f1f5f9;
--bg-dot: #cbd5e1;
--bg-surface: #ffffff;
--bg-subtle: #f8fafc;
--bg-workbook: #fffbeb;

--text-main: #1e293b;
--text-secondary: #475569;
--text-muted: #64748b;
--text-inverse: #ffffff;

--border-color: #e2e8f0;
--border-strong: #cbd5e1;

/* Semantične barve */
--success: #22c55e;
--success-dark: #15803d;
--success-soft: #dcfce7;
--success-border: #86efac;

--danger: #f43f5e;
--danger-dark: #be123c;
--danger-soft: #ffe4e6;
--danger-border: #fda4af;

--warning: #fbbf24;
--warning-dark: #b45309;
--warning-soft: #fef3c7;
--warning-border: #fcd34d;

--info: #0ea5e9;
--info-dark: #0369a1;
--info-soft: #e0f2fe;
--info-border: #7dd3fc;

/* Zaobljenost, sence in pisave */
--radius-sm: 12px;
--radius-md: 18px;
--radius-lg: 24px;
--radius-xl: 30px;
--radius-pill: 9999px;

--shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
--shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.07), 0 4px 10px -6px rgba(15, 23, 42, 0.04);
--shadow-lg: 0 18px 38px -8px rgba(15, 23, 42, 0.12);

--font-display: 'Fredoka', 'Nunito', ui-rounded, system-ui, sans-serif;
--font-sans: 'Nunito', ui-rounded, 'Segoe UI', Roboto, system-ui, sans-serif;
--transition: 0.18s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Fantovska barvna tema (spol = 'M') – oceansko-modra in turkizna */
body.theme-boy {
--primary: #0284c7;
--primary-hover: #0369a1;
--primary-dark: #075985;
--primary-soft: #e0f2fe;
--primary-border: #7dd3fc;

--accent: #14b8a6;
--accent-dark: #0f766e;
--accent-soft: #ccfbf1;
--accent-border: #5eead4;

--hero-from: #0284c7;
--hero-to: #0d9488;

--bg-page: #eef7fc;
--bg-dot: #bae6fd;
--bg-workbook: #f0f9ff;


}

/* Dekliška barvna tema (spol = 'F') – malinovo-rožnata in vijolična */
body.theme-girl {
--primary: #ec4899;
--primary-hover: #db2777;
--primary-dark: #be185d;
--primary-soft: #fdf2f8;
--primary-border: #fbcfe8;

--accent: #a855f7;
--accent-dark: #7e22ce;
--accent-soft: #f3e8ff;
--accent-border: #d8b4fe;

--hero-from: #ec4899;
--hero-to: #9333ea;

--bg-page: #fdf2f8;
--bg-dot: #fbcfe8;
--bg-workbook: #fff5f9;


}

/* ----------------------------------------------------------------------------

PONASTAVITEV IN OSNOVNA TIPOGRAFIJA

---------------------------------------------------------------------------- */
*,
*::before,
*::after {
box-sizing: border-box;
}

html {
font-size: 16px;
scroll-behavior: smooth;
}

body {
margin: 0;
min-height: 100vh;
font-family: var(--font-sans);
color: var(--text-main);
background-color: var(--bg-page);
background-image: radial-gradient(var(--bg-dot) 1.3px, transparent 1.3px);
background-size: 24px 24px;
line-height: 1.55;
display: flex;
flex-direction: column;
-webkit-font-smoothing: antialiased;
transition: background-color 0.25s ease;
}

h1, h2, h3, h4, .font-display {
font-family: var(--font-display);
margin: 0 0 0.5rem;
font-weight: 700;
line-height: 1.22;
color: var(--text-main);
letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h2 { font-size: clamp(1.25rem, 2.3vw, 1.65rem); }
h3 { font-size: 1.18rem; }
h4 { font-size: 1.02rem; }

p {
margin: 0 0 0.9rem;
}

a {
color: var(--primary);
text-decoration: none;
transition: color var(--transition);
}

a:hover {
color: var(--primary-dark);
}

/* Standardne velikosti SVG ikon znotraj gumbov in napisov */
.icon {
width: 1.15em;
height: 1.15em;
flex-shrink: 0;
display: inline-block;
vertical-align: middle;
}

.icon-sm { width: 1rem; height: 1rem; }
.icon-md { width: 1.25rem; height: 1.25rem; }
.icon-lg { width: 1.6rem; height: 1.6rem; }

.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;
}

/* ----------------------------------------------------------------------------

ZGORNJA VRSTICA (OTROŠKI VMESNIK) IN NOGA STRANI

---------------------------------------------------------------------------- */
.topbar {
background: rgba(255, 255, 255, 0.94);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border-bottom: 2px solid var(--border-color);
box-shadow: var(--shadow-sm);
position: sticky;
top: 0;
z-index: 100;
}

.topbar-inner {
max-width: 1200px;
margin: 0 auto;
padding: 0.7rem 1.25rem;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
flex-wrap: wrap;
}

.brand {
display: inline-flex;
align-items: center;
gap: 0.7rem;
font-family: var(--font-display);
font-weight: 700;
font-size: 1.3rem;
color: var(--text-main);
text-decoration: none;
}

.brand:hover {
color: var(--primary);
}

.brand-icon {
width: 44px;
height: 44px;
flex-shrink: 0;
filter: drop-shadow(0 3px 5px rgba(15, 23, 42, 0.14));
}

.version-badge {
display: inline-flex;
align-items: center;
font-family: var(--font-sans);
font-size: 0.72rem;
font-weight: 800;
letter-spacing: 0.04em;
padding: 0.18rem 0.6rem;
border-radius: var(--radius-pill);
background: var(--primary-soft);
color: var(--primary-dark);
border: 1px solid var(--primary-border);
vertical-align: middle;
margin-left: 0.25rem;
}

.topbar-nav {
display: flex;
align-items: center;
gap: 0.55rem;
flex-wrap: wrap;
}

.user-pill {
display: inline-flex;
align-items: center;
gap: 0.5rem;
background: var(--bg-subtle);
border: 2px solid var(--border-color);
border-radius: var(--radius-pill);
padding: 0.28rem 0.9rem 0.28rem 0.4rem;
font-size: 0.88rem;
font-weight: 800;
color: var(--text-main);
}

.user-pill-sun {
background: #fffbeb;
border-color: #fde68a;
color: #92400e;
}

.user-pill-avatar {
width: 28px;
height: 28px;
flex-shrink: 0;
}

.main-container {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 1.5rem 1.25rem 3rem;
flex: 1;
}

.site-footer {
text-align: center;
padding: 1.2rem;
color: var(--text-muted);
font-size: 0.84rem;
font-weight: 700;
border-top: 2px solid var(--border-color);
background: rgba(255, 255, 255, 0.82);
}

/* ----------------------------------------------------------------------------

TAKTILNI 3D GUMBI (Z IKONAMI IN OBČUTKOM PRAVEGA KLIKA)

---------------------------------------------------------------------------- */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.48rem;
padding: 0.68rem 1.25rem;
font-family: var(--font-sans);
font-size: 0.94rem;
font-weight: 800;
border-radius: 15px;
border: 2px solid transparent;
cursor: pointer;
text-decoration: none;
line-height: 1.2;
user-select: none;
transition: transform 0.1s ease, filter 0.15s ease, box-shadow 0.1s ease, background-color 0.15s ease;
white-space: nowrap;
}

.btn:hover {
filter: brightness(1.04);
transform: translateY(-1px);
text-decoration: none;
}

.btn:active {
transform: translateY(3px);
}

.btn:disabled {
opacity: 0.6;
cursor: not-allowed;
transform: none;
}

.btn-sm {
padding: 0.48rem 0.9rem;
font-size: 0.83rem;
border-radius: 12px;
}

.btn-lg {
padding: 0.92rem 1.75rem;
font-size: 1.08rem;
border-radius: 18px;
}

.btn-block {
width: 100%;
}

.btn-primary {
background: var(--primary);
color: #ffffff;
box-shadow: 0 4px 0 var(--primary-dark);
}
.btn-primary:hover { color: #ffffff; }
.btn-primary:active { box-shadow: 0 1px 0 var(--primary-dark); }

.btn-success {
background: var(--success);
color: #ffffff;
box-shadow: 0 4px 0 var(--success-dark);
}
.btn-success:hover { color: #ffffff; }
.btn-success:active { box-shadow: 0 1px 0 var(--success-dark); }

.btn-danger {
background: var(--danger);
color: #ffffff;
box-shadow: 0 4px 0 var(--danger-dark);
}
.btn-danger:hover { color: #ffffff; }
.btn-danger:active { box-shadow: 0 1px 0 var(--danger-dark); }

.btn-warning {
background: var(--warning);
color: #451a03;
box-shadow: 0 4px 0 var(--warning-dark);
}
.btn-warning:hover { color: #451a03; }
.btn-warning:active { box-shadow: 0 1px 0 var(--warning-dark); }

.btn-outline {
background: #ffffff;
color: var(--text-main);
border-color: var(--border-strong);
box-shadow: 0 4px 0 var(--border-color);
}
.btn-outline:hover {
background: var(--primary-soft);
border-color: var(--primary-border);
color: var(--primary-dark);
}
.btn-outline:active { box-shadow: 0 1px 0 var(--border-color); }

.btn-ghost {
background: transparent;
color: var(--text-secondary);
box-shadow: none;
}
.btn-ghost:hover {
background: #e2e8f0;
color: var(--text-main);
transform: none;
}

/* ----------------------------------------------------------------------------

KARTICE, MREŽE, OBRAZCI, OBVESTILA IN ZNAČKE

---------------------------------------------------------------------------- */
.card {
background: var(--bg-surface);
border-radius: var(--radius-lg);
border: 2px solid var(--border-color);
box-shadow: var(--shadow-md);
padding: 1.5rem;
margin-bottom: 1.5rem;
}

.card-accent {
border-color: var(--primary-border);
background: linear-gradient(180deg, #ffffff 0%, var(--bg-workbook) 100%);
}

.card-amber {
border-color: #fcd34d;
background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
}

.card-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
flex-wrap: wrap;
margin-bottom: 1.25rem;
padding-bottom: 0.9rem;
border-bottom: 2px dashed var(--border-color);
}

.card-title-row {
display: flex;
align-items: center;
gap: 0.75rem;
}

.title-icon-badge {
width: 42px;
height: 42px;
border-radius: 14px;
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}

.grid {
display: grid;
gap: 1.25rem;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Obrazci */
.form-group {
margin-bottom: 1.1rem;
}

.form-label {
display: block;
font-weight: 800;
font-size: 0.9rem;
margin-bottom: 0.4rem;
color: var(--text-main);
}

.form-control,
.form-select {
width: 100%;
padding: 0.72rem 1rem;
font-family: var(--font-sans);
font-size: 0.98rem;
font-weight: 700;
color: var(--text-main);
background: #ffffff;
border: 2px solid var(--border-strong);
border-radius: var(--radius-sm);
transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus,
.form-select:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 4px var(--primary-soft);
}

.form-hint {
display: block;
font-size: 0.82rem;
color: var(--text-muted);
margin-top: 0.3rem;
}

/* Obvestila / Flash */
.alert {
padding: 0.95rem 1.2rem;
border-radius: var(--radius-md);
border: 2px solid transparent;
margin-bottom: 1.25rem;
font-weight: 800;
font-size: 0.94rem;
display: flex;
align-items: center;
gap: 0.75rem;
box-shadow: var(--shadow-sm);
}

.alert-success {
background: var(--success-soft);
border-color: var(--success-border);
color: var(--success-dark);
}

.alert-error,
.alert-danger {
background: var(--danger-soft);
border-color: var(--danger-border);
color: var(--danger-dark);
}

.alert-warning {
background: var(--warning-soft);
border-color: var(--warning-border);
color: #92400e;
}

.alert-info {
background: var(--info-soft);
border-color: var(--info-border);
color: var(--info-dark);
}

/* Značke (Badges) */
.badge {
display: inline-flex;
align-items: center;
gap: 0.32rem;
padding: 0.28rem 0.75rem;
border-radius: var(--radius-pill);
font-size: 0.78rem;
font-weight: 800;
white-space: nowrap;
}

.badge-primary { background: var(--primary-soft); color: var(--primary-dark); }
.badge-success { background: var(--success-soft); color: var(--success-dark); }
.badge-warning { background: var(--warning-soft); color: #92400e; }
.badge-danger  { background: var(--danger-soft); color: var(--danger-dark); }
.badge-neutral { background: #e2e8f0; color: #334155; }
.badge-sun     { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* ----------------------------------------------------------------------------

ADMINISTRATORSKI POSTAVITVENI SISTEM (STRANSKI MENI + VSEBINA)

---------------------------------------------------------------------------- */
.admin-shell {
width: 100%;
max-width: 1320px;
margin: 0 auto;
padding: 1.5rem 1.25rem 3rem;
display: flex;
align-items: flex-start;
gap: 1.5rem;
flex: 1;
}

.admin-sidebar {
width: 268px;
flex-shrink: 0;
background: var(--bg-surface);
border: 2px solid var(--border-color);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-md);
padding: 1.15rem;
position: sticky;
top: 1.25rem;
}

.sidebar-brand {
display: flex;
align-items: center;
gap: 0.8rem;
padding: 0.25rem 0.35rem 1.05rem;
margin-bottom: 1rem;
border-bottom: 2px dashed var(--border-color);
text-decoration: none;
}

.sidebar-brand-logo {
width: 48px;
height: 48px;
border-radius: 16px;
background: #eef2ff;
border: 2px solid #c7d2fe;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}

.sidebar-brand-logo svg {
width: 36px;
height: 36px;
}

.sidebar-brand-title {
font-family: var(--font-display);
font-weight: 700;
font-size: 1.15rem;
color: var(--text-main);
line-height: 1.15;
}

.sidebar-section-label {
font-size: 0.72rem;
font-weight: 900;
text-transform: uppercase;
letter-spacing: 0.08em;
color: #94a3b8;
padding: 0 0.75rem;
margin-bottom: 0.45rem;
}

.sidebar-nav {
display: flex;
flex-direction: column;
gap: 0.35rem;
margin-bottom: 1.15rem;
}

.sidebar-link {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.65rem;
padding: 0.72rem 0.9rem;
border-radius: 14px;
font-weight: 800;
font-size: 0.92rem;
color: var(--text-secondary);
text-decoration: none;
transition: all var(--transition);
}

.sidebar-link-main {
display: inline-flex;
align-items: center;
gap: 0.65rem;
}

.sidebar-link:hover {
background: var(--bg-subtle);
color: var(--text-main);
}

.sidebar-link.active {
background: var(--primary);
color: #ffffff;
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.28);
}

.sidebar-link.active .icon {
color: #ffffff;
}

.sidebar-counter {
padding: 0.12rem 0.55rem;
border-radius: var(--radius-pill);
background: var(--danger);
color: #ffffff;
font-size: 0.74rem;
font-weight: 900;
}

.sidebar-footer {
padding-top: 1rem;
border-top: 2px dashed var(--border-color);
display: flex;
flex-direction: column;
gap: 0.55rem;
}

.admin-main {
flex: 1;
min-width: 0;
}

.admin-page-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
flex-wrap: wrap;
margin-bottom: 1.4rem;
}

/* KPI kartice z barvnimi ikonami */
.kpi-card {
background: var(--bg-surface);
border: 2px solid var(--border-color);
border-radius: var(--radius-lg);
padding: 1.15rem 1.25rem;
box-shadow: var(--shadow-sm);
display: flex;
align-items: center;
gap: 1rem;
transition: transform var(--transition), box-shadow var(--transition);
}

.kpi-card:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-md);
}

.kpi-icon-box {
width: 54px;
height: 54px;
border-radius: 18px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}

.kpi-icon-box svg {
width: 28px;
height: 28px;
}

.kpi-blue    { background: #dbeafe; color: #2563eb; }
.kpi-rose    { background: #ffe4e6; color: #e11d48; }
.kpi-amber   { background: #fef3c7; color: #d97706; }
.kpi-emerald { background: #dcfce7; color: #16a34a; }
.kpi-purple  { background: #f3e8ff; color: #9333ea; }

.kpi-body {
min-width: 0;
}

.kpi-label {
display: block;
font-size: 0.75rem;
font-weight: 900;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-muted);
}

.kpi-value {
display: flex;
align-items: center;
gap: 0.35rem;
font-family: var(--font-display);
font-size: 1.9rem;
font-weight: 700;
color: var(--text-main);
line-height: 1.15;
font-variant-numeric: tabular-nums;
}

.kpi-sub {
display: block;
font-size: 0.8rem;
color: var(--text-muted);
font-weight: 700;
}

/* Kartice čakajočih registracij (namesto natrpanih tabel) */
.pending-list {
display: flex;
flex-direction: column;
gap: 0.75rem;
}

.pending-card {
background: #ffffff;
border: 2px solid var(--border-color);
border-radius: var(--radius-md);
padding: 0.95rem 1.15rem;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
flex-wrap: wrap;
box-shadow: var(--shadow-sm);
}

.pending-card-info {
display: flex;
align-items: center;
gap: 0.9rem;
}

.avatar-box {
width: 48px;
height: 48px;
border-radius: 16px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
background: var(--primary-soft);
}

.avatar-box.boy  { background: #e0f2fe; }
.avatar-box.girl { background: #fce7f3; }
.avatar-box svg  { width: 34px; height: 34px; }

/* ----------------------------------------------------------------------------

PRIJAVA IN REGISTRACIJA (AUTH.PHP)

---------------------------------------------------------------------------- */
.auth-wrapper {
max-width: 580px;
margin: 1.75rem auto;
padding: 0 1rem;
}

.auth-hero {
text-align: center;
margin-bottom: 1.5rem;
}

.auth-mascots {
display: flex;
justify-content: center;
align-items: flex-end;
gap: 0.85rem;
margin-bottom: 0.75rem;
}

.auth-mascots svg {
width: 72px;
height: 72px;
filter: drop-shadow(0 6px 10px rgba(15, 23, 42, 0.14));
animation: floatGentle 3.6s ease-in-out infinite;
}

.auth-mascots svg:nth-child(2) {
width: 92px;
height: 92px;
animation-delay: 0.5s;
}

.auth-mascots svg:nth-child(3) {
animation-delay: 1s;
}

.tabs {
display: flex;
gap: 0.45rem;
background: var(--bg-subtle);
padding: 0.4rem;
border-radius: 16px;
border: 2px solid var(--border-color);
margin-bottom: 1.5rem;
}

.tab-btn {
flex: 1;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.4rem;
padding: 0.7rem 0.75rem;
border-radius: 12px;
font-weight: 800;
font-size: 0.9rem;
color: var(--text-muted);
background: transparent;
border: none;
cursor: pointer;
text-decoration: none;
transition: all var(--transition);
}

.tab-btn:hover {
color: var(--text-main);
}

.tab-btn.active {
background: var(--primary);
color: #ffffff;
box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

/* Izbira spola otroka z vizualnimi karticami */
.gender-selector {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 0.7rem;
}

.gender-option {
position: relative;
}

.gender-option input {
position: absolute;
opacity: 0;
pointer-events: none;
}

.gender-card {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.35rem;
padding: 0.85rem 0.5rem;
border: 2px solid var(--border-strong);
border-radius: var(--radius-md);
background: #ffffff;
cursor: pointer;
font-weight: 800;
font-size: 0.88rem;
text-align: center;
transition: all var(--transition);
}

.gender-card svg {
width: 44px;
height: 44px;
}

.gender-option input:checked + .gender-card {
border-color: var(--primary);
background: var(--primary-soft);
color: var(--primary-dark);
box-shadow: 0 0 0 3px var(--primary-soft);
transform: translateY(-2px);
}

/* ----------------------------------------------------------------------------

OTROŠKA DOMAČA PLOŠČA (HERO, TEST BANNER IN PASTELNE KARTICE SKLOPOV)

---------------------------------------------------------------------------- */
.hero-banner {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1.5rem;
background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 100%);
color: #ffffff;
border-radius: var(--radius-xl);
padding: 1.85rem 2.2rem;
margin-bottom: 1.5rem;
box-shadow: var(--shadow-lg);
position: relative;
overflow: hidden;
}

.hero-banner::after {
content: "";
position: absolute;
width: 240px;
height: 240px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.08);
top: -90px;
right: -40px;
pointer-events: none;
}

.hero-banner h1,
.hero-banner h2,
.hero-banner p {
color: #ffffff;
}

.hero-banner p {
opacity: 0.94;
font-weight: 600;
margin-bottom: 0;
max-width: 640px;
}

.hero-pill {
display: inline-flex;
align-items: center;
gap: 0.4rem;
padding: 0.3rem 0.8rem;
border-radius: var(--radius-pill);
background: rgba(255, 255, 255, 0.2);
color: #ffffff;
font-size: 0.8rem;
font-weight: 800;
margin-bottom: 0.65rem;
}

.hero-mascot {
width: 118px;
height: 118px;
flex-shrink: 0;
position: relative;
z-index: 1;
filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.24));
animation: floatGentle 3.8s ease-in-out infinite;
}

/* Izbirnik razreda in dela leta */
.grade-bar {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 1rem;
}

.part-switcher {
display: inline-flex;
align-items: center;
gap: 0.35rem;
background: #f1f5f9;
padding: 0.35rem;
border-radius: 16px;
border: 2px solid var(--border-color);
}

.part-btn {
padding: 0.5rem 0.95rem;
border-radius: 12px;
font-weight: 800;
font-size: 0.85rem;
color: var(--text-secondary);
text-decoration: none;
transition: all var(--transition);
}

.part-btn:hover {
background: #ffffff;
color: var(--text-main);
}

.part-btn.active {
background: var(--warning);
color: #451a03;
box-shadow: var(--shadow-sm);
}

/* Poudarjena kartica za uradni TEST */
.test-banner-card {
background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 55%, #ffedd5 100%);
border: 2px solid #fcd34d;
border-radius: var(--radius-lg);
padding: 1.5rem 1.75rem;
margin-bottom: 1.75rem;
box-shadow: var(--shadow-md);
display: flex;
align-items: center;
justify-content: space-between;
gap: 1.5rem;
flex-wrap: wrap;
}

.test-banner-left {
display: flex;
align-items: center;
gap: 1.15rem;
flex: 1;
min-width: 260px;
}

.trophy-box {
width: 68px;
height: 68px;
border-radius: 20px;
background: #ffffff;
border: 2px solid #fde68a;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
box-shadow: var(--shadow-sm);
}

.trophy-box svg {
width: 50px;
height: 50px;
}

/* Kartice posameznih sklopov s pastelnimi zgornjimi pasicami */
.mode-card {
display: flex;
flex-direction: column;
justify-content: space-between;
background: var(--bg-surface);
border: 2px solid var(--border-color);
border-radius: var(--radius-lg);
overflow: hidden;
box-shadow: var(--shadow-md);
transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.mode-card:hover {
transform: translateY(-4px);
border-color: var(--primary-border);
box-shadow: var(--shadow-lg);
}

.mode-card-banner {
padding: 1.2rem 1.35rem;
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
border-bottom: 2px solid rgba(15, 23, 42, 0.05);
}

.pastel-rose    { background: linear-gradient(135deg, #fff1f2 0%, #ffedd5 100%); }
.pastel-amber   { background: linear-gradient(135deg, #fffbeb 0%, #fef9c3 100%); }
.pastel-sky     { background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%); }
.pastel-emerald { background: linear-gradient(135deg, #ecfdf5 0%, #dcfce7 100%); }
.pastel-purple  { background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%); }
.pastel-orange  { background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%); }
.pastel-pink    { background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%); }

.mode-icon {
width: 66px;
height: 66px;
flex-shrink: 0;
filter: drop-shadow(0 4px 6px rgba(15, 23, 42, 0.14));
}

.mode-weight-pill {
display: inline-block;
background: #ffffff;
color: var(--text-secondary);
padding: 0.2rem 0.65rem;
border-radius: var(--radius-pill);
font-size: 0.75rem;
font-weight: 800;
box-shadow: var(--shadow-sm);
margin-bottom: 0.45rem;
}

.mode-card-body {
padding: 1.15rem 1.35rem 1.35rem;
display: flex;
flex-direction: column;
justify-content: space-between;
flex: 1;
}

/* ----------------------------------------------------------------------------

INTERAKTIVNI ŠTEVILSKI TRAK (0–20)

---------------------------------------------------------------------------- */
.number-line-box {
background: linear-gradient(90deg, #fffbeb 0%, #fefce8 100%);
border: 2px solid #fcd34d;
border-radius: var(--radius-lg);
padding: 1rem 1.15rem;
margin-bottom: 1.5rem;
box-shadow: var(--shadow-sm);
}

.number-line-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
flex-wrap: wrap;
margin-bottom: 0.75rem;
font-size: 0.86rem;
font-weight: 800;
color: #92400e;
}

.number-line {
display: grid;
grid-template-columns: repeat(21, minmax(30px, 1fr));
gap: 5px;
overflow-x: auto;
padding: 3px 2px 5px;
}

.nl-tick {
height: 40px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 11px;
background: #ffffff;
border: 2px solid #fde68a;
color: #78350f;
font-family: var(--font-display);
font-weight: 700;
font-size: 1rem;
cursor: pointer;
user-select: none;
transition: all 0.14s ease;
}

.nl-tick:hover {
background: #fef3c7;
transform: translateY(-2px);
}

.nl-tick.is-milestone {
background: #fbbf24;
border-color: #f59e0b;
color: #451a03;
}

.nl-tick.is-selected {
background: var(--primary);
border-color: var(--primary-dark);
color: #ffffff;
transform: scale(1.1);
box-shadow: 0 4px 10px rgba(37, 99, 235, 0.32);
}

/* ----------------------------------------------------------------------------

REŠEVANJE NALOG (VSEH 7 TIPOV IZ DELOVNIH ZVEZKOV)

---------------------------------------------------------------------------- */
.quiz-toolbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
flex-wrap: wrap;
background: #ffffff;
border: 2px solid var(--border-color);
border-radius: var(--radius-lg);
padding: 0.9rem 1.25rem;
margin-bottom: 1.35rem;
box-shadow: var(--shadow-md);
}

.progress-wrap {
flex: 1;
min-width: 190px;
}

.progress-bar {
height: 12px;
background: #e2e8f0;
border-radius: var(--radius-pill);
overflow: hidden;
}

.progress-fill {
height: 100%;
background: linear-gradient(90deg, var(--primary) 0%, var(--success) 100%);
border-radius: var(--radius-pill);
transition: width 0.35s ease;
}

.progress-fill.bar-warn   { background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%); }
.progress-fill.bar-danger { background: linear-gradient(90deg, #e11d48 0%, #f43f5e 100%); }

/* Kartica posamezne naloge */
.task-card {
background: var(--bg-surface);
border: 2px solid var(--border-color);
border-radius: var(--radius-lg);
padding: 1.4rem 1.55rem 1.65rem;
margin-bottom: 1.5rem;
box-shadow: var(--shadow-md);
transition: border-color 0.2s ease, background-color 0.2s ease;
}

.task-card.status-correct {
border-color: var(--success-border);
background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.task-card.status-wrong {
border-color: var(--danger-border);
background: linear-gradient(180deg, #ffffff 0%, #fff1f2 100%);
}

.task-ribbon {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
flex-wrap: wrap;
background: linear-gradient(90deg, #fbbf24 0%, #fde047 100%);
color: #451a03;
padding: 0.65rem 1.15rem;
border-radius: 16px;
font-family: var(--font-display);
font-weight: 700;
font-size: 1rem;
margin-bottom: 1.35rem;
box-shadow: 0 3px 0 #d97706;
}

.task-ribbon-left {
display: flex;
align-items: center;
gap: 0.65rem;
}

.task-num-badge {
width: 30px;
height: 30px;
border-radius: 50%;
background: #ffffff;
color: #b45309;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 0.92rem;
font-weight: 900;
flex-shrink: 0;
}

.task-body {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1.5rem;
flex-wrap: wrap;
}

.task-content {
flex: 1;
min-width: 260px;
}

.task-mascot-wrap {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.45rem;
flex-shrink: 0;
}

.task-mascot {
width: 86px;
height: 86px;
filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.14));
}

.speech-bubble {
background: var(--primary-soft);
border: 2px solid var(--primary-border);
color: var(--primary-dark);
padding: 0.4rem 0.8rem;
border-radius: 14px;
font-size: 0.82rem;
font-weight: 800;
text-align: center;
max-width: 185px;
}

/* Matematično vnosno polje */
.math-input {
width: 68px;
height: 52px;
text-align: center;
font-family: var(--font-display);
font-size: 1.48rem;
font-weight: 600;
font-variant-numeric: tabular-nums;
color: #0f172a;
background: #ffffff;
border: 3px solid var(--primary-border);
border-radius: 14px;
transition: all 0.15s ease;
-moz-appearance: textfield;
}

.math-input::-webkit-outer-spin-button,
.math-input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}

.math-input:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 4px var(--primary-soft);
transform: scale(1.05);
}

.math-input.wide {
width: 200px;
font-size: 1.2rem;
}

.math-input.compact {
width: 58px;
height: 44px;
font-size: 1.25rem;
}

.math-input.is-correct {
border-color: var(--success);
background: var(--success-soft);
color: var(--success-dark);
}

.math-input.is-wrong {
border-color: var(--danger);
background: var(--danger-soft);
color: var(--danger-dark);
animation: shakeWrong 0.35s ease;
}

.task-actions-bar {
margin-top: 1.15rem;
padding-top: 0.95rem;
border-top: 2px dashed var(--border-color);
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 0.75rem;
}

.task-feedback {
margin-top: 0.85rem;
padding: 0.75rem 1.05rem;
border-radius: var(--radius-sm);
font-weight: 800;
font-size: 0.92rem;
display: flex;
align-items: center;
gap: 0.6rem;
}

.task-feedback.ok {
background: var(--success-soft);
color: var(--success-dark);
border: 2px solid var(--success-border);
}

.task-feedback.err {
background: var(--danger-soft);
color: var(--danger-dark);
border: 2px solid var(--danger-border);
}

/* --- TIP 1: RAČUNSKE DRUŽINE --- */
.family-box {
display: flex;
flex-direction: column;
align-items: center;
gap: 1.1rem;
}

.family-roof {
width: 245px;
height: 114px;
background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-end;
padding-bottom: 12px;
color: #ffffff;
font-family: var(--font-display);
font-weight: 700;
filter: drop-shadow(0 6px 10px rgba(225, 29, 72, 0.25));
}

.family-roof.green {
background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
filter: drop-shadow(0 6px 10px rgba(21, 128, 61, 0.25));
}

.family-roof-top {
font-size: 1.65rem;
line-height: 1;
margin-bottom: 10px;
}

.family-roof-bottom {
width: 72%;
display: flex;
justify-content: space-between;
font-size: 1.45rem;
line-height: 1;
}

.family-equations {
display: flex;
flex-direction: column;
gap: 0.65rem;
width: 100%;
max-width: 370px;
}

/* --- TIP 2: MANJKAJOČI ČLENI --- */
.equation-row {
display: flex;
align-items: center;
justify-content: center;
gap: 0.65rem;
font-family: var(--font-display);
font-size: 1.65rem;
font-weight: 700;
font-variant-numeric: tabular-nums;
padding: 0.6rem 1rem;
background: var(--bg-subtle);
border: 2px solid var(--border-color);
border-radius: var(--radius-md);
flex-wrap: wrap;
}

.equation-op {
color: var(--primary);
min-width: 24px;
text-align: center;
}

.equation-num {
min-width: 36px;
text-align: center;
}

/* --- TIP 3: TABELE --- */
.workbook-table-wrap {
overflow-x: auto;
padding-bottom: 4px;
}

.workbook-table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
border: 2px solid var(--primary-border);
border-radius: var(--radius-md);
overflow: hidden;
background: #ffffff;
font-variant-numeric: tabular-nums;
}

.workbook-table th,
.workbook-table td {
padding: 0.72rem 0.9rem;
text-align: center;
border-right: 2px solid var(--border-color);
border-bottom: 2px solid var(--border-color);
font-family: var(--font-display);
font-weight: 700;
font-size: 1.2rem;
}

.workbook-table tr:last-child td { border-bottom: none; }
.workbook-table th:last-child,
.workbook-table td:last-child { border-right: none; }

.workbook-table thead th {
background: var(--primary-soft);
color: var(--primary-dark);
font-family: var(--font-sans);
font-size: 0.95rem;
font-weight: 800;
}

.workbook-table .rule-pill {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.25rem 0.75rem;
border-radius: var(--radius-pill);
background: var(--primary);
color: #ffffff;
font-family: var(--font-display);
font-weight: 700;
font-size: 1.05rem;
}

.workbook-table td.cell-highlight {
background: #fef9c3;
}

.workbook-table th.row-label {
background: var(--primary-soft);
color: var(--primary-dark);
text-align: left;
font-family: var(--font-sans);
font-size: 0.86rem;
font-weight: 900;
white-space: nowrap;
}

/* --- TIP 4: RAČUNSKA KOLESA / TARČE --- */
.wheel-layout {
display: flex;
align-items: center;
justify-content: center;
gap: 1.75rem;
flex-wrap: wrap;
}

.wheel-svg-box {
width: 230px;
height: 230px;
flex-shrink: 0;
filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.1));
}

.wheel-svg-box svg {
width: 100%;
height: 100%;
}

.wheel-inputs-grid {
display: grid;
grid-template-columns: repeat(2, minmax(145px, 1fr));
gap: 0.7rem;
}

.wheel-pair {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
padding: 0.5rem 0.8rem;
background: var(--bg-subtle);
border: 2px solid var(--border-color);
border-radius: 14px;
font-weight: 800;
font-size: 1.02rem;
}

/* --- TIP 5: DREVESA IN VERIGE --- */
.tree-box {
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
}

.tree-root {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 82px;
height: 62px;
padding: 0 1.25rem;
background: var(--primary);
color: #ffffff;
font-family: var(--font-display);
font-size: 1.8rem;
font-weight: 700;
border-radius: 18px;
box-shadow: 0 5px 0 var(--primary-dark);
}

.tree-branches {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 1rem;
width: 100%;
max-width: 450px;
}

.tree-branch {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.55rem;
padding: 0.9rem;
background: var(--bg-subtle);
border: 2px solid var(--border-color);
border-radius: var(--radius-md);
}

.tree-op-badge {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 56px;
height: 36px;
padding: 0 0.8rem;
border-radius: var(--radius-pill);
background: var(--accent-soft);
border: 2px solid var(--accent-border);
color: #78350f;
font-family: var(--font-display);
font-weight: 700;
font-size: 1.15rem;
}

.chain-row {
display: flex;
align-items: center;
justify-content: center;
gap: 0.55rem;
flex-wrap: wrap;
padding: 0.85rem;
background: var(--bg-subtle);
border-radius: var(--radius-md);
border: 2px solid var(--border-color);
}

.chain-node {
min-width: 54px;
height: 50px;
display: inline-flex;
align-items: center;
justify-content: center;
background: #ffffff;
border: 3px solid var(--primary);
border-radius: 14px;
font-family: var(--font-display);
font-size: 1.4rem;
font-weight: 700;
color: var(--primary-dark);
}

.chain-step {
display: inline-flex;
flex-direction: column;
align-items: center;
gap: 0.2rem;
}

.chain-step-circle {
display: inline-flex;
align-items: center;
gap: 0.2rem;
padding: 0.25rem 0.55rem;
border-radius: var(--radius-pill);
background: var(--accent-soft);
border: 2px solid var(--accent);
font-family: var(--font-display);
font-weight: 700;
}

.chain-arrow {
font-size: 1.25rem;
font-weight: 900;
color: var(--primary);
line-height: 1;
}

/* --- TIP 6: VIZUALNI KROŽCI --- */
.dots-frame {
display: grid;
grid-template-columns: repeat(10, minmax(24px, 34px));
gap: 8px;
padding: 15px 18px;
background: #f8fafc;
border: 3px solid var(--border-strong);
border-radius: var(--radius-md);
width: fit-content;
max-width: 100%;
margin: 0 auto 1.1rem;
overflow-x: auto;
box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.06);
}

.dot-item {
width: 30px;
height: 30px;
border-radius: 50%;
border: 2px solid #cbd5e1;
background: #ffffff;
position: relative;
}

.dot-item.filled-red    { background: #f43f5e; border-color: #be123c; }
.dot-item.filled-blue   { background: #3b82f6; border-color: #1d4ed8; }
.dot-item.filled-green  { background: #22c55e; border-color: #15803d; }
.dot-item.filled-yellow { background: #facc15; border-color: #ca8a04; }

.dot-item.crossed::after {
content: "";
position: absolute;
top: 50%;
left: -3px;
right: -3px;
height: 3.5px;
background: #0f172a;
border-radius: 2px;
transform: translateY(-50%) rotate(-45deg);
}

.dot-item.hidden-under-bar {
background: #94a3b8;
border-color: #64748b;
border-radius: 8px;
}

.dot-item.hidden-under-bar::after {
content: "?";
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
color: #ffffff;
font-family: var(--font-display);
font-weight: 700;
font-size: 1rem;
}

/* --- TIP 7: BESEDILNE NALOGE --- */
.word-problem-card {
background: var(--bg-workbook);
border: 2px solid var(--accent-border);
border-radius: var(--radius-md);
padding: 1.35rem 1.5rem;
}

.word-problem-text {
font-size: 1.15rem;
font-weight: 800;
color: var(--text-main);
line-height: 1.55;
margin-bottom: 1.15rem;
}

.word-problem-inputs {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 1rem;
align-items: end;
}

.word-answer-line {
display: flex;
align-items: center;
gap: 0.6rem;
flex-wrap: wrap;
font-weight: 800;
font-size: 1rem;
}

/* ----------------------------------------------------------------------------

KONČNI REZULTAT IN MOTIVACIJSKA LESTVICA S SONČKI

---------------------------------------------------------------------------- */
.result-hero {
text-align: center;
padding: 2.2rem 1.75rem;
background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
border: 4px solid #fcd34d;
border-radius: var(--radius-xl);
margin-bottom: 1.5rem;
box-shadow: var(--shadow-lg);
}

.result-sun-icon {
width: 126px;
height: 126px;
margin-bottom: 0.4rem;
filter: drop-shadow(0 8px 14px rgba(245, 158, 11, 0.28));
animation: popIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.result-score-big {
font-family: var(--font-display);
font-size: clamp(2.5rem, 5.5vw, 3.6rem);
font-weight: 700;
color: var(--primary);
line-height: 1.1;
margin: 0.25rem 0;
}

.stars-strip {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 6px;
margin: 1.1rem auto;
max-width: 520px;
}

.star-mini {
width: 32px;
height: 32px;
}

.star-mini.dimmed {
opacity: 0.22;
filter: grayscale(100%);
}

.motivation-scale {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 0.9rem;
margin-top: 1.5rem;
}

.motivation-tier {
padding: 1rem;
border-radius: var(--radius-md);
border: 2px solid var(--border-color);
background: #ffffff;
display: flex;
flex-direction: column;
align-items: center;
gap: 0.35rem;
opacity: 0.5;
transition: transform 0.2s ease;
}

.motivation-tier.is-active {
opacity: 1;
border-width: 3px;
border-color: #f59e0b;
background: #fef3c7;
transform: scale(1.04);
box-shadow: var(--shadow-md);
}

.motivation-tier svg {
width: 56px;
height: 56px;
}

/* ----------------------------------------------------------------------------

TABELE PODATKOV IN PREGLED NAPAK

---------------------------------------------------------------------------- */
.table-responsive {
width: 100%;
overflow-x: auto;
border-radius: var(--radius-md);
border: 2px solid var(--border-color);
background: var(--bg-surface);
}

.data-table {
width: 100%;
border-collapse: collapse;
font-size: 0.92rem;
}

.data-table th,
.data-table td {
padding: 0.85rem 1rem;
text-align: left;
border-bottom: 1px solid var(--border-color);
vertical-align: middle;
}

.data-table thead th {
background: var(--bg-subtle);
font-weight: 900;
color: var(--text-muted);
font-size: 0.76rem;
text-transform: uppercase;
letter-spacing: 0.05em;
white-space: nowrap;
}

.data-table tbody tr {
transition: background-color 0.15s ease;
}

.data-table tbody tr:hover {
background: var(--primary-soft);
}

.data-table tbody tr:last-child td {
border-bottom: none;
}

.actions-inline {
display: inline-flex;
align-items: center;
gap: 0.45rem;
flex-wrap: wrap;
}

.review-item {
border: 2px solid var(--border-color);
border-radius: var(--radius-md);
padding: 1.05rem 1.25rem;
margin-bottom: 0.9rem;
background: #ffffff;
}

.review-item.ok {
border-left: 6px solid var(--success);
}

.review-item.err {
border-left: 6px solid var(--danger);
background: #fff8f9;
}

/* ----------------------------------------------------------------------------

ANIMACIJE IN POMOŽNI RAZREDI

---------------------------------------------------------------------------- */
@keyframes floatGentle {
0%, 100% { transform: translateY(0); }
50%      { transform: translateY(-7px); }
}

@keyframes popIn {
0%   { transform: scale(0.55); opacity: 0; }
100% { transform: scale(1); opacity: 1; }
}

@keyframes shakeWrong {
0%, 100% { transform: translateX(0); }
25%      { transform: translateX(-6px); }
75%      { transform: translateX(6px); }
}

.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-muted); }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* ----------------------------------------------------------------------------

ODZIVNOST (TABLICE IN MOBILNI TELEFONI)

---------------------------------------------------------------------------- */
@media (max-width: 1024px) {
.admin-shell {
flex-direction: column;
padding: 1rem 1rem 2.5rem;
}

.admin-sidebar {
width: 100%;
position: static;
}

.sidebar-nav {
flex-direction: row;
flex-wrap: wrap;
}

.sidebar-footer {
flex-direction: row;
flex-wrap: wrap;
}

.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
.hero-banner,
.test-banner-card {
flex-direction: column;
text-align: center;
padding: 1.4rem;
}

.test-banner-left {
    flex-direction: column;
    text-align: center;
}

.grid-4,
.grid-3,
.grid-2,
.motivation-scale {
    grid-template-columns: 1fr;
}

.number-line {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.card,
.task-card {
    padding: 1.15rem;
    border-radius: 20px;
}

.task-body {
    flex-direction: column;
    align-items: stretch;
}

.task-mascot-wrap {
    flex-direction: row;
    justify-content: center;
}

.wheel-inputs-grid {
    grid-template-columns: 1fr;
}

.equation-row {
    font-size: 1.35rem;
    gap: 0.45rem;
}

.math-input {
    width: 58px;
    height: 46px;
    font-size: 1.25rem;
}

.dots-frame {
    gap: 5px;
    padding: 10px;
}

.dot-item {
    width: 24px;
    height: 24px;
}

.gender-selector {
    grid-template-columns: 1fr;
}


}

@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
transition-duration: 0.01ms !important;
}
}