.imageView-containers{
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 99999;

}
/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 99999;
}
.lightbox.active {
    display: flex;
}
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    transform: scale(0.8);
}
.lightbox img.show {
    opacity: 1;
    transform: scale(1);
}
/* Zoom efekti */
.lightbox img:hover {
    transform: scale(1.3);
    cursor: zoom-out;
}
.lightbox .close,
.lightbox .prev,
.lightbox .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
    user-select: none;
    font-weight: bold;
}
.lightbox .close {
    top: 30px;
    right: 40px;
    font-size: 35px;
    transform: none;
}
.lightbox .prev { left: 50px; }
.lightbox .next { right: 50px; }
.pdf-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    display: none;
    z-index: 9999;
}

/* ========calandar */
.app-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
    flex-direction: column;
}
.calendar-container {
    flex: 1;
    min-width: 300px;
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header h2 {
    font-size: 1.8rem;
    color: #2c3e50;
}

.nav-buttons button {
    background-color: #f0f3f8;
    border: none;
    width: 100px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    color: #555;
}

.nav-buttons button:hover {
    background-color: #6a11cb;
    color: white;
}

.calendar {
    width: 100%;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 10px;
    text-align: center;
    font-weight: 600;
    color: #6a11cb;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.day {
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 5px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    border: 1px solid #f0f0f0;
}

.day:hover {
    background-color: #f0f3f8;
    transform: translateY(-2px);
}

.day-number {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.today {
    background-color: #e1f0ff;
    border-color: #2575fc;
}

.other-month {
    color: #aaa;
    background-color: #f9f9f9;
}

.has-event {
    border-color: #ff9f43;
    background-color: #fff9f0;
}

.event-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #6a11cb;
    margin-top: 3px;
}

.event-indicator.multiple {
    display: flex;
    gap: 3px;
}

.event-indicator.multiple span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #6a11cb;
}

.event-details-container {
    flex: 1;
    min-width: 300px;
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.event-details-container h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.selected-date {
    font-size: 1.2rem;
    color: #6a11cb;
    margin-bottom: 20px;
    font-weight: 600;
}

.events-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.event-item {
    padding: 18px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 4px solid #6a11cb;
    background-color: #f9f9ff;
    transition: all 0.3s;
}

.event-item:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.event-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

.event-time {
    color: #6a11cb;
    font-weight: 500;
    margin-bottom: 5px;
}

.event-category {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 8px;
    background-color: #e1f0ff;
    color: #2575fc;
}

.event-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.no-events {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 30px;
}

.event-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2c3e50;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.event-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #2c3e50;
}

.day:hover .event-tooltip {
    opacity: 1;
    visibility: visible;
}

footer {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.loading {
    text-align: center;
    padding: 30px;
    color: #666;
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }

    .calendar-container, .event-details-container {
        width: 100%;
    }

    .day {
        height: 60px;
        padding: 5px;
    }
}