/* ===========================================================
   NOUA MARINA - BLUE GLASSMORPHISM DESIGN SYSTEM
   Optimized CSS - Unused classes removed, patterns consolidated
   Color Identity: BLUE (#2563eb) - Zero purple/violet
   =========================================================== */

/* ===========================================================
   1. RESET & GLOBAL VARIABLES
   =========================================================== */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p,
blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em,
img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u,
i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table,
caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details,
embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby,
section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box;
}

:root {
    /* Layout */
    --sb-open-width: 260px;
    --sb-mini-width: 72px;
    --topbar-height: 56px;

    /* Primary - BLUE */
    --primary-color: #2563eb;
    --primary-color-hover: #1d4ed8;
    --primary-gradient: linear-gradient(135deg, #2563eb, #3b82f6);
    --primary-bg-light: rgba(37, 99, 235, 0.08);

    /* Secondary */
    --secondary-color: #64748b;
    --secondary-color-hover: #475569;

    /* Semantic */
    --success-color: #059669;
    --success-color-hover: #047857;
    --warning-color: #d97706;
    --warning-color-hover: #b45309;
    --warning-text-color: #ffffff;
    --danger-color: #dc2626;
    --info-color: #0284c7;
    --info-color-hover: #0369a1;
    --bank-color: #ea580c;

    /* Text */
    --text-color: #0f172a;
    --text-color-light: #475569;
    --text-color-muted: #94a3b8;
    --white: #ffffff;

    /* Backgrounds */
    --content-bg: linear-gradient(160deg, #f0f4f8 0%, #e2e8f0 40%, #dbeafe 100%);
    --sidebar-bg: #0c1a2e;

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(255, 255, 255, 0.7);
    --glass-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --glass-blur: blur(12px);
    --glass-bg-hover: rgba(255, 255, 255, 0.7);

    /* Topbar glass */
    --topbar-bg: rgba(255, 255, 255, 0.5);
    --topbar-blur: blur(16px);

    /* Status */
    --present-bg: rgba(5, 150, 105, 0.08);
    --present-text: #059669;
    --absent-bg: rgba(220, 38, 38, 0.08);
    --absent-text: #dc2626;
    --success-bg: rgba(5, 150, 105, 0.08);
    --success-border: rgba(5, 150, 105, 0.25);
    --success-text: #059669;
    --error-bg: rgba(220, 38, 38, 0.08);
    --error-border: rgba(220, 38, 38, 0.25);
    --error-text: #dc2626;

    /* Borders */
    --border-color: rgba(0, 0, 0, 0.08);
    --border-color-light: rgba(0, 0, 0, 0.05);
    --background-light: #f0f4f8;
    --background-table-header: #1e293b;
    --background-card: rgba(255, 255, 255, 0.55);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Font */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    line-height: 1.5;
    font-family: var(--font-family);
    font-size: 14px;
    background: var(--content-bg);
    background-attachment: fixed;
    margin: 0;
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    position: relative;
}

/* Decorative background shapes - BLUE only */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.5;
}
body::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 70%);
    top: -100px;
    right: -100px;
}
body::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08), transparent 70%);
    bottom: -50px;
    left: 10%;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(37, 99, 235, 0.2);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(37, 99, 235, 0.35);
}


/* ===========================================================
   2. LAYOUT PRINCIPAL
   =========================================================== */
.layout-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* --- Sidebar (Dark Navy, opaque) --- */
.sidebar {
    width: var(--sb-open-width);
    background: var(--sidebar-bg);
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.sidebar.collapsed {
    width: var(--sb-mini-width);
}
.close-btn {
    align-self: flex-end;
    margin: 0.75rem;
    font-size: 1.4rem;
    background: none;
    border: 0;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s;
}
.close-btn:hover {
    color: var(--white);
}
.sidebar.collapsed .close-btn {
    display: none;
}
.sidebar nav {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}
.sidebar nav a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    margin: 2px 0;
    font-size: 0.9rem;
    font-weight: 450;
}
.sidebar nav a .nav-icon {
    margin-right: 0.85rem;
    min-width: 20px;
    width: 20px;
    height: 20px;
    text-align: center;
    font-size: 1.15em;
    transition: margin 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.sidebar nav a .nav-text {
    opacity: 1;
    transition: opacity 0.15s ease-out 0.1s;
}
.sidebar.collapsed nav a .nav-text {
    opacity: 0;
    pointer-events: none;
    width: 0;
    transition-delay: 0s;
}
.sidebar.collapsed nav a {
    padding-left: calc((var(--sb-mini-width) - 20px) / 2);
    padding-right: calc((var(--sb-mini-width) - 20px) / 2);
    justify-content: center;
}
.sidebar.collapsed nav a .nav-icon {
    margin-right: 0;
}
.sidebar nav a:hover {
    background: rgba(37, 99, 235, 0.12);
    color: var(--white);
    border-left-color: rgba(59, 130, 246, 0.4);
}
.sidebar nav a.active {
    background: rgba(37, 99, 235, 0.18);
    color: var(--white);
    border-left-color: #3b82f6;
    font-weight: 500;
}
.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.06);
    transition: opacity 0.2s, right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar.collapsed::after {
    right: -3px;
    opacity: 0;
}

/* --- Main wrapper --- */
.main-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin-left: var(--sb-open-width);
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: calc(100% - var(--sb-open-width));
}
.sidebar.collapsed + .main-wrapper {
    margin-left: var(--sb-mini-width);
    width: calc(100% - var(--sb-mini-width));
}

/* --- Topbar --- */
.topbar {
    height: var(--topbar-height);
    background: var(--topbar-bg);
    backdrop-filter: var(--topbar-blur);
    -webkit-backdrop-filter: var(--topbar-blur);
    color: var(--text-color);
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}
.toggle-btn {
    background: none;
    border: 0;
    color: var(--text-color-light);
    font-size: 1.3rem;
    cursor: pointer;
    margin-right: 1rem;
    padding: 0.35rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.toggle-btn:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
}
.topbar .title {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}
.logout {
    margin-left: auto;
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.45rem 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    font-size: 0.9rem;
}
.logout:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color-hover);
}
.topbar-spacer { flex-grow: 1; }

/* --- Content area --- */
.content {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
}


/* ===========================================================
   3. COMPONENTE GENERALE
   =========================================================== */

/* --- Tables - Modern with dark headers --- */
table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    overflow: hidden;
}
th, td {
    padding: 0.65rem 0.75rem;
    text-align: center;
    vertical-align: middle;
}
th {
    background: #1e293b;
    color: #f1f5f9;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-bottom: 2px solid #2563eb;
}
td {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 0.9rem;
}
tr:hover td {
    background: rgba(37, 99, 235, 0.04);
}
tr.paid-row td, td.paid {
    background: var(--present-bg);
    color: var(--present-text);
}
tr.unpaid-row td, td.unpaid {
    background: var(--absent-bg);
    color: var(--absent-text);
}

/* --- Buttons - BLUE gradient --- */
.btn {
    display: inline-block;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.55rem 1.15rem;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: var(--white);
    text-decoration: none;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
    font-size: 0.9rem;
}
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    color: var(--white);
}
.btn:active {
    transform: translateY(0);
}
.btn-secondary {
    background: var(--secondary-color);
}
.btn-secondary:hover {
    background: var(--secondary-color-hover);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}
.btn-success {
    background: var(--success-color);
}
.btn-success:hover {
    background: var(--success-color-hover);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}
.btn-warning,
.btn-edit {
    background: var(--warning-color);
    color: var(--warning-text-color);
}
.btn-warning:hover,
.btn-edit:hover {
    background: var(--warning-color-hover);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}
