@import '_content/OneByte.KidsGardenManagement.Shared.UI/OneByte.KidsGardenManagement.Shared.UI.wicsjunwoc.bundle.scp.css';

/* /Layout/MainLayout.razor.rz.scp.css */
/* Cleaned up unused styles. MudBlazor handles the layout. */
/* /Pages/Home.razor.rz.scp.css */
/* ═══════════════════════════════════════════════════════ */
/* HEADER & REFRESH BUTTON                                 */
/* ═══════════════════════════════════════════════════════ */
.refresh-btn[b-jyv1qtxyfg] {
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
}

.refresh-btn:hover[b-jyv1qtxyfg] {
    background: rgba(37, 99, 235, 0.08) !important;
    border-color: #2563EB !important;
    color: #2563EB !important;
    transform: rotate(45deg);
}

/* ═══════════════════════════════════════════════════════ */
/* SECTION 1 — HERO BANNER MODERNE KIDYSPACE              */
/* ═══════════════════════════════════════════════════════ */
.ks-hero-banner[b-jyv1qtxyfg] {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 50%, #E0F2FE 100%);
    border-radius: 20px;
    padding: 30px 36px;
    position: relative;
    overflow: hidden;
    color: #0F172A;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.08), 0 8px 10px -6px rgba(37, 99, 235, 0.04);
    border: 1px solid #BFDBFE;
}

.ks-hero-banner[b-jyv1qtxyfg]::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(147, 197, 253, 0.40) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

.ks-hero-content[b-jyv1qtxyfg] {
    flex: 1;
    position: relative;
    z-index: 2;
}

.ks-hero-badge[b-jyv1qtxyfg] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFFFFF;
    border: 1px solid #BFDBFE;
    color: #1E40AF;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 9999px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.06);
}

.ks-hero-title[b-jyv1qtxyfg] {
    font-size: 1.85rem;
    font-weight: 800;
    color: #1E3A8A;
    letter-spacing: -0.4px;
    line-height: 1.2;
    margin: 0 0 8px 0;
}

.ks-hero-desc[b-jyv1qtxyfg] {
    font-size: 0.94rem;
    color: #334155;
    line-height: 1.5;
    max-width: 650px;
    margin: 0;
}

.ks-hero-actions[b-jyv1qtxyfg] {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.ks-hero-btn-primary[b-jyv1qtxyfg], .ks-hero-btn-white[b-jyv1qtxyfg] {
    background: #2563EB !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 0.86rem !important;
    border-radius: 12px !important;
    text-transform: none !important;
    padding: 8px 20px !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28) !important;
    transition: all 0.2s ease !important;
}

.ks-hero-btn-primary:hover[b-jyv1qtxyfg], .ks-hero-btn-white:hover[b-jyv1qtxyfg] {
    background: #1D4ED8 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35) !important;
}

.ks-hero-btn-outlined[b-jyv1qtxyfg], .ks-hero-btn-glass[b-jyv1qtxyfg] {
    background: #FFFFFF !important;
    color: #1E40AF !important;
    border: 1px solid #BFDBFE !important;
    font-weight: 600 !important;
    font-size: 0.86rem !important;
    border-radius: 12px !important;
    text-transform: none !important;
    padding: 8px 20px !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.06) !important;
    transition: all 0.2s ease !important;
}

.ks-hero-btn-outlined:hover[b-jyv1qtxyfg], .ks-hero-btn-glass:hover[b-jyv1qtxyfg] {
    background: #F0F9FF !important;
    border-color: #2563EB !important;
    color: #2563EB !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15) !important;
}

.ks-hero-btn-link[b-jyv1qtxyfg] {
    color: #1E40AF !important;
    font-weight: 600 !important;
    font-size: 0.86rem !important;
    border-radius: 12px !important;
    text-transform: none !important;
    padding: 8px 16px !important;
    transition: all 0.2s ease !important;
}

.ks-hero-btn-link:hover[b-jyv1qtxyfg] {
    color: #2563EB !important;
    background: rgba(37, 99, 235, 0.08) !important;
}

.ks-hero-visual[b-jyv1qtxyfg] {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.ks-hero-card-preview[b-jyv1qtxyfg] {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid #BFDBFE;
    border-radius: 20px;
    padding: 14px 18px;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

.ks-hero-mascot[b-jyv1qtxyfg] {
    width: 68px;
    height: 68px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.12));
    transition: transform 0.3s ease;
}

.ks-hero-mascot:hover[b-jyv1qtxyfg] {
    transform: scale(1.08) rotate(5deg);
}

.ks-hero-garden-frame[b-jyv1qtxyfg] {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    width: 170px;
    height: 100px;
}

