/* css/calendar-widget.css */
.calendar-widget-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    animation: fadeIn 0.2s ease;
}

.calendar-widget-modal {
    background: var(--bg-secondary, #2b2b2b);
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color, #3a3a3a);
    animation: slideUp 0.3s ease;
}

.calendar-widget-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color, #3a3a3a);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-widget-header h5 {
    margin: 0;
    font-weight: 600;
    color: var(--text-primary, #e0e0e0);
}

.calendar-widget-header h5 i {
    margin-right: 10px;
    color: var(--primary, #4a6cf7);
}

.calendar-widget-body {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
}

.calendar-sync-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-hover, #3a3a3a);
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-secondary, #a0a0a0);
}

.calendar-sync-bar button {
    white-space: nowrap;
}

.calendar-events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calendar-event-item {
    padding: 12px 16px;
    background: var(--bg-hover, #3a3a3a);
    border-radius: 8px;
    border-left: 3px solid var(--primary, #4a6cf7);
}

.calendar-event-time {
    font-size: 12px;
    color: var(--text-secondary, #a0a0a0);
    margin-bottom: 4px;
}

.calendar-event-subject {
    font-weight: 500;
    color: var(--text-primary, #e0e0e0);
}

.calendar-event-location {
    font-size: 12px;
    color: var(--text-secondary, #a0a0a0);
    margin-top: 4px;
}

.calendar-event-location i {
    margin-right: 4px;
}

.calendar-empty {
    text-align: center;
    padding: 30px 0;
    color: var(--text-secondary, #a0a0a0);
}

.calendar-widget-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color, #3a3a3a);
    display: flex;
    justify-content: flex-end;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@media (max-width: 576px) {
    .calendar-widget-modal {
        max-width: 95%;
        max-height: 90vh;
    }
    .calendar-sync-bar {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
}