.btn-info {
    background: var(--info-color);
    color: var(--white);
}
.btn-info:hover {
    background: var(--info-color-hover);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}
.btn-small {
    font-size: 0.85em;
    padding: 0.35rem 0.7rem;
}
.btn-danger {
    background: #dc2626;
    border-color: #dc2626;
    color: white;
}
.btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* --- Alerts - left border accent --- */
.alert {
    padding: 0.85rem 1.25rem;
    margin-bottom: 1rem;
    border: none;
    border-left: 4px solid transparent;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.alert.err {
    color: var(--error-text);
    background-color: var(--error-bg);
    border-left-color: #dc2626;
}
.alert.success {
    color: var(--success-text);
    background-color: var(--success-bg);
    border-left-color: #059669;
}
.alert.info {
    color: #0284c7;
    background-color: rgba(2, 132, 199, 0.08);
    border-left-color: var(--info-color);
}

/* --- Forms - simplified selectors --- */
.frm label {
    display: block;
    margin: 0.8rem 0 0.35rem;
    font-weight: 500;
    color: var(--text-color-light);
    font-size: 0.9rem;
}
/* Font consistent pe TOATE inputurile (inclusiv date, number in afara .frm) */
input, select, textarea, button {
    font-family: var(--font-family);
}

.frm input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.frm select,
.frm textarea {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 0.95rem;
    line-height: 1.5;
    font-family: var(--font-family);
    background: rgba(255, 255, 255, 0.7);
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    color: var(--text-color);
}
.frm input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.frm select:focus,
.frm textarea:focus {
    border-color: #2563eb;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: #fff;
}
.frm input[type="checkbox"] {
    transform: scale(1.1);
    cursor: pointer;
    margin-right: 0.5rem;
    vertical-align: middle;
    accent-color: #2563eb;
}
.frm textarea {
    min-height: 80px;
    font-family: inherit;
}


/* ===========================================================
   4. GLASS-MORPHISM CONSOLIDATED PATTERN
   =========================================================== */
.content-panel-card,
.dashboard-card,
.stat-card,
.child-card,
.accordion-item,
.info-card,
.month-card,
.section-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
}


/* ===========================================================
   5. PANOUL DE CONTINUT GENERIC (Glass Card)
   =========================================================== */
.content-panel-card {
    padding: 1.5rem;
    margin-bottom: 0;
    animation: fadeSlideUp 0.3s ease-out;
}
.panel-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.panel-header h2 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--text-color);
    font-weight: 600;
}
.panel-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    flex-wrap: wrap;
}
.panel-header-actions .year-filter-form,
.panel-header-actions .date-filter-form,
.panel-header-actions .group-filter-form,
.prezenta-filters-form .filter-item {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.year-filter-form label,
.date-filter-form label,
.prezenta-filters-form label,
.panel-header-actions .group-filter-form label {
    margin-bottom: 0;
    font-size: 0.85rem;
    font-weight: 450;
    color: var(--text-color-muted);
}
.year-filter-form input[type="number"],
.date-filter-form input[type="date"],
.prezenta-filters-form select,
.panel-header-actions .group-filter-form select {
    padding: 0.4rem 0.6rem;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.year-filter-form input[type="number"]:focus,
.date-filter-form input[type="date"]:focus,
.prezenta-filters-form select:focus,
.panel-header-actions .group-filter-form select:focus {
    border-color: #2563eb;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.year-filter-form input[type="number"] {
    width: 90px;
}
.panel-header-actions .group-filter-form select {
    min-width: 150px;
}
.table-responsive-wrapper {
    overflow-x: auto;
    margin-top: 1rem;
    border-radius: var(--radius-md);
}
.t-incasari th, .t-incasari td,
.t-basic th, .t-basic td {
    white-space: nowrap;
}
.t-incasari td.protocol-sponsor {
    background-color: var(--present-bg);
    color: var(--present-text);
    font-style: normal;
}
.t-incasari td.protocol-sponsor .data-plata-incasari {
    display: block;
    font-size: 0.75em;
    font-style: normal;
    color: inherit;
}
.data-plata-incasari {
    display: block;
    font-size: 0.75em;
    color: var(--text-color-muted);
    margin-top: 2px;
    line-height: 1.1;
}


/* ===========================================================
   6. STILURI SPECIFICE PAGINILOR
   =========================================================== */

/* ---------- A. DASHBOARD ---------- */
.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

/* Quick actions panel */
.quick-actions-panel {
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}
.quick-actions-panel > h3.section-title {
    border-bottom: none;
    font-size: 1.15rem;
    color: var(--text-color-light);
    margin-bottom: 1rem;
}
.quick-actions-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}
.btn.quick-action-btn {
    width: 100%;
    margin: 0.1rem 0;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    text-align: left;
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
}
.btn.quick-action-btn:hover {
    background: var(--glass-bg-hover);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* Dashboard summaries grid */
.dashboard-summaries-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.summary-card .section-title {
    border-bottom: none;
    font-size: 1.15rem;
    color: var(--text-color-light);
    margin-bottom: 1rem;
}
.summary-card p {
    font-size: 0.95rem;
    color: var(--text-color-light);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}
.summary-card p strong {
    font-weight: 600;
    color: var(--text-color);
}

/* Dashboard attendance groups */
.dashboard-prezenta-grupe-container.content-panel-card {
    margin-top: 0;
    margin-bottom: 20px;
}
.dashboard-prezenta-grupe-container > .section-title,
.content-panel-card > h3.section-title {
    border-bottom: 1px solid var(--border-color-light);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

/* Dashboard cards grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.dashboard-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}
.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background: var(--glass-bg-hover);
}
.dashboard-card .card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color-light);
}
.card-icon-container {
    margin-right: 1rem;
    padding: 0.6rem;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}
.card-icon {
    font-size: 1.4rem;
    line-height: 1;
}
.card-type-jujitsu .card-icon-container,
.card-icon-container.card-type-jujitsu {
    background-color: rgba(255, 224, 178, 0.6);
}
.card-type-taekwondo .card-icon-container,
.card-icon-container.card-type-taekwondo {
    background-color: rgba(179, 229, 252, 0.6);
}
.card-type-generic .card-icon-container {
    background-color: rgba(0, 0, 0, 0.04);
}
.dashboard-card .card-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}
.card-body {
    flex-grow: 1;
    font-size: 0.95rem;
    color: var(--text-color-light);
}
.card-body p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}
.card-body strong {
    font-weight: 600;
    color: var(--text-color);
}
.card-footer {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color-light);
    text-align: right;
}
.btn-card-details {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.4rem 0.85rem;
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    font-weight: 500;
}
.btn-card-details:hover {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: var(--primary-color);
}
.dashboard-card.nu-are-antrenament {
    opacity: 0.6;
}
.dashboard-card.nu-are-antrenament:hover {
    transform: none;
    box-shadow: var(--glass-shadow);
}


/* ---------- B. FORMULARE DE CAUTARE ---------- */
.search-form-sportivi {
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color-light);
}
.search-form-sportivi label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color-light);
}
.search-input-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.form-control-search {
    flex-grow: 1;
    padding: 0.6rem 0.85rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 0.95rem;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.7);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control-search:focus {
    border-color: #2563eb;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: #fff;
}
.btn-search {
    flex-shrink: 0;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    margin-top: 0;
    margin-bottom: 0;
}
.btn-clear-search {
    font-size: 0.9em;
    padding: 0.35rem 0.8rem;
    margin-top: 0.5rem;
}