.ks-hero-garden-img[b-jyv1qtxyfg] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ks-hero-garden-tag[b-jyv1qtxyfg] {
    position: absolute;
    bottom: 6px;
    left: 6px;
    right: 6px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ═══════════════════════════════════════════════════════ */
/* SECTION 2 — HUB DES MODULES DE GESTION (MODERNE)       */
/* ═══════════════════════════════════════════════════════ */
.ks-section-title[b-jyv1qtxyfg] {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.2px;
}

.ks-section-hint[b-jyv1qtxyfg] {
    font-size: 0.82rem;
    font-weight: 500;
    color: #64748B;
}

.ks-modules-grid[b-jyv1qtxyfg] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.ks-mod-card[b-jyv1qtxyfg] {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.025);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.ks-mod-card:hover[b-jyv1qtxyfg] {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px -4px rgba(37, 99, 235, 0.10);
}

.ks-mod-red:hover[b-jyv1qtxyfg] {
    border-color: rgba(225, 29, 72, 0.35);
    box-shadow: 0 14px 28px -4px rgba(225, 29, 72, 0.10);
}

.ks-mod-purple:hover[b-jyv1qtxyfg] {
    border-color: rgba(124, 58, 237, 0.35);
    box-shadow: 0 14px 28px -4px rgba(124, 58, 237, 0.10);
}

.ks-mod-green:hover[b-jyv1qtxyfg] {
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 0 14px 28px -4px rgba(16, 185, 129, 0.10);
}

.ks-mod-amber:hover[b-jyv1qtxyfg] {
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: 0 14px 28px -4px rgba(245, 158, 11, 0.10);
}

.ks-mod-blue:hover[b-jyv1qtxyfg] {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 14px 28px -4px rgba(37, 99, 235, 0.10);
}

.ks-mod-top[b-jyv1qtxyfg] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ks-mod-icon-wrap[b-jyv1qtxyfg] {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.ks-mod-card:hover .ks-mod-icon-wrap[b-jyv1qtxyfg] {
    transform: scale(1.08) rotate(3deg);
}

.ks-mod-icon-wrap.red[b-jyv1qtxyfg] { background: #FFF1F2; color: #E11D48; }
.ks-mod-icon-wrap.purple[b-jyv1qtxyfg] { background: #F5F3FF; color: #7C3AED; }
.ks-mod-icon-wrap.green[b-jyv1qtxyfg] { background: #ECFDF5; color: #059669; }
.ks-mod-icon-wrap.amber[b-jyv1qtxyfg] { background: #FFFBEB; color: #D97706; }
.ks-mod-icon-wrap.blue[b-jyv1qtxyfg] { background: #EFF6FF; color: #2563EB; }

.ks-mod-tag[b-jyv1qtxyfg] {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 9999px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.ks-mod-tag.red[b-jyv1qtxyfg] { background: #FFF1F2; color: #E11D48; border: 1px solid #FECDD3; }
.ks-mod-tag.purple[b-jyv1qtxyfg] { background: #F5F3FF; color: #7C3AED; border: 1px solid #DDD6FE; }
.ks-mod-tag.green[b-jyv1qtxyfg] { background: #ECFDF5; color: #059669; border: 1px solid #A7F3D0; }
.ks-mod-tag.amber[b-jyv1qtxyfg] { background: #FFFBEB; color: #D97706; border: 1px solid #FDE68A; }
.ks-mod-tag.blue[b-jyv1qtxyfg] { background: #EFF6FF; color: #2563EB; border: 1px solid #BFDBFE; }

.ks-mod-body[b-jyv1qtxyfg] {
    flex-grow: 1;
}

.ks-mod-title[b-jyv1qtxyfg] {
    font-size: 1.02rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.ks-mod-desc[b-jyv1qtxyfg] {
    font-size: 0.78rem;
    color: #64748B;
    margin: 0 0 14px 0;
    line-height: 1.4;
}

.ks-mod-links[b-jyv1qtxyfg] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid #F1F5F9;
    padding-top: 10px;
}

.ks-mod-link[b-jyv1qtxyfg] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.80rem;
    font-weight: 600;
    color: #475569;
    padding: 4px 6px;
    border-radius: 8px;
    transition: all 0.15s ease;
    cursor: pointer;
}

.ks-mod-link:hover[b-jyv1qtxyfg] {
    background: #F8FAFC;
    color: #2563EB;
    transform: translateX(3px);
}

/* ═══════════════════════════════════════════════════════ */
/* OPERATIONAL PANELS (Cantine, Séances, Événements)       */
/* ═══════════════════════════════════════════════════════ */
.op-quick-card[b-jyv1qtxyfg] {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.op-quick-card:hover[b-jyv1qtxyfg] {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.op-card[b-jyv1qtxyfg] {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 6px 16px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 440px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.op-card:hover[b-jyv1qtxyfg] {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.25);
}

.op-banner-wrapper[b-jyv1qtxyfg] {
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    position: relative;
}

.op-banner[b-jyv1qtxyfg] {
    height: 135px;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 14px;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.op-card:hover .op-banner[b-jyv1qtxyfg] {
    transform: scale(1.05);
}

.op-banner[b-jyv1qtxyfg]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.05) 40%, rgba(15, 23, 42, 0.65) 100%);
    pointer-events: none;
}

.op-banner-canteen[b-jyv1qtxyfg] {
    background-image: url('/images/card_canteen.jpg');
}

.op-banner-classroom[b-jyv1qtxyfg] {
    background-image: url('/images/card_classroom.jpg');
}

.op-banner-events[b-jyv1qtxyfg] {
    background-image: url('/images/card_events.jpg');
}

.op-banner-top-tag[b-jyv1qtxyfg] {
    position: relative;
    z-index: 2;
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(15, 23, 42, 0.60);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.op-banner-badge[b-jyv1qtxyfg] {
    position: relative;
    z-index: 2;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #0F172A;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.op-card-body[b-jyv1qtxyfg] {
    padding: 18px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.op-header[b-jyv1qtxyfg] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.op-header-icon[b-jyv1qtxyfg] {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.op-title[b-jyv1qtxyfg] {
    font-size: 1.02rem;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.2px;
}

.op-subtitle[b-jyv1qtxyfg] {
    font-size: 0.76rem;
    font-weight: 500;
    color: #94A3B8;
    display: block;
    margin-top: 2px;
}

/* Cantine List */
.canteen-list[b-jyv1qtxyfg] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.canteen-item[b-jyv1qtxyfg] {
    background: #F8FAFC;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 14px;
    padding: 12px 14px;
    transition: all 0.2s ease;
}

.canteen-item:hover[b-jyv1qtxyfg] {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
}

.canteen-badge[b-jyv1qtxyfg] {
    font-size: 0.74rem;
    font-weight: 800;
    color: #059669;
    background: rgba(16, 185, 129, 0.10);
    padding: 2px 8px;
    border-radius: 6px;
}

.canteen-dish[b-jyv1qtxyfg] {
    font-size: 0.84rem;
    color: #334155;
    line-height: 1.45;
    margin: 6px 0 0 0;
}

/* Sessions List */
.sessions-list[b-jyv1qtxyfg] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.session-item[b-jyv1qtxyfg] {
    padding: 10px 14px;
    border-radius: 12px;
    background: #F8FAFC;
    border-left: 3.5px solid transparent;
    transition: all 0.2s ease;
}

.session-live[b-jyv1qtxyfg] {
    border-left-color: #10B981;
    background: rgba(16, 185, 129, 0.04);
}

.session-done[b-jyv1qtxyfg] {
    border-left-color: #94A3B8;
    background: rgba(148, 163, 184, 0.04);
}

.session-next[b-jyv1qtxyfg] {
    border-left-color: #3B82F6;
}

.session-class[b-jyv1qtxyfg] {
    font-weight: 700;
    font-size: 0.86rem;
    color: #1E293B;
}

.session-status[b-jyv1qtxyfg] {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-live[b-jyv1qtxyfg] {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.status-done[b-jyv1qtxyfg] {
    background: rgba(148, 163, 184, 0.12);
    color: #64748B;
}

.status-next[b-jyv1qtxyfg] {
    background: rgba(59, 130, 246, 0.10);
    color: #2563EB;
}

.session-meta-row[b-jyv1qtxyfg] {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.session-meta-pill[b-jyv1qtxyfg] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.74rem;
    color: #64748B;
    font-weight: 500;
}

.live-pulse-dot[b-jyv1qtxyfg] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
    animation: pulse-dot-b-jyv1qtxyfg 1.5s infinite ease-in-out;
}

@keyframes pulse-dot-b-jyv1qtxyfg {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

/* Events List */
.events-list[b-jyv1qtxyfg] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.event-item[b-jyv1qtxyfg] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #F8FAFC;
    border: 1px solid rgba(226, 232, 240, 0.7);
    transition: all 0.2s ease;
}

.event-item:hover[b-jyv1qtxyfg] {
    background: #ffffff;
    border-color: rgba(236, 72, 153, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.event-date-badge[b-jyv1qtxyfg] {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(236, 72, 153, 0.08);
    color: #EC4899;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.event-date-num[b-jyv1qtxyfg] {
    font-weight: 800;
    font-size: 0.90rem;
    line-height: 1;
}

.event-date-mon[b-jyv1qtxyfg] {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
}

.event-name[b-jyv1qtxyfg] {
    font-weight: 700;
    font-size: 0.86rem;
    color: #0F172A;
    display: block;
}

.event-tag[b-jyv1qtxyfg] {
    font-size: 0.72rem;
    font-weight: 600;
    color: #EC4899;
}

.event-status[b-jyv1qtxyfg] {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.08);
    color: #6366F1;
}

/* ═══════════════════════════════════════════════════════ */
/* EMPTY STATES & UTILITIES                                */
/* ═══════════════════════════════════════════════════════ */
.empty-box[b-jyv1qtxyfg] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 16px;
}

/* ═══════════════════════════════════════════════════════ */
/* RESPONSIVE LAYOUT                                       */
/* ═══════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .ks-modules-grid[b-jyv1qtxyfg] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .ks-modules-grid[b-jyv1qtxyfg] {
        grid-template-columns: 1fr;
    }
}
