/* Frontend Calendar Styles */
.dd-calendar-frontend {
    width: 100%;
    margin: 20px 0;
}

#dd-calendar-container {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dd-calendar-frontend .fc {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.dd-calendar-frontend .fc-event {
    cursor: default;
    border-radius: 3px;
    padding: 2px 4px;
}

/* CSS Variables for Elementor customization */
.dd-calendar-frontend {
    --dd-cell-border-width: 1px;
    --dd-cell-border-color: #ddd;
    --dd-cell-border-radius: 0;
    --dd-active-bg: #f0f0f0;
    --dd-active-text: #333;
    --dd-event-bar-color: #3788d8;
    --dd-font-family: inherit;
}

.dd-calendar-frontend .fc-daygrid-day {
    border-width: var(--dd-cell-border-width);
    border-color: var(--dd-cell-border-color);
    border-radius: var(--dd-cell-border-radius);
}

.dd-calendar-frontend .fc-day-today {
    background-color: var(--dd-active-bg) !important;
}

.dd-calendar-frontend .fc-day-today .fc-daygrid-day-number {
    color: var(--dd-active-text);
}

.dd-calendar-frontend .fc-event {
    background-color: var(--dd-event-bar-color);
    border-color: var(--dd-event-bar-color);
}

.dd-calendar-frontend,
.dd-calendar-frontend * {
    font-family: var(--dd-font-family);
}

/* Event Modal Styles */
.dd-event-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dd-event-modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.dd-modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 5px 10px;
}

.dd-modal-close-btn:hover {
    color: #333;
}

.dd-modal-event-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
    padding-right: 30px;
}

.dd-modal-event-time,
.dd-modal-event-date,
.dd-modal-event-location {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dd-modal-event-location {
    margin-bottom: 15px;
}

.dd-modal-event-links {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.dd-modal-event-links h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.dd-event-link-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #2271b1;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: background 0.2s;
}

.dd-event-link-button:hover {
    background: #135e96;
    color: white;
}

.dd-event-link-button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.dd-modal-event-description {
    line-height: 1.6;
    color: #333;
    margin-top: 20px;
}

.dd-modal-event-description p:first-child {
    margin-top: 0;
}

.dd-modal-event-description p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .dd-event-modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .dd-modal-event-title {
        font-size: 20px;
    }
    
    .dd-event-link-button {
        display: flex;
        width: 100%;
        justify-content: center;
        margin-right: 0;
    }
}