/* ---------- C. CALENDAR GRUPE ---------- */
.calendar-table th {
    font-weight: 600;
    background: var(--background-table-header);
    color: #f1f5f9;
}
.calendar-table td {
    padding: 0;
}
.calendar-table td label {
    font-weight: normal;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    height: 100%;
    box-sizing: border-box;
}
.calendar-table td input[type="checkbox"] {
    margin: 0;
}
.mini-calendar-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.85rem;
    margin-top: 0;
}
.mini-calendar-table th, .mini-calendar-table td {
    text-align: center;
    border: 1px solid var(--border-color-light);
    height: 34px;
    box-sizing: border-box;
    padding: 0;
    vertical-align: middle;
}
.mini-calendar-table th {
    background-color: #1e293b;
    color: #f1f5f9;
    font-weight: 600;
    padding: 6px 2px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.mini-calendar-table td.empty {
    background-color: transparent;
    border: 1px solid var(--border-color-light);
}
.mini-calendar-table td .day-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
    color: var(--text-color);
}
.mini-calendar-table td.active-day .day-number {
    background: var(--primary-gradient);
    color: var(--white);
    font-weight: bold;
}


/* ---------- D. PAGINA PREZENTA ---------- */
.prezenta-layout-grid {
    display: grid;
    grid-template-columns: clamp(280px, 30%, 340px) 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.prezenta-calendar-col {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 1rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    align-self: start;
}
.prezenta-lista-col .content-panel-card {
    margin-bottom: 0;
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
}
.month-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.month-navigation .current-month-year {
    font-weight: 600;
    font-size: 1.1em;
    color: var(--text-color);
    text-align: center;
    flex-grow: 1;
}
.month-navigation .btn-month-nav {
    padding: 0.4em 0.8em;
    font-size: 0.9em;
    line-height: 1.3;
    background-color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    color: var(--white);
    margin-top: 0;
    margin-bottom: 0;
}
.month-navigation .btn-month-nav:hover {
    background-color: var(--secondary-color-hover);
    border-color: var(--secondary-color-hover);
}
.attendance-calendar-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.85em;
    margin-top: 0;
}
.attendance-calendar-table th,
.attendance-calendar-table td {
    text-align: center;
    padding: 0;
    border: 1px solid var(--border-color);
    height: 40px;
    box-sizing: border-box;
    vertical-align: middle;
}
.attendance-calendar-table th {
    background-color: #1e293b;
    color: #f1f5f9;
    font-weight: 600;
    padding: 6px 0;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.attendance-calendar-table td a.day-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    border-radius: 4px;
    border: 1px solid transparent;
    box-sizing: border-box;
}
.attendance-calendar-table td a.day-link:hover:not(.selected-day) {
    background-color: rgba(37, 99, 235, 0.06);
    border-color: var(--border-color);
}
.attendance-calendar-table td.empty {
    background-color: transparent;
    border: 1px solid var(--border-color-light);
}
.attendance-calendar-table td a.day-link.training-day {
    position: relative;
    font-weight: 500;
}
.attendance-calendar-table td a.day-link.training-day::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background-color: #2563eb;
    border-radius: 50%;
}
.attendance-calendar-table td a.day-link.today {
    font-weight: bold;
    border-color: var(--info-color);
    background-color: rgba(2, 132, 199, 0.08);
}
.attendance-calendar-table td a.day-link.selected-day {
    background: var(--primary-gradient);
    color: var(--white);
    font-weight: bold;
    border-color: var(--primary-color-hover);
}
.attendance-calendar-table td a.day-link.selected-day.training-day::after {
    background-color: var(--white);
}
.calendar-legend {
    margin-top: 1rem;
    font-size: 0.85em;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.calendar-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.calendar-legend .color-box {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 3px;
}
.calendar-legend .selected-day-legend {
    background: var(--primary-gradient);
}
.calendar-legend .today-legend {
    background-color: rgba(2, 132, 199, 0.1);
    border-color: var(--info-color);
}
.calendar-legend .training-day-legend {
    background-color: transparent;
    position: relative;
}
.calendar-legend .training-day-legend::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background-color: #2563eb;
    border-radius: 50%;
}
.prezenta-lista-col h3 {
    font-size: 1.2em;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}
.t-prezenta-lista input[type="checkbox"] {
    transform: scale(1.2);
    cursor: pointer;
    accent-color: #2563eb;
}
.t-prezenta-lista td.protocol-sponsor-cotizatie {
    background-color: var(--present-bg) !important;
    color: var(--present-text) !important;
    font-weight: 500;
}


/* ---------- E. PAGINA ADAUGA INCASARE ---------- */
.form-section {
    border: none;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.06);
}
.form-section legend {
    /* Scos din comportamentul nativ fieldset/legend */
    float: left;
    width: 100%;
    font-weight: 600;
    font-size: 1.15rem;
    padding: 0;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    color: var(--primary-color);
}
.form-section > *:not(legend) {
    clear: both;
}
.luni-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.search-results-sportivi {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.search-results-sportivi h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.1em;
    color: var(--text-color-light);
}
.search-results-sportivi ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.search-results-sportivi ul li a {
    display: block;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    transition: background-color 0.2s, color 0.2s;
}
.search-results-sportivi ul li a:hover {
    background-color: rgba(37, 99, 235, 0.06);
    color: var(--primary-color-hover);
}
.t-istoric-incasari td {
    font-size: 0.9em;
    vertical-align: middle;
}
.t-istoric-incasari td.cell-align-left { text-align: left !important; }
.t-istoric-incasari td.cell-align-right { text-align: right !important; }


/* ---------- F. PAGINA DE LOGIN / AUTH ---------- */
body.login-page-body,
body.auth-page {
    background: linear-gradient(135deg, #0c1a2e, #1e3a5f, #0f2847);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
    box-sizing: border-box;
    overflow: hidden;
}
body.login-page-body::before,
body.auth-page::before {
    content: '';
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2), transparent 70%);
    top: -150px;
    right: -100px;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}
body.login-page-body::after,
body.auth-page::after {
    content: '';
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
    bottom: -100px;
    left: -50px;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}


/* ---------- G. PAGINA DETALII SPORTIV ---------- */
.sportiv-detalii-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.section-card {
    padding: 1.5rem;
}
.section-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color-light);
    font-weight: 600;
}
.sportiv-info-generale p,
.lista-istoric li {
    margin-bottom: 0.6rem;
    line-height: 1.5;
    font-size: 0.95rem;
    color: var(--text-color-light);
}
.sportiv-info-generale p strong,
.lista-istoric li strong {
    font-weight: 600;
    color: var(--text-color);
}
.lista-istoric {
    list-style: none;
    padding-left: 0;
}
.status-activ {
    color: var(--present-text);
    font-weight: 600;
    background-color: var(--present-bg);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.85em;
    display: inline-block;
}
.status-suspendat {
    color: var(--absent-text);
    font-weight: 600;
    background-color: var(--absent-bg);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.85em;
    display: inline-block;
}
.progress-bar-container {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-full);
    overflow: hidden;
    height: 22px;
    display: flex;
    align-items: center;
    position: relative;
}
.progress-bar {
    height: 100%;
    line-height: 22px;
    text-align: center;
    font-weight: bold;
    font-size: 0.85em;
    transition: width 0.5s ease-in-out;
    white-space: nowrap;
    padding: 0 5px;
    box-sizing: border-box;
    border-radius: var(--radius-full);
}
.progress-bar.is-zero {
    color: var(--text-color-muted);
    justify-content: center;
    display: flex;
    align-items: center;
}


