/* --- ZÁKLADNÝ KONTAJNER --- */
.boccia-calendar {
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1e293b;
}

/* --- LAYOUT: Kalendár vľavo, Sidebar vpravo --- */
.calendar-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 25px;
    margin: 20px 0;
    align-items: start;
}

@media (max-width: 1100px) {
    .calendar-layout {
        grid-template-columns: 1fr;
    }
}

/* --- FULLCALENDAR ÚPRAVY --- */
#calendar {
    background: #ffffff !important;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

/* FIX PRE JEDNODŇOVÉ EVENTY A ZOBRAZENIE CELÉHO NÁZVU */
.fc-daygrid-event {
    white-space: normal !important; /* Povolí zalomenie textu */
    height: auto !important;       /* Roztiahne event podľa textu */
    min-height: 24px;
    display: block !important;
    cursor: pointer;
}

.fc-v-event, .fc-h-event {
    padding: 4px 8px !important;
    border-radius: 6px !important;
    border: none !important;
    margin: 2px 0 !important;
}

.fc-event-title {
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    text-align: center !important; /* Vycentrovanie názvu v mriežke */
    display: block !important;
    padding: 1px 0;
    line-height: 1.2;
    overflow: visible !important;
}

/* BIELA HLAVIČKA DNÍ (Pondelok - Nedeľa) */
.fc .fc-col-header, 
.fc .fc-col-header-cell, 
.fc .fc-col-header-cell-cushion,
.fc-theme-standard .fc-scrollgrid-section-header th {
    background-color: #ffffff !important;
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

.fc .fc-col-header-cell-cushion {
    color: #0f172a !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    padding: 12px 0 !important;
    display: block !important;
}

/* OSTATNÉ PRVKY KALENDÁRA */
.fc .fc-toolbar-title {
    font-size: 1.4rem !important;
    font-weight: 800;
    text-transform: uppercase;
    color: #0f172a;
}

.fc .fc-button-primary {
    background-color: #f1f5f9 !important;
    border: none !important;
    color: #1e293b !important;
    font-weight: 600 !important;
    text-transform: capitalize !important;
}

.fc .fc-button-primary:hover {
    background-color: #e2e8f0 !important;
}

.fc .fc-button-active {
    background-color: #1e293b !important;
    color: #ffffff !important;
}

.fc .fc-daygrid-day-number {
    color: #475569 !important;
    text-decoration: none !important;
    font-weight: 600;
    padding: 8px !important;
}

/* --- SIDEBAR (Presne tvoj pôvodný kód) --- */
.list-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.list-header {
    padding: 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.header-title-main {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
}

.event-stats {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 4px;
}

.list-container {
    max-height: 600px;
    overflow-y: auto;
    padding: 10px;
}

.sidebar-event-item {
    padding: 15px;
    margin-bottom: 10px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-event-item:hover {
    transform: translateX(5px);
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sidebar-event-item .event-date {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 4px;
}

.sidebar-event-item .event-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.sidebar-event-item .event-location {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 6px;
}

/* --- MODÁLNE OKNO --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 550px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#modal-accent-bar {
    height: 8px;
    width: 100%;
}

.modal-body {
    padding: 30px;
}

.modal-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

#modal-label {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    color: #ffffff;
    text-transform: uppercase;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
}

#modal-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

#modal-poznamka {
    font-size: 1rem;
    line-height: 1.6;
    color: #334155;
}

/* --- DODATOČNÉ ŠTÝLY PRE DETAILY V MODÁLI --- */
.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
}

.info-item .info-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.info-item .info-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.poznamka-wrapper {
    padding: 0 5px;
}

.poznamka-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 10px;
}