.ugcd-calendar-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    font-family: "CoconPro",-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.ugcd-header {
    background: #6495ed;
    color: white;
    padding: 20px;
    text-align: center;
}

.ugcd-header h3 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 600;
}

.ugcd-connect-btn {
    display: inline-block;
    background: #e26a44;
    color: white !important;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px 0px 8px 0px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.ugcd-connect-btn:hover {
/*     background: #3367d6; */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.ugcd-disconnect-btn {
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.ugcd-disconnect-btn:hover {
    background: #c82333;
}

.ugcd-calendar {
    padding: 20px;
}

.ugcd-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ugcd-nav-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ugcd-nav-btn:hover {
    background: #e9ecef;
}

.ugcd-current-month {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
}

.ugcd-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.ugcd-day-header {
    background: #f8f9fa;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    color: #495057;
    font-size: 0.9em;
}

.ugcd-day {
    background: white;
    min-height: 80px;
    padding: 8px;
    position: relative;
    transition: background 0.3s ease;
}

.ugcd-day:hover {
    background: #f8f9fa;
}

.ugcd-day-number {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.ugcd-day.other-month .ugcd-day-number {
    color: #adb5bd;
}

.ugcd-day.today {
    background: #e3f2fd;
}

.ugcd-day.today .ugcd-day-number {
    background: #2196f3;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
}

.ugcd-event {
    background: #4285f4;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75em;
    margin: 1px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ugcd-event:hover {
    background: #3367d6;
    transform: scale(1.02);
}

.ugcd-event.multiple {
    background: #ff9800;
}

.ugcd-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.ugcd-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 6px;
    margin: 10px 0;
    border: 1px solid #f5c6cb;
}

.ugcd-success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 6px;
    margin: 10px 0;
    border: 1px solid #c3e6cb;
}

.page-id-684 .ugcd-header {
    background: #055160;
}

.ugcd-event-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.ugcd-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.ugcd-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
}

.ugcd-close:hover {
    color: #000;
}

.ugcd-event-details h4 {
    margin-top: 0;
    color: #333;
}

.ugcd-event-time {
    color: #666;
    font-size: 0.9em;
    margin: 5px 0;
}

.ugcd-event-description {
    margin-top: 10px;
    line-height: 1.5;
}

/* Elementor compatibility */
.elementor-widget-container .ugcd-calendar-container {
    width: 100% !important;
    max-width: 100% !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .ugcd-calendar-container {
        margin: 10px;
    }
    
    .ugcd-day {
        min-height: 60px;
        padding: 4px;
    }
    
    .ugcd-event {
        font-size: 0.7em;
        padding: 1px 4px;
    }
    
    .ugcd-calendar-header {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .ugcd-day {
        min-height: 50px;
    }
    
    .ugcd-day-header {
        padding: 8px 4px;
        font-size: 0.8em;
    }
    
    .ugcd-event {
        font-size: 0.65em;
        padding: 1px 3px;
    }
}