/* ---------- H. MODAL (Pop-up) ---------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
.modal-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
    width: 90%;
    max-width: 500px;
    text-align: left;
}
.modal-content h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
}
.modal-content textarea {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    box-sizing: border-box;
    min-height: 70px;
    line-height: 1.5;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.7);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.modal-content textarea:focus {
    border-color: #2563eb;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.modal-actions {
    margin-top: 1.5rem;
    text-align: right;
}
.modal-actions .btn {
    margin-left: 0.5rem;
}


/* ---------- I. UTILITIES & ANIMATII ---------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.content > .content-panel-card,
.content > .dashboard-grid,
.content > .prezenta-layout-grid {
    animation: fadeSlideUp 0.3s ease-out;
}

.t-incasari td a.payment-cell-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 0.4rem 0.3rem;
    transition: background-color 0.2s;
}
.t-incasari td.paid a.payment-cell-link {
    color: var(--present-text);
}
.t-incasari td.protocol-sponsor a.payment-cell-link {
    color: var(--primary-color-hover);
}
.t-incasari td a.payment-cell-link:hover {
    background-color: rgba(0, 0, 0, 0.04);
}


/* ===========================================================
   7. TAB-URI - PILL STYLE
   =========================================================== */
.tabs-container {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
ul.tab-headers {
    list-style-type: none;
    padding: 0.5rem;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
}
ul.tab-headers li {
    margin-right: 0;
    margin-bottom: 0;
}
ul.tab-headers li a.tab-link {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #475569;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s;
    white-space: nowrap;
}
ul.tab-headers li a.tab-link:hover {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
}
ul.tab-headers li a.tab-link.active {
    background: #2563eb;
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
.tab-content-wrapper {
    position: relative;
    z-index: 1;
}
.tab-content {
    display: none;
    padding: 1.5rem;
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}
.tab-content.active {
    display: block;
}
.tab-content .table-responsive-wrapper,
.tab-content .t-basic {
    margin-top: 0;
}


/* ===========================================================
   8. FILTRE DE STATUS PLATA (Incasari)
   =========================================================== */
.payment-status-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.payment-status-filters .btn-small {
    margin-top: 0;
    margin-bottom: 0;
}
a.btn.btn-small.btn-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
    color: var(--white);
}
a.btn.btn-small.btn-danger:hover {
    background-color: #b91c1c;
    border-color: #b91c1c;
}


/* ===========================================================
   9. FOOTER SIDEBAR
   =========================================================== */
.sidebar-footer {
    padding: 1rem;
    font-size: 0.75rem;
    line-height: 1.4;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.sidebar-footer a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.2s;
}
.sidebar-footer a:hover {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
}
.sidebar.collapsed .sidebar-footer {
    display: none;
}
.sidebar.collapsed #pwaInstallContainer,
.sidebar.collapsed #pwaIosContainer {
    display: none !important;
}


/* ===========================================================
   10. PAGINARE (Jurnal Incasari)
   =========================================================== */
.pagination-nav {
    margin: 20px 0;
    text-align: center;
}
.pagination-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    gap: 4px;
}
.pagination-list li {
    display: inline-block;
}
.pagination-list li a {
    display: block;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.6);
    color: var(--text-color);
    transition: all 0.2s;
}
.pagination-list li.active a,
.pagination-list li a:hover {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: var(--primary-color);
}


/* ===========================================================
   11. AUTH PAGES (Parinti & Admin)
   =========================================================== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0c1a2e, #1e3a5f, #0f2847);
}
.auth-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 450px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.auth-container h1 {
    margin-bottom: 1.5rem;
    color: var(--white);
    font-weight: 600;
    font-size: 1.5rem;
}
.auth-container .frm {
    text-align: left;
}
.auth-container .frm label {
    color: rgba(255, 255, 255, 0.7);
}
.auth-container .frm input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.auth-container .frm select {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
}
.auth-container .frm input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}
.auth-container .frm input:focus,
.auth-container .frm select:focus {
    border-color: rgba(37, 99, 235, 0.6);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    background: rgba(255, 255, 255, 0.15);
}
.auth-container .btn-full-width {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    margin-top: 0.5rem;
}
.auth-container .form-footer-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.6);
}
.auth-container .form-footer-link a {
    color: rgba(96, 165, 250, 0.9);
    text-decoration: none;
    font-weight: 600;
}
.auth-container .form-footer-link a:hover {
    color: #93bbfc;
    text-decoration: underline;
}
.auth-container .login-logo-container {
    margin-bottom: 1.5rem;
}
.auth-container .login-logo {
    max-width: 150px;
    height: auto;
}
.login-logo-container {
    margin-bottom: 1.5rem;
}
.login-logo {
    max-width: 150px;
    height: auto;
}

/* Auth separator */
.auth-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8em;
    font-weight: 600;
}
.auth-separator::before,
.auth-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.auth-separator:not(:empty)::before {
    margin-right: 0.5em;
}
.auth-separator:not(:empty)::after {
    margin-left: 0.5em;
}
.auth-secondary-action {
    margin-top: 0;
}


/* ===========================================================
   12. RUDE MANAGEMENT (Editare)
   =========================================================== */
.lista-rude-edit {
    list-style: none;
    padding: 0;
    margin: 0;
}
.lista-rude-edit li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color-light);
}
.lista-rude-edit li:first-child {
    padding-top: 0;
}
.lista-rude-edit li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.lista-rude-edit span {
    font-weight: 500;
}
.nume-ruda {
    font-weight: 500;
    color: var(--text-color);
}
.btn-delete-ruda {
    margin: 0;
}

#asociere_ruda_wrapper .sibling-result-item {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color-light);
    cursor: pointer;
    transition: background-color 0.2s;
}
#asociere_ruda_wrapper .sibling-result-item:hover {
    background-color: rgba(37, 99, 235, 0.06);
}
#asociere_ruda_wrapper #sibling-results-container {
    border: 1px solid var(--border-color);
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.rude-management-section {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    border-top: 1px dashed var(--border-color-light);
    padding-top: 1.5rem;
}
.no-data-msg {
    margin: 0.5rem 0;
    color: var(--text-color-muted);
    font-style: italic;
    font-size: 0.9em;
}

#sibling-results-container {
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    max-height: 200px;
    overflow-y: auto;
}
#search-sibling-input {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    position: relative;
    z-index: 10;
}
.sibling-result-item {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--border-color-light);
    cursor: pointer;
    transition: background-color 0.2s;
}
.sibling-result-item:last-child {
    border-bottom: none;
}
.sibling-result-item:hover {
    background-color: rgba(37, 99, 235, 0.06);
}
.sibling-result-item.is-loading,
.sibling-result-item.no-results,
.sibling-result-item.is-error {
    font-style: italic;
    color: var(--text-color-muted);
    cursor: default;
}
#selected-sibling-display {
    margin-top: 1rem;
    padding: 0.75rem;
    font-weight: 600;
    background-color: var(--success-bg);
    color: var(--success-text);
    border-radius: var(--radius-sm);
    opacity: 0;
    transition: opacity 0.3s;
}
#selected-sibling-display.visible {
    opacity: 1;
}

.rude-section-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color-light);
    margin-top: 0;
    margin-bottom: 1rem;
}


/* ===========================================================
   13. TABEL FINANCIAR PARINTE
   =========================================================== */
.t-incasari td.paid {
    background-color: var(--present-bg);
    color: var(--present-text);
    text-align: center;
    vertical-align: middle;
}
.t-incasari td.unpaid {
    background-color: var(--absent-bg);
    color: var(--absent-text);
}
.t-incasari td.protocol {
    background-color: rgba(0, 0, 0, 0.03);
    color: var(--text-color-muted);
    font-style: italic;
    font-size: 0.9em;
    text-align: center;
    vertical-align: middle;
}
.payment-cell-info {
    display: block;
    font-weight: 600;
    font-size: 1.05em;
}
.payment-cell-date {
    display: block;
    font-size: 0.8em;
    color: inherit;
    opacity: 0.85;
    margin-top: 2px;
}


