/* ===== CALENDAR SCHEDULER STYLES ===== */
.calendar-container {
    max-width: 1000px;
    margin: 0 auto;
}

.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.month-navigation {
    display: flex;
    align-items: center;
    gap: 20px;
}

.current-month {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    min-width: 200px;
    text-align: center;
}

/* ===== CALENDAR GRID ===== */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background-color: #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.calendar-header {
    background-color: #4CAF50;
    color: white;
    padding: 15px 10px;
    text-align: center;
    font-weight: bold;
}

.calendar-day {
    background-color: white;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    padding: 5px;
}

.calendar-day:hover:not(.other-month):not(.weekend):not(.holiday) {
    background-color: #f0f8f0;
    border-color: #4CAF50;
}

.calendar-day.other-month {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.calendar-day.weekend {
    background-color: #ffebee;
    color: #d32f2f;
    cursor: not-allowed;
}

.calendar-day.holiday {
    background-color: #ffcdd2;
    color: #b71c1c;
    font-weight: bold;
    cursor: not-allowed;
}

.calendar-day.day-hover {
    background-color: rgba(76, 175, 80, 0.1) !important;
    border-color: #4CAF50 !important;
    transform: scale(1.02) !important;
}

.calendar-day:not(.weekend):not(.holiday):not(.other-month) {
    cursor: pointer !important;
}

.calendar-day:not(.weekend):not(.holiday):not(.other-month):hover {
    background-color: rgba(76, 175, 80, 0.1) !important;
    border-color: #4CAF50 !important;
    transform: scale(1.02) !important;
}

/* ===== CALENDAR DAY CONTENT ===== */
.day-number {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.holiday-name {
    font-size: 9px;
    font-weight: bold;
    text-align: center;
    line-height: 1.1;
    color: #b71c1c;
    margin-top: 2px;
    word-wrap: break-word;
    hyphens: auto;
}

.day-activity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    text-align: center;
}

.activity-icon {
    width: 20px;
    height: 20px;
}

/* ===== RADIAL MENU STYLES ===== */
.radial-menu-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.radial-menu-container.visible {
    opacity: 1;
}

.radial-option {
    position: fixed;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: white;
    border: 3px solid #4CAF50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 8px;
    font-weight: bold;
    color: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    text-align: center;
    padding: 4px;
    pointer-events: all;
    user-select: none;
    transform: scale(0) rotate(180deg);
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                opacity 0.2s ease,
                background-color 0.15s ease,
                color 0.15s ease;
}

.radial-menu-container.visible .radial-option {
    transform: scale(1) rotate(0deg);
    opacity: 1;
}

.radial-option:hover {
    transform: scale(1.1) !important;
    background-color: var(--option-color, #4CAF50);
    color: white;
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.radial-option-icon {
    width: 22px;
    height: 22px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radial-option-icon svg {
    width: 100%;
    height: 100%;
}

.radial-option-text {
    font-size: inherit;
    line-height: 1.1;
    margin: 0;
    padding: 0;
    max-width: 62px;
    overflow: hidden;
    text-align: center;
    word-wrap: break-word;
    hyphens: auto;
    white-space: normal;
}

/* ===== RADIAL MENU ANIMATIONS ===== */
.radial-menu-container.visible .radial-option:nth-child(1) { 
    transition-delay: 0.05s; 
}
.radial-menu-container.visible .radial-option:nth-child(2) { 
    transition-delay: 0.08s; 
}
.radial-menu-container.visible .radial-option:nth-child(3) { 
    transition-delay: 0.11s; 
}
.radial-menu-container.visible .radial-option:nth-child(4) { 
    transition-delay: 0.14s; 
}
.radial-menu-container.visible .radial-option:nth-child(5) { 
    transition-delay: 0.17s; 
}

/* ===== SUMMARY PANEL ===== */
.summary-panel {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.summary-panel h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.summary-item {
    background-color: white;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    border-left: 4px solid #4CAF50;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.summary-number {
    font-size: 24px;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 5px;
}

/* Custom colors for specific summary items */
.summary-item.total-days .summary-number {
    color: #333;
}

.summary-item.total-days {
    border-left-color: #333;
}

.summary-item.work-days .summary-number {
    color: #2E7D32;
}

.summary-item.work-days {
    border-left-color: #2E7D32;
}

.summary-item.weekends .summary-number {
    color: #d32f2f;
}

.summary-item.weekends {
    border-left-color: #d32f2f;
}

.summary-label {
    color: #666;
    font-size: 14px;
}

.submit-container {
    text-align: center;
    margin-top: 20px;
}

/* ===== RESPONSIVE CALENDAR STYLES ===== */
@media (max-width: 768px) {
    .calendar-container {
        padding: 10px;
    }
    
    .calendar-controls {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .current-month {
        font-size: 20px;
        min-width: auto;
    }
    
    .calendar-day {
        min-height: 60px;
        padding: 3px;
    }
    
    .day-number {
        font-size: 14px;
    }
    
    .day-activity {
        font-size: 8px;
    }
    
    .activity-icon {
        width: 16px;
        height: 16px;
    }
    
    .radial-option {
        width: 55px !important;
        height: 55px !important;
        font-size: 8px !important;
        border-width: 2px !important;
    }
    
    .radial-option-icon {
        width: 18px !important;
        height: 18px !important;
    }
    
    .radial-option-text {
        max-width: 47px !important;
    }
    
    .summary-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .summary-number {
        font-size: 20px;
    }
    
    .summary-label {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .calendar-day {
        min-height: 50px;
    }
    
    .day-number {
        font-size: 12px;
    }
    
    .holiday-name {
        font-size: 7px;
    }
    
    .day-activity {
        font-size: 7px;
    }
    
    .activity-icon {
        width: 14px;
        height: 14px;
    }
    
    .radial-option {
        width: 50px !important;
        height: 50px !important;
        font-size: 7px !important;
    }
    
    .radial-option-icon {
        width: 16px !important;
        height: 16px !important;
    }
    
    .radial-option-text {
        max-width: 42px !important;
    }
}