/* Calendar Container */
.CalendarContainer {
    display: flex;
    flex-direction: column;
    width: calc(100% - 4 * var(--innerPadding));
    height: 100%;
    background-color: #1a1a1a;
    padding: 24px;
    overflow-y: auto;
    box-sizing: border-box;
}

/* Calendar Header */
.CalendarHeader {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #bd913f;
    display: none;
}

.CalendarTitle {
    margin: 0;
    font-size: 28px;
    color: #ffffff;
    font-weight: 600;
}

/* Calendar Events Container */
.CalendarEventsContainer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

/* Loading State */
.CalendarLoading {
    text-align: center;
    padding: 40px;
    color: #999999;
    font-size: 16px;
}

.CalendarNoEvents {
    text-align: center;
    padding: 40px;
    color: #999999;
    font-size: 16px;
    background-color: #2a2a2a;
    border-radius: 8px;
}

/* Calendar Entry */
.CalendarEntryInModule {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 16px;
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s ease;
    border-left: 4px solid #bd913f;
    align-items: center;
}

.CalendarEntryInModule:hover {
    background-color: #333333;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.CalendarEntryInModule[data-event-type="meeting"] {
    border-left-color: #4a90e2;
}

.CalendarEntryInModule[data-event-type="free"] {
    border-left-color: #7ed321;
}

/* Heutige Termine - spezielle Kennzeichnung */
.CalendarEntryInModule[data-is-today="true"] {
    background-color: #3d1a1a;
    border-left-color: #e74c3c;
    border-left-width: 5px;
       /* animation: todayEventPulse 3s ease-in-out infinite;*/

}

.CalendarEntryInModule[data-is-today="true"]:hover {
    background-color: #4d2020;
}

/* Heutige Termine - spezielle Kennzeichnung */
.CalendarEntryInModule[data-is-tomorrow="true"] {
    background-color: #3d1a1a;
    border-left-color: #e74c3c;
    border-left-width: 5px;

}

.CalendarEntryInModule[data-is-tomorrow="true"]:hover {
    background-color: #4d2020;
}

/* Heutige Termine - spezielle Kennzeichnung */
.CalendarEntryInModule[data-is-running="true"] {
    background-color: #3d1a1a;
    border-left-color: #81cf16;
    border-left-width: 5px;
   /* animation: runningEventFade 3s ease-in-out infinite;*/
}

.CalendarEntryInModule[data-is-running="true"]:hover {
    background-color: #4d2020;
}

/* Date Badge */
.CalendarEntryDateBadge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #bd913f;
    border-radius: 8px;
    padding: 12px;
    min-width: 64px;
    height: 64px;
}

/* Date Badge für heutige Termine */
.CalendarEntryInModule[data-is-today="true"] .CalendarEntryDateBadge {
    background-color: #e74c3c;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

.CalendarEntryDay {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    line-height: 1;
}

.CalendarEntryMonth {
    font-size: 12px;
    color: #ffffff;
    text-transform: uppercase;
    margin-top: 4px;
}

/* Entry Content */
.CalendarEntryContent {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.CalendarEntryTitle {
    margin: 0;
    font-size: 18px;
    color: #ffffff;
    font-weight: 600;
}

.CalendarEntryTime {
    font-size: 14px;
    color: #bd913f;
    font-weight: 500;
}

.CalendarEntryLocation {
    font-size: 14px;
    color: #999999;
    display: flex;
    align-items: center;
    gap: 4px;
}

.CalendarEntryDescription {
    font-size: 14px;
    color: #cccccc;
    line-height: 1.4;
    margin-top: 4px;
    max-width: 600px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Entry Actions */
.CalendarEntryActions {
    display: flex;
    gap: 8px;
}

.CalendarEntryButton {
    padding: 8px 16px;
    background-color: #bd913f;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.CalendarEntryButton:hover {
    background-color: #d4a449;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(189, 145, 63, 0.3);
}

.CalendarEntryButton:active {
    transform: translateY(0);
}

/* Steering Container */
.CalendarSteeringContainer {
    display: flex;
    gap: 12px;
    padding: 16px;
    background-color: #2a2a2a;
    border-radius: 8px;
    justify-content: flex-end;
}

.CalendarRefreshButton {
    padding: 10px 20px;
    background-color: #bd913f;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.CalendarRefreshButton:hover {
    background-color: #d4a449;
    box-shadow: 0 2px 8px rgba(189, 145, 63, 0.3);
}

.CalendarRefreshButton:active {
    transform: scale(0.98);
}

/* Responsive Design */
@media (max-width: 768px) {
    .CalendarContainer {
        padding: 16px;
    }

    .CalendarEntryInModule {
        grid-template-columns: 60px 1fr;
        gap: 12px;
    }

    .CalendarEntryDateBadge {
        min-width: 52px;
        height: 52px;
        padding: 8px;
    }

    .CalendarEntryDay {
        font-size: 20px;
    }

    .CalendarEntryActions {
        grid-column: 1 / -1;
        margin-top: 8px;
        justify-content: flex-end;
    }

    .CalendarTitle {
        font-size: 24px;
    }
}

/* Scrollbar Styling */
.CalendarContainer::-webkit-scrollbar {
    width: 8px;
}

.CalendarContainer::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.CalendarContainer::-webkit-scrollbar-thumb {
    background: #bd913f;
    border-radius: 4px;
}

.CalendarContainer::-webkit-scrollbar-thumb:hover {
    background: #d4a449;
}

/* CalendarEventCard Styles für das Widget */
.CalendarEventCard {
    background-color: #3a3a3a;
    border-radius: 4px;
    padding: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 5px;
}

.CalendarEventCard:hover {
    background-color: #4a4a4a !important;
}

.CalendarEventCard--today {
    background-color: #3d1a1a;
    border-left: 4px solid #e74c3c;
   /* animation: todayEventPulse 3s ease-in-out infinite;*/
}

.CalendarEventCard--tomorrow {
    background-color: #3d1a1a;
    border-left: 4px solid #e74c3c;
}


.CalendarEventCard--today:hover {
}

/* Laufende Termine - grüne Kennzeichnung mit Fade-Animation */
.CalendarEventCard--running {
    background-color: #1a3d1a;
    border-left: 4px solid #4caf50;
   /* animation: runningEventFade 3s ease-in-out infinite;*/
}

.CalendarEventCard--running:hover {
    background-color: #204d20 !important;
    box-shadow: 0 0 16px rgba(76, 175, 80, 0.5);
    /*animation: none; /* Stop animation on hover */*/
}

/* Pulsierende Animation für heutige Termine */
@keyframes todayEventPulse {
    0%, 100% {
        border-left-color: rgba(231, 76, 60, 0.6);
        border-left-width: 4px;
    }
    50% {
        border-left-color: rgba(231, 76, 60, 1);
        border-left-width: 4px; /* optional für stärkeren Effekt */
    }
}

/* Fade-Animation für laufende Termine */
@keyframes runningEventFade {
    0%, 100% {
     
        background-color: #194519;
    }
    50% {
       
        background-color: #2f692f;
    }
}