/* ===========================================================
   14. MESAJ STATUS PARINTE
   =========================================================== */
.status-message {
    font-weight: 600;
    font-size: 14px;
    padding: 12px 15px;
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
    text-align: center;
    border: none;
    border-left: 4px solid transparent;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.status-message.overdue {
    color: var(--error-text);
    background-color: var(--error-bg);
    border-left-color: var(--danger-color);
}
.status-message.paid {
    color: var(--success-text);
    background-color: var(--success-bg);
    border-left-color: var(--success-color);
}


/* ===========================================================
   15. INCASARI V2 (Accordion)
   =========================================================== */
.incasari-v2-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.accordion-item {
    transition: all 0.25s ease;
    overflow: hidden;
}
.accordion-item:hover {
    box-shadow: var(--shadow-sm);
}
.accordion-item.is-empty .accordion-header {
    cursor: default;
    background: rgba(0, 0, 0, 0.02);
}
.accordion-item.is-empty .accordion-header:hover {
    background: rgba(0, 0, 0, 0.02);
}
.accordion-header {
    width: 100%;
    background: rgba(37, 99, 235, 0.03);
    border: none;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    text-align: left;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.2s;
    border-radius: var(--radius-lg);
    gap: 1rem;
}
.accordion-item.active > .accordion-header {
    background: rgba(37, 99, 235, 0.06);
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color-light);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.accordion-header:hover {
    background: rgba(37, 99, 235, 0.05);
}
.accordion-item.active > .accordion-header:hover {
    background: rgba(37, 99, 235, 0.08);
}
.accordion-title {
    flex-grow: 1;
}
.accordion-badge-container {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}
.badge-item {
    font-size: 0.8em;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
}
.badge-item.badge-total {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-color-light);
    border: 1px solid var(--border-color);
}
.badge-item.badge-paid {
    background-color: var(--success-color);
    color: var(--white);
}
.badge-item.badge-unpaid {
    background-color: var(--danger-color);
    color: var(--white);
}

/* Accordion icon (+/-) */
.accordion-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    position: relative;
    flex-shrink: 0;
}
.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background-color: var(--secondary-color);
    transition: transform 0.3s ease, background-color 0.2s;
}
.accordion-item.active .accordion-header .accordion-icon::before,
.accordion-item.active .accordion-header .accordion-icon::after {
    background-color: var(--primary-color);
}
.accordion-icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    margin-top: -1px;
}
.accordion-icon::after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    margin-left: -1px;
}
.accordion-item.active .accordion-icon::after {
    transform: rotate(90deg);
}
.accordion-item.active .accordion-icon::before {
    transform: rotate(180deg);
}

/* Accordion content */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: transparent;
    padding: 0;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}
.accordion-item.active .accordion-content {
    padding: 1.5rem;
}

/* Athlete cards grid */
.athlete-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.athlete-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.2s;
}
.athlete-card:hover {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-sm);
}
.athlete-info {
    flex: 1 1 250px;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.athlete-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: var(--text-color-muted);
    margin-top: 2px;
    border-radius: 50%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.04);
}
.athlete-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.athlete-details {
    display: flex;
    flex-direction: column;
}
a.athlete-name {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.05rem;
}
a.athlete-name:hover {
    text-decoration: underline;
}
.athlete-contact {
    font-size: 0.85rem;
    color: var(--text-color-light);
    margin-top: 0.25rem;
}
.athlete-contact span {
    display: block;
}
.athlete-contact span strong {
    color: var(--text-color-muted);
    font-weight: 500;
}

/* Payment indicators (monthly) */
.athlete-payments {
    flex: 2 1 300px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 5px;
}
.payment-indicator {
    min-height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: help;
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 4px 2px;
    line-height: 1.2;
    text-align: center;
}
.payment-indicator:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.payment-indicator .month-label {
    color: rgba(255, 255, 255, 0.9);
}
.payment-indicator .month-label-protocol {
    font-size: 0.75em;
    text-transform: uppercase;
    font-weight: 600;
    line-height: 1.1;
}
.payment-indicator .payment-amount {
    font-weight: 600;
    font-size: 0.9em;
}
.payment-indicator .payment-date {
    font-size: 0.75em;
    opacity: 0.8;
    margin-top: 1px;
}
.payment-indicator.paid {
    background: rgba(5, 150, 105, 0.12);
    color: #059669;
}
.payment-indicator.paid-bank {
    background: rgba(234, 88, 12, 0.12);
    color: #ea580c;
}
.payment-indicator.unpaid {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}
.payment-indicator.unpaid .month-label {
    color: rgba(220, 38, 38, 0.7);
}
.payment-indicator.future {
    background: rgba(0, 0, 0, 0.03);
    color: #94a3b8;
}
.payment-indicator.future .month-label {
    color: var(--text-color-muted);
}

.no-data-message {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--radius-md);
    color: var(--text-color-muted);
}


/* ===========================================================
   16. CATALOG SPORTIVI (Professional List Design)
   =========================================================== */
.professional-list-container {
    display: flex;
    flex-direction: column;
}
.professional-list-header {
    display: none; /* Se arata pe desktop via media query */
    padding: 0.7rem 0.75rem;
    background: #1e293b;
    color: #f1f5f9;
    font-weight: 600;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #2563eb;
    border-radius: 10px 10px 0 0;
}
.professional-list-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.7rem 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid var(--border-color-light);
    transition: all 0.2s;
}
.professional-list-item:hover {
    background: rgba(255, 255, 255, 0.75);
    box-shadow: inset 3px 0 0 var(--primary-color);
}
.list-item-section {
    padding: 0.5rem;
    box-sizing: border-box;
}
.list-item-name {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-color);
}
.list-item-data {
    color: var(--text-color-light);
    font-weight: 500;
}
/* Contact stacked: telefon + email pe 2 rânduri */
.contact-stacked {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.contact-stacked .contact-line {
    font-size: 0.88rem;
    color: var(--text-color-light);
    line-height: 1.4;
}
.abonament-tag {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}
.list-item-section.actions .btn {
    margin: 0;
}


/* ===========================================================
   17. DETALII SPORTIV (Pagina Completa)
   =========================================================== */
.detalii-sportiv-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    margin-bottom: 1.5rem;
}
.header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color-muted);
    overflow: hidden;
}
.avatar-placeholder svg {
    width: 36px;
    height: 36px;
}
.avatar-placeholder img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
}
.info-text h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-color);
}
.info-text p {
    margin: 0.25rem 0 0 0;
    font-size: 1rem;
    color: var(--text-color-light);
}
.status-tag {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    font-size: 0.8em;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.status-tag.status-activ {
    background-color: var(--present-bg);
    color: var(--present-text);
}
.status-tag.status-suspendat {
    background-color: var(--absent-bg);
    color: var(--absent-text);
}
.header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Layout 2 columns */
.detalii-sportiv-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.main-content-col {
    display: flex;
    flex-direction: column;
}
.sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Info cards */
.info-card {
    padding: 1.5rem;
}
.info-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color-light);
}
.info-grid {
    display: grid;
    gap: 0.75rem;
}
.info-grid div {
    display: flex;
    flex-direction: column;
}
.info-grid span {
    font-size: 0.85rem;
    color: var(--text-color-muted);
    margin-bottom: 0.1rem;
}
.info-grid strong {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
}

.lista-istoric-grupe {
    list-style: none;
    padding: 0;
    margin: 0;
}
.lista-istoric-grupe li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color-light);
}
.lista-istoric-grupe li:last-child {
    border-bottom: none;
}
.lista-istoric-grupe .nume-grupa {
    font-weight: 600;
    display: block;
}
.lista-istoric-grupe .perioada {
    font-size: 0.85em;
    color: var(--text-color-muted);
}

