/* Javasolt globális beállítások

* {
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    background: #f0f0f0;
    padding: 20px;
}
 */

.LTC_calendar-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.LTC_calendar {
    display: grid;
    grid-template-columns: 60px repeat(7, 1fr);
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    user-select: none;
}
.LTC_time-column {
    border-right: 1px solid #eee;
    position: relative;
    background: #fafafa;
}
.LTC_time-label {
    position: absolute;
    left: 0;
    font-size: 11px;
    color: #666;
    width: 100%;
    text-align: center;
    height: 30px;
    line-height: 30px;
    transform: translateY(-50%);
}
.LTC_day {
    border-left: 1px solid #eee;
    position: relative;
    overflow: hidden;
}
.LTC_day:first-child {
    border-left: none;
}
.LTC_day-label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: rgba(73, 117, 139, 0.5);
    color: white;
    padding: 5px;
    font-size: 11px;
    text-align: center;
    white-space: pre-line;
    box-sizing: border-box;
    z-index: 10;
}

.LTC_day-label span {
    font-weight:bold;
    font-size: 13px;
}

.LTC_event {
    position: absolute;
    left: 5%;
    width: 90%;
    color: white;
    font-size: 12px;
    border-radius: 6px;
    padding: 4px 6px;
    box-sizing: border-box;
    overflow: hidden;
    cursor: move;
    z-index: 5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: opacity 0.2s, border 0.2s; /* Finom átmenet a hoverhez */
}


@keyframes move-orb-diagonal {
    0% {
        /* Az animáció kezdetén a gömb a dobozon kívül, a bal felső saroknál van */
        opacity: 0.3;
    }
    100% {
        /* A végére átér a jobb alsó sarkon túlra és eltűnik */
        opacity: 0.6;
    }
}

/* A fénygömböt létrehozó pszeudo-elem, frissített kezdőpozícióval */
.LTC_event::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.35) 0%,
        rgba(255, 255, 255, 0.6) 70%
    );
    opacity: 0.3;
    border-radius: 50%;
    /* A kezdőpozíció megegyezik az animáció 0%-os állapotával */
    transform: translate(-120px, -100px);
    /* A pointer-events none fontos, hogy az alatta lévő elem kattintható maradjon */
    pointer-events: none;
}

/* Hover-re elindítjuk az új, átlós animációt */
.LTC_event:hover::after {
    /* Az animáció neve, hossza, és hogy ismétlődjön */
    animation: move-orb-diagonal 1s ease-in-out;
    animation-fill-mode: forwards;
}


.LTC_event.dragging {
    opacity: 0.4;
    border: 2px dashed #333;
}
@keyframes pop-in {
    from {
        transform: scale(0.9);
        opacity: 0.5;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
.LTC_event.event-just-dropped {
    animation: pop-in 0.25s ease-out;
}
.time-grid {
    position: absolute;
    top: 40px;
    bottom: 0;
    left: 0;
    right: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 29px,
        #f0f0f0 30px
    );
    z-index: 1;
}
/* ÚJ: Az események alján lévő átméretező sáv */
.resize-handle {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px; /* Egy kis láthatatlan, de elkapható terület */
    cursor: ns-resize; /* Észak-dél, azaz függőleges átméretező kurzor */
    z-index: 6; /* Az eseményen belül, de a rács felett */
}

.resize-handle:hover {

    border-bottom:4px solid rgba(255,255,255,0.5);
}

/* ÚJ: Írásvédett események stílusa */
.LTC_event.event-readonly {
    cursor: not-allowed; /* A kurzor ne jelezzen mozgathatóságot */
    background: #EEE !important;
    color: #888 !important;
    opacity: 0.7;   /* Vizuálisan jelzi, hogy "inaktív" */
    border:1px dashed #888;
}


/*
.LTC_event.event-readonly:before {
    position: absolute;
    content: ' \00D7';
    top:50%;
    left:0;
    margin-top: -35px;
    width:100%;
    height:70px;
    text-align:center;
    font-size:60px;
    color:rgba(255,255,255,0.9);
    text-shadow: 0px 0px 2px rgba(0,0,0,0.5);
    z-index:100;
}
*/

.LTC_event.event-readonly:hover {
    opacity: 1;
}

.LTC_weekLabel{
    font-size: 18px;
    font-weight: bold;
}

.utemezesTorles{
    position: absolute;
    bottom:5px;
    right: 5px;
    visibility: hidden;
    display: none;
}

.LTC_event:hover .utemezesTorles{
    visibility: visible;
    display: block;
}