/* Extend to Next Day Checkbox Styles */

.extend-to-next-day-container {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border: 2px solid #FC3130;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.extend-to-next-day-container:hover {
    box-shadow: 0 4px 12px rgba(252, 49, 48, 0.15);
    transform: translateY(-2px);
}

.extend-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    user-select: none;
}

.extend-checkbox {
    width: 24px;
    height: 24px;
    min-width: 24px;
    margin-right: 1rem;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #FC3130;
}

.checkbox-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.checkbox-title {
    font-size: 1rem;
    font-weight: 600;
    color: #FC3130;
    display: block;
}

.checkbox-description {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.4;
    display: block;
}

/* Checked state */
.extend-checkbox:checked + .checkbox-text .checkbox-title {
    color: #B43228;
}

.extend-checkbox:checked + .checkbox-text .checkbox-description {
    color: #333;
    font-weight: 500;
}

/* Time slot date separator */
.time-slot-date-separator {
    margin: 1.5rem 0 1rem 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #FC3130 0%, #B43228 100%);
    border-radius: 8px;
    text-align: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(252, 49, 48, 0.2);
}

.time-slot-date-separator .date-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-right: 0.5rem;
}

.time-slot-date-separator .date-value {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Time slot with date indicator */
.time-slot[data-date] {
    position: relative;
}

.time-slot[data-is-next-day="true"] {
    border-color: #FF786E;
}

.time-slot[data-is-next-day="true"]::before {
    content: "次日";
    position: absolute;
    top: 4px;
    right: 4px;
    background: #FC3130;
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    line-height: 1;
}

.time-slot[data-is-next-day="true"].selected::before {
    background: white;
    color: #FC3130;
}

/* English version */
[lang="en"] .time-slot[data-is-next-day="true"]::before {
    content: "Next";
}

/* Mobile responsive */
@media (max-width: 768px) {
    .extend-to-next-day-container {
        padding: 0.875rem;
        margin-top: 1rem;
    }
    
    .extend-checkbox {
        width: 20px;
        height: 20px;
        min-width: 20px;
        margin-right: 0.75rem;
    }
    
    .checkbox-title {
        font-size: 0.9rem;
    }
    
    .checkbox-description {
        font-size: 0.8rem;
    }
    
    .time-slot-date-separator {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
        margin: 1rem 0 0.75rem 0;
    }
    
    .time-slot-date-separator .date-value {
        font-size: 1rem;
    }
    
    .time-slot[data-is-next-day="true"]::before {
        font-size: 0.6rem;
        padding: 1px 4px;
        top: 3px;
        right: 3px;
    }
}

/* Animation for checkbox container appearing */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.extend-to-next-day-container {
    animation: slideDown 0.3s ease-out;
}