.lista-rude {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.ruda-tag {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.2s;
}
.ruda-tag:hover {
    background: rgba(37, 99, 235, 0.15);
}

/* Tabs in details page */
.detalii-tabs .tab-content {
    border: none;
    padding: 0;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
}
.detalii-tabs .tab-headers {
    margin-bottom: 1rem;
}
.detalii-tabs .tab-link {
    background-color: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: var(--text-color-muted);
}
.detalii-tabs .tab-link:hover {
    background-color: transparent;
    color: var(--text-color);
}
.detalii-tabs .tab-link.active {
    background-color: transparent;
    color: var(--primary-color);
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: none;
}
.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color-light);
}
.tab-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}
.tab-content .table-responsive-wrapper {
    padding: 1.5rem;
}
.t-sumar-prezente .tfoot-total {
    font-weight: bold;
    background-color: rgba(37, 99, 235, 0.04);
}
.t-sumar-prezente .progress-bar {
    color: var(--text-color);
}


/* ===========================================================
   18. FORMULARE MODERNE (Adauga/Editeaza Sportiv)
   =========================================================== */
.modern-form-container .panel-header {
    border-bottom: none;
    margin-bottom: 0.5rem;
}
.modern-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color-light);
}
.form-group input,
.form-group select {
    width: 100%;
}

/* Radio cards */
.radio-group-modern {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.25rem;
}
.radio-card {
    flex: 1;
    position: relative;
}
.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
.radio-card .radio-card-content {
    display: block;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    background: rgba(255, 255, 255, 0.5);
}
.radio-card input[type="radio"]:checked + .radio-card-content {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}
.radio-card input[type="radio"]:focus + .radio-card-content {
    box-shadow: 0 0 0 2px var(--primary-color);
}

/* Sibling search section */
#asociere_ruda_wrapper {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color-light);
    transition: opacity 0.3s, max-height 0.3s;
    opacity: 1;
    max-height: 500px;
    overflow: hidden;
}
#asociere_ruda_wrapper.hidden {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.form-required-info {
    font-size: 0.9em;
    color: var(--text-color-muted);
    margin-top: 0.5rem;
}


/* ===========================================================
   19. FORMULAR ANTRENORI
   =========================================================== */
.form-text-muted {
    font-size: 0.85em;
    color: var(--text-color-muted);
    margin-top: 0.3rem;
}
.checkbox-group-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}
.checkbox-card {
    position: relative;
    display: block;
}
.checkbox-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
.checkbox-card .checkbox-card-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    min-height: 50px;
    background: rgba(255, 255, 255, 0.5);
}
.checkbox-card input[type="checkbox"]:checked + .checkbox-card-content {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}
.checkbox-card input[type="checkbox"]:focus + .checkbox-card-content {
    box-shadow: 0 0 0 2px var(--primary-color);
}


/* ===========================================================
   20. LISTA DE GRUPE
   =========================================================== */
.professional-list-header.grupe-header {
    gap: 1rem;
}
.sortable-header a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sortable-header a:hover {
    color: #93c5fd;
}
.sortable-header a .sort-inactive {
    opacity: 0.4;
    transition: opacity 0.2s;
}
.sortable-header a:hover .sort-inactive {
    opacity: 1;
}
.sortable-header a .sort-active {
    color: #60a5fa;
}
.detail-item {
    color: var(--text-color-light);
}
.sportivi-count {
    font-weight: 500;
}
.no-calendar {
    font-style: italic;
    color: var(--text-color-muted);
}
.calendar-summary {
    cursor: pointer;
    outline: none;
}
.calendar-summary summary {
    font-weight: 500;
    color: var(--primary-color);
    list-style-position: inside;
    transition: color 0.2s;
}
.calendar-summary summary:hover {
    color: var(--primary-color-hover);
}


/* ===========================================================
   21. PAGINA ADAUGA INCASARE V2.5
   =========================================================== */
.search-results-sportivi .grupa-tag {
    font-size: 0.8em;
    color: var(--text-color-muted);
    background: rgba(0, 0, 0, 0.04);
    padding: 2px 10px;
    border-radius: var(--radius-full);
    margin-left: 8px;
}
.incasare-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-color-light);
    padding-top: 1.5rem;
}
.incasare-sidebar-col .info-card {
    position: sticky;
    top: 1.5rem;
}
.luni-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}
.luna-card .checkbox-card-content {
    flex-direction: column;
    gap: 0.25rem;
    min-height: 65px;
    justify-content: center;
    align-items: center;
}
.luna-card.is-paid-success .checkbox-card-content {
    background-color: var(--success-bg);
    border-color: var(--success-border);
    color: var(--success-text);
    cursor: not-allowed;
}
.luna-card.is-paid-success input[type="checkbox"] {
    cursor: not-allowed;
}
.paid-details {
    font-size: 0.8em;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}
.paid-amount { display: block; }
.paid-date { display: block; opacity: 0.8; }


/* ===========================================================
   22. PORTAL PARINTI
   =========================================================== */
.parent-dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
}
.parent-dashboard-container .panel-header {
    border-bottom: none;
    padding-bottom: 0;
}
.welcome-message {
    color: var(--text-color-light);
    margin-bottom: 1.5rem;
}
.children-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.child-card {
    overflow: hidden;
}
.child-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(37, 99, 235, 0.03);
    border-bottom: 1px solid var(--border-color-light);
}
.child-info .child-name {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
}
.child-info .child-group {
    font-size: 0.9rem;
    color: var(--text-color-muted);
}
.child-card-header .btn {
    margin: 0;
}
.child-card-body {
    padding: 1.5rem;
}
.child-card-body h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1rem;
}

