@charset "UTF-8";

:root {
    --conf-font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --conf-bg-white: #ffffff;
    --conf-border-light: #eeeeee;
    --conf-border-grid: #f0f0f0;
    
    /* --- Room header --- */
    --conf-header-bg: #2c3e50; /* Ha a --color-primary-dark nem elérhető, legyen egy fallback */
    --conf-header-text: #ffffff;
    --conf-header-height: 54px;

    /* --- Szekció box (Session) --- */
    --conf-section-bg: #deebf7;
    --conf-section-text: #002060;

    /* --- Szünet box (Break) --- */
    --conf-break-bg: #eeeeee;
    --conf-break-text: #757575;

    /* --- Méretek --- */
    --conf-timeline-width: 60px;
    --conf-box-gap-y: 4px;
    --conf-box-radius: 4px;
}

/* --- Alap konténer --- */
.conf-container { font-family: var(--conf-font-family); }

.program-grid-wrapper { 
    overflow-x: auto; 
    background: var(--conf-bg-white); 
    padding-top: 0;
}

.program-grid { 
    display: flex; 
    position: relative; 
    gap: 0; /* A termek közötti gap-et a room-column margin-ja adja */
}

/* --- Idővonal (Timeline) --- */
.timeline-col { 
    width: var(--conf-timeline-width); 
    flex-shrink: 0;
    z-index: 10;
		margin-top: 0;
}

.timeline-body {
		position: relative;
    /* Pontosan akkora eltolás, mint a fejléc magassága */
    margin-top: var(--conf-header-height, 54px); 
    padding-top: 0 !important;		
}

.timeline-slot { 
    display: flex;
    justify-content: flex-end;
    padding-right: 8px;
    color: var(--conf-break-text);
    font-size: 0.75rem;
    line-height: 1;
}

.timeline-slot span { 
	margin-top: -8px;
	z-index: 4;
}


/* Timeline Ikonok (Szünetek) */
.timeline-break-slot {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
		background-color: rgba(0, 0, 0, 0.05); 
/*    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);*/
		border-top: 1px solid var(--conf-bg-white);
		border-bottom: 1px solid var(--conf-bg-white);
}

.timeline-break-slot i {
    font-size: 1rem;
		color: var(--conf-header-bg);
		background: transparent !important; 
    opacity: 0.8;
		pointer-events: auto; /* Csak az ikon triggerelje a tooltipet */
    cursor: help;         /* Jelzi a felhasználónak, hogy van ott infó */
    display: block;       /* Hogy a mérete stabil legyen */
    transition: transform 0.2s;
		z-index: 6;
}

.timeline-break-slot:hover i {
    transform: scale(1.2);
    opacity: 1;
}

/* --- Termek (Columns) --- */
.room-column { 
    flex: 1 1 0;
    min-width: 200px;
    position: relative; 
    margin-right: 2px; /* Ez adja a rést a termek között a body-ban */
}

.room-column:last-child { margin-right: 0; }

.room-header { 
    height: var(--conf-header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold; 
    background-color: var(--conf-header-bg); 
    color: var(--conf-header-text);
    border-bottom: 2px solid var(--conf-bg-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
    padding: 0 4px;
    box-sizing: border-box;
}

.room-body { position: relative; }



/* --- Program Boxok --- */
.program-box, .section-box, .full-width-box, .custom-box {
	border: 1px solid var(--conf-bg-white);
}

.program-box {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    /*border-radius: var(--conf-box-radius);*/
    padding: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    cursor: pointer;
    box-sizing: border-box;
    transition: box-shadow 0.2s;
    /*box-shadow: 0 0 0 2px var(--conf-bg-white);*/ /* Fehér keret szimulálása */
		
}

.section-box { 
    background-color: var(--conf-section-bg); 
    color: var(--conf-section-text); 
    z-index: 10;
		/*border: none;*/ /* A keretet a box-shadow adja! */
}

.section-box:hover { 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
		background-color: var(--conf-header-bg) !important; /* A sötét fejléc színét kapja */
    color: var(--conf-bg-white) !important;
    z-index: 100;
    filter: brightness(0.95);
}

.full-width-box {
    left: var(--conf-timeline-width) !important;
    right: 0 !important;
    width: auto !important;
    z-index: 50;
    margin-top: var(--conf-header-height);
    background-color: var(--conf-section-bg);
    color: var(--conf-section-text);
    /*border: none;*/ /* A keretet a box-shadow adja! */
}

.break-box { 
    background-color: var(--conf-break-bg); 
    color: var(--conf-break-text); 
    z-index: 5;
    cursor: default;
    background-image: linear-gradient(
        45deg, 
        rgba(0, 0, 0, 0.03) 25%, transparent 25%, transparent 50%, 
        rgba(0, 0, 0, 0.03) 50%, rgba(0, 0, 0, 0.03) 75%, transparent 75%, transparent
    );
    background-size: 10px 10px;
		/*box-shadow: 0 0 0 2px var(--conf-bg-white);*/
}


/* Plenáris / Teljes szélességű dobozok alaphelyzetben */
.full-width-box.custom-box {
    position: absolute;
    z-index: 50; /* Alapból a termek felett, de a modalok alatt */
    cursor: pointer;
    pointer-events: auto !important; /* Biztosítjuk, hogy érzékelje az egeret */
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.1s;
		width: calc(100% - var(--conf-timeline-width) - 2px) !important;
}


/* A HOVER ÁLLAPOT */
.full-width-box.custom-box:hover {
    z-index: 200 !important; /* Minden más programdoboz fölé ugrik */
    background-color: var(--conf-header-bg) !important; /* A sötét fejléc színét kapja */
    color: var(--conf-bg-white) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    filter: brightness(1.1);
}

/* Ha a szöveg nem látszik hovernél, kényszerítsük az ikonok/feliratok színét is */
.full-width-box.custom-box:hover .box-title,
.full-width-box.custom-box:hover .box-time {
    color: var(--conf-bg-white) !important;
}



/* Apró dobozok kezelése */
.box-tiny .box-title { display: none; }
.box-tiny .box-time { font-size: 0.65rem; margin-bottom: 0; }

.box-time { font-size: 0.7rem; font-weight: bold; margin-bottom: 2px; }
.box-title { font-weight: bold; font-size: 0.75rem; line-height: 1.1; }




/* --- Day Selection (Nav) --- */
.nav-pills .nav-link {
    background-color: #efefef;
    color: #333;
    margin-right: 10px;
    font-size: 0.85em;
    border-radius: 4px;
}

.nav-pills .nav-link.active {
    background-color: var(--conf-header-bg) !important;
    color: white !important;
}




/* --- Kereső --- */
.search-wrapper { position: relative; z-index: 1050; }
#searchResultList {
    top: 42px;
    z-index: 1100 !important;
    max-height: 350px;
    overflow-y: auto;
    background: white;
}




/* --- Modal --- */
.modal-header { padding: 20px; display: block; position: relative; }
.custom-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1060;
}