.financial-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}
.month-box {
    border-radius: var(--radius-md);
    padding: 0.75rem;
    text-align: center;
    border: 1px solid;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.month-box:hover {
    transform: translateY(-2px);
}
.month-box.is-paid {
    background-color: var(--success-bg);
    border-color: var(--success-border);
    color: var(--success-text);
}
.month-box.is-unpaid {
    background-color: var(--error-bg);
    border-color: var(--error-border);
    color: var(--error-text);
}
.month-box.is-protocol {
    background-color: rgba(0, 0, 0, 0.03);
    border-color: var(--border-color);
    color: var(--text-color-muted);
}
.month-box.is-future {
    background-color: rgba(0, 0, 0, 0.02);
    border-color: var(--border-color);
    color: var(--text-color-muted);
}
.month-box.is-future .month-name {
    opacity: 0.7;
}
.month-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.month-amount {
    font-weight: 700;
    font-size: 0.95em;
}
.month-date {
    font-size: 0.8em;
    opacity: 0.8;
}
.month-status {
    font-style: italic;
    font-size: 0.9em;
}


/* ===========================================================
   23. PROMO CARD V2
   =========================================================== */
.promo-card-v2 {
    margin-top: 2.5rem;
    background: linear-gradient(135deg, #0c1a2e 0%, #1e3a5f 50%, #0f2847 100%);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.promo-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0.75rem;
}
.promo-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
}
.promo-services {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}
.service-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.9em;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.service-item strong {
    font-weight: 600;
}
.btn-promo {
    background: rgba(255, 255, 255, 0.95);
    color: #0c1a2e;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}
.btn-promo:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}


/* ===========================================================
   24. DASHBOARD V2.5
   =========================================================== */
.dashboard-v2-container .panel-header {
    margin-bottom: 1.5rem;
}
.dashboard-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.dashboard-primary-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.dashboard-stat-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.dashboard-primary-col > .dashboard-stat-cards:only-child {
    flex-grow: 1;
    grid-auto-rows: 1fr;
}

.stat-card {
    padding: 1.15rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
}
.stat-card:hover {
    background: var(--glass-bg-hover);
    box-shadow: var(--shadow-sm);
}

/* Stat icon wrappers - BLUE tones */
.stat-icon-wrapper {
    font-size: 1.75rem;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-icon-wrapper.icon-total { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.stat-icon-wrapper.icon-prezent { background: rgba(5, 150, 105, 0.1); color: #059669; }
.stat-icon-wrapper.icon-absent { background: rgba(220, 38, 38, 0.1); color: #dc2626; }
.stat-icon-wrapper.icon-procent { background: rgba(37, 99, 235, 0.1); color: #2563eb; }

.stat-content .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    display: block;
}
.stat-content .stat-label {
    font-size: 0.9rem;
    color: var(--text-color-muted);
}

.summary-card.financial-summary { padding: 1.5rem; }
.financial-summary .section-title {
    border-bottom: none;
    font-size: 1.15rem;
    color: var(--text-color-light);
    margin-bottom: 1rem;
}
.financial-summary p {
    font-size: 0.95rem;
    color: var(--text-color-light);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}
.financial-value { font-size: 1.1em; font-weight: 600; }
.financial-value.positive { color: var(--success-text); }
.financial-value.negative { color: var(--error-text); }

.dashboard-actions-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.dashboard-actions-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}
.btn.btn-quick-action {
    width: 100%;
    margin: 0;
    padding: 0.75rem 1rem;
    text-align: left;
}
.btn.btn-quick-action.secondary {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}
.btn.btn-quick-action.secondary:hover {
    background: rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.2);
    color: var(--primary-color);
}
.btn.btn-quick-action.disabled {
    background-color: var(--secondary-color);
    opacity: 0.65;
    cursor: not-allowed;
}

.financial-groups-summary {
    margin-bottom: 1.5rem;
}
.financial-groups-list {
    display: flex;
    flex-direction: column;
}
.financial-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color-light);
}
.financial-group-item:last-child {
    border-bottom: none;
}
.financial-group-item .group-name {
    font-weight: 600;
    color: var(--text-color);
}
.financial-group-item .group-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9em;
}
.group-stats .stat-total {
    color: var(--text-color-muted);
    background: rgba(0, 0, 0, 0.04);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
}
.group-stats .stat-paid {
    color: var(--success-text);
    background-color: var(--success-bg);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    font-weight: 600;
}
.group-stats .stat-overdue {
    color: var(--error-text);
    background-color: var(--error-bg);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.dashboard-prezenta-grupe-container .section-title {
    border-bottom: 1px solid var(--border-color-light);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}


/* ===========================================================
   25. PAGINA PREZENTA V2
   =========================================================== */
.prezenta-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color-light);
}
.prezenta-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}
.prezenta-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    font-size: 0.9em;
    color: var(--text-color-muted);
}
.prezenta-summary strong {
    font-weight: 600;
    color: var(--text-color);
}
.prezenta-summary .text-success { color: var(--success-color); }
.prezenta-summary .text-danger { color: var(--error-text); }

.prezenta-card-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.sportiv-prezenta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    transition: all 0.2s;
}
.sportiv-prezenta-card:hover {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-sm);
}
.sportiv-info .sportiv-name {
    display: block;
    font-weight: 600;
    color: var(--text-color);
}
.cotizatie-status {
    font-size: 0.8em;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-top: 4px;
    font-weight: 500;
}
.cotizatie-status.status-achitat_la_zi {
    background-color: var(--success-bg);
    color: var(--success-text);
}
.cotizatie-status.status-restant {
    background-color: var(--error-bg);
    color: var(--error-text);
}
.cotizatie-status.status-protocol_sponsorizare {
    background-color: var(--success-bg);
    color: var(--success-text);
}
.cotizatie-status.status-neplatit {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-color-muted);
}

/* Toggle switch for attendance */
.prezenta-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}
.prezenta-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.prezenta-toggle label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: background 0.25s;
    border-radius: 13px;
}
.prezenta-toggle label:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 2px;
    top: 2px;
    background-color: white;
    transition: transform 0.25s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.prezenta-toggle input:checked + label {
    background-color: #059669;
}
.prezenta-toggle input:checked + label:before {
    transform: translateX(22px);
}


/* ===========================================================
   26. CALENDAR GRUPE (Edit)
   =========================================================== */
.mini-calendar .active-day {
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 4px;
}
.mini-calendar .active-day .day-time {
    font-size: 0.75em;
    font-weight: bold;
    color: var(--white);
    margin-top: 2px;
}
.calendar-edit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}
.day-container {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.day-container.is-checked {
    background: rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}
.day-container label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 0;
}
.day-container input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(1.2);
    accent-color: #2563eb;
}
.day-container input[type="time"] {
    width: 100%;
    max-width: 100px;
    padding: 0.3rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
    background: rgba(255, 255, 255, 0.6);
}
.day-container input[type="time"]:disabled {
    background-color: rgba(0, 0, 0, 0.04);
    cursor: not-allowed;
}


/* ===========================================================
   27. CALENDAR ANUAL MODERN
   =========================================================== */
.calendar-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    padding-top: 1.5rem;
}
.month-card {
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}
.month-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.month-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color-light);
}
.month-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}
.btn-card-edit {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.3rem 0.7rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}
.btn-card-edit:hover {
    border-color: var(--primary-color);
    background: var(--primary-bg-light);
}
.days-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    padding: 0.5rem 0.5rem 0.25rem;
    background: #1e293b;
}
.day-header-cell {
    font-size: 0.8rem;
    font-weight: 600;
    color: #f1f5f9;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 2px;
    padding: 0.5rem;
    flex-grow: 1;
}
.day-cell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 45px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.3);
    transition: background-color 0.2s ease;
}
.day-cell.is-empty {
    background-color: transparent;
}
.day-cell .day-number {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color-light);
}
.day-cell.is-active {
    background: var(--primary-gradient);
    color: var(--white);
    font-weight: bold;
}
.day-cell.is-active .day-number {
    color: var(--white);
    opacity: 0.9;
    font-size: 1rem;
}
.day-cell .day-time {
    font-size: 0.7rem;
    margin-top: 1px;
    opacity: 0.9;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    padding: 1px 4px;
}


/* ===========================================================
   28. MENIU GRUPE SUB CALENDAR (Prezente)
   =========================================================== */
.grupe-menu-container {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color-light);
}
.grupe-menu-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color-light);
}
.grupe-menu-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.grupe-menu-item {
    display: block;
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius-md);
    transition: all 0.15s ease-in-out;
    cursor: pointer;
}
.grupe-menu-item:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: var(--border-color);
    transform: translateX(3px);
}
.grupe-menu-item.active {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: var(--primary-color);
    font-weight: 600;
}
.grupe-menu-item.active:hover {
    background: var(--primary-gradient);
    opacity: 0.9;
    transform: translateX(0);
}
.no-grupe-msg {
    padding: 1rem;
    text-align: center;
    color: var(--text-color-muted);
    font-size: 0.9rem;
    font-style: italic;
}


/* ===========================================================
   29. AVATARE SPORTIVI
   =========================================================== */
.avatar-mini {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background-color: rgba(0, 0, 0, 0.04);
    flex: 0 0 auto;
}
.list-item-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sportiv-prezenta-card .sportiv-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sportiv-prezenta-card .sportiv-text {
    display: flex;
    flex-direction: column;
}
.sportiv-prezenta-card .prezenta-avatar {
    width: 50px;
    height: 50px;
}

/* Photo preview (Create/Edit) */
.sportiv-photo-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0 10px 0;
}
.sportiv-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ===========================================================
   30. WHATSAPP UI HELPERS
   =========================================================== */
.hint {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    opacity: 0.85;
}
.hint.warning {
    opacity: 1;
    color: var(--danger-color);
}
.btn.btn-xs {
    padding: 6px 10px;
    font-size: 0.85rem;
    line-height: 1;
}
.btn-wa-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    vertical-align: middle;
    opacity: 0.8;
    transition: opacity 0.2s;
    text-decoration: none;
}
.btn-wa-inline:hover {
    opacity: 1;
}
.btn-wa-inline svg {
    display: block;
}


/* --- Sidebar overlay --- */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1050;
    transition: opacity 0.3s;
}
.sidebar-overlay.active {
    display: block;
}


/* ===========================================================
   31. RESPONSIVE - min-width: 768px
   =========================================================== */
@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
    .rude-management-section {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===========================================================
   32. RESPONSIVE - min-width: 992px
   =========================================================== */
@media (min-width: 992px) {
    /* === CSS Grid pentru liste profesionale === */
    .professional-list-header,
    .professional-list-item {
        display: grid;
        align-items: center;
        gap: 0;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow: hidden;
    }
    .header-section, .list-item-section {
        padding: 0 0.5rem;
        min-width: 0;
        overflow: hidden;
    }
    .list-item-label { display: none; }
    .list-item-name-row {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    .list-item-section.actions {
        display: flex;
        gap: 4px;
        justify-content: flex-end;
        align-items: center;
        overflow: visible;
    }
    .list-item-section.actions .btn {
        margin: 0;
        font-size: 0.82em;
        padding: 0.3rem 0.6rem;
        border-radius: 6px;
        white-space: nowrap;
    }
    .list-item-section.subscription-info,
    .header-section.subscription-info { text-align: center; }
    .header-section.actions { text-align: right; }

    /* Sportivi: 4 coloane */
    .sportivi-list .professional-list-header,
    .sportivi-list .professional-list-item {
        grid-template-columns: 22% 38% 10% 1fr;
    }

    /* Antrenori: 4 coloane */
    .antrenori-list .professional-list-header,
    .antrenori-list .professional-list-item {
        grid-template-columns: 25% 35% 18% 1fr;
    }

    .detalii-sportiv-layout {
        grid-template-columns: 2fr 1fr;
    }

    .dashboard-main-grid {
        grid-template-columns: 2fr 1fr;
        align-items: stretch;
    }

    .incasare-layout {
        grid-template-columns: 2.5fr 1fr;
    }

    /* Grupe: 4 coloane */
    .grupe-list .professional-list-header,
    .grupe-list .professional-list-item {
        grid-template-columns: 5% 20% 1fr 25%;
    }
    .header-section.id-info,
    .list-item-section.id-info {
        text-align: center;
    }

    /* Suspendați: Nume 20% | Grupă 14% | Dată 14% | Motiv 1fr | Acțiuni 20% */
    .suspendati-list .professional-list-header,
    .suspendati-list .professional-list-item {
        grid-template-columns: 20% 14% 14% 1fr 20%;
    }
    .suspendati-list .list-item-section.description-info {
        white-space: normal;
        overflow: visible;
    }

    /* Abonamente: 7 coloane */
    .abonamente-list .professional-list-header,
    .abonamente-list .professional-list-item {
        grid-template-columns: 4% 14% 1fr 12% 9% 9% 16%;
    }
    .abonamente-list .list-item-section.main-info {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* ===========================================================
   33. RESPONSIVE - max-width: 991px
   =========================================================== */
@media (max-width: 991px) {
    .professional-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-md);
        margin-bottom: 0.75rem;
        background: var(--glass-bg);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
    }
    .professional-list-item:last-child {
        margin-bottom: 0;
    }
    .list-item-section {
        width: 100%;
        padding: 0;
    }
    .list-item-section.actions {
        padding-top: 0.5rem;
        margin-top: 0.5rem;
        border-top: 1px dashed var(--border-color-light);
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .list-item-label {
        font-size: 0.8em;
        color: var(--text-color-muted);
        margin-bottom: 0.25rem;
        display: block;
    }
    .list-item-section.id-info .list-item-data {
        font-weight: bold;
    }
    .list-item-section.details-info {
        padding-top: 0.5rem;
        margin-top: 0.5rem;
        border-top: 1px dashed var(--border-color-light);
    }
    .list-item-section.description-info .list-item-data {
        white-space: normal;
    }
}


/* ===========================================================
   34. RESPONSIVE - max-width: 900px
   =========================================================== */
@media (max-width: 900px) {
    .prezenta-layout-grid { grid-template-columns: 1fr; }
    .prezenta-calendar-col { margin-bottom: 1.5rem; }
    .grupe-menu-list {
        max-height: none;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    .grupe-menu-item {
        flex: 1 1 auto;
        min-width: 120px;
        text-align: center;
    }
    .grupe-menu-item:hover {
        transform: translateY(-2px);
    }
}


/* ===========================================================
   35. MOBILE RESPONSIVE (max-width: 768px)
   =========================================================== */
@media (max-width: 768px) {
    /* Sidebar becomes overlay */
    .sidebar {
        transform: translateX(-100%);
        width: 280px !important;
        z-index: 1100;
        box-shadow: var(--shadow-lg);
    }
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    .sidebar.collapsed {
        transform: translateX(-100%);
        width: 280px !important;
    }

    /* Dark backdrop */
    .sidebar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1050;
        display: none;
    }
    .sidebar-backdrop.active {
        display: block;
    }

    /* Sidebar overlay alias */
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    .sidebar-overlay.active { display: block; }

    /* Main wrapper takes full width */
    .main-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
    }

    /* Content padding */
    .content {
        padding: 1rem;
    }

    /* Touch-friendly targets */
    .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .sidebar nav a {
        min-height: 44px;
    }

    /* Cards full width */
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-summaries-grid {
        grid-template-columns: 1fr;
    }
    .calendar-modern-grid {
        grid-template-columns: 1fr;
    }

    /* Payment indicators responsive */
    .athlete-payments {
        grid-template-columns: repeat(6, 1fr);
    }

    /* Panel header stacking */
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .panel-header-actions {
        margin-left: 0;
        width: 100%;
    }

    /* Fix PWA button in collapsed sidebar */
    .sidebar.collapsed #pwaInstallContainer,
    .sidebar.collapsed #pwaIosContainer {
        display: none !important;
    }
}


/* ===========================================================
   36. RESPONSIVE - max-width: 576px
   =========================================================== */
@media (max-width: 576px) {
    .dashboard-stat-cards {
        grid-template-columns: 1fr;
    }
}


/* ===========================================================
   37. RESPONSIVE - max-width: 480px
   =========================================================== */
@media (max-width: 480px) {
    .athlete-payments {
        grid-template-columns: repeat(4, 1fr);
    }
    .financial-status-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }
}


/* ===========================================================
   38. FALLBACK - NO BACKDROP-FILTER SUPPORT
   =========================================================== */
@supports not (backdrop-filter: blur(1px)) {
    .sidebar {
        background: #0c1a2e;
    }
    .topbar {
        background: #f8fafc;
    }
    .content-panel-card,
    .dashboard-card,
    .section-card,
    .info-card,
    .stat-card,
    .accordion-item,
    .child-card,
    .month-card,
    .sportiv-prezenta-card {
        background: rgba(255, 255, 255, 0.92);
    }
    .modal-overlay {
        background-color: rgba(15, 23, 42, 0.7);
    }
    .modal-content {
        background: rgba(255, 255, 255, 0.98);
    }
    .auth-container {
        background: rgba(255, 255, 255, 0.15);
    }
    .frm input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
    .frm select,
    .frm textarea,
    .form-control-search {
        background: rgba(255, 255, 255, 0.9);
    }
}
