
/* Environment: dev - Generated styles */

.debug-info {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 3px;
    z-index: 9999;
}
/**
 * Multi-Day Event Form Styles
 */

/* Event Type Toggle */
.event-type-toggle {
    margin-bottom: 1.5rem;
}

.event-type-toggle .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.toggle-buttons {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f9fa;
}

.toggle-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.toggle-btn:hover {
    background: #e9ecef;
    color: #333;
}

.toggle-btn.active {
    background: #007bff;
    color: white;
    font-weight: 600;
}

.toggle-btn:first-child {
    border-right: 1px solid #ddd;
}

/* Multi-Day Container */
.multi-day-container {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    background: #fafafa;
    margin-bottom: 1rem;
}

.multi-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e0e0e0;
}

.multi-day-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.25rem;
    font-weight: 600;
}

#add-day-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#add-day-btn:hover {
    background: #218838;
}

#add-day-btn .btn-icon {
    font-size: 1.1rem;
    font-weight: bold;
}

/* Event Days List */
.event-days-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Individual Event Day */
.event-day {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

.event-day:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

.day-header h5 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.day-number {
    color: #007bff;
    font-weight: 700;
}

.remove-day-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.remove-day-btn:hover {
    background: #c82333;
}

.remove-day-btn .btn-icon {
    font-size: 1rem;
    font-weight: bold;
    line-height: 1;
}

/* Day Fields */
.day-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.day-fields .form-group {
    margin-bottom: 0;
}

.day-fields .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0;
}

.day-fields .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
    font-size: 0.9rem;
}

.day-fields .form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.day-fields .form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.day-fields .form-control:invalid {
    border-color: #dc3545;
}

/* Single Day Container */
.single-day-container {
    /* Inherit existing styles */
}

/* Responsive Design */
@media (max-width: 768px) {
    .multi-day-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .multi-day-header h4 {
        text-align: center;
    }
    
    #add-day-btn {
        justify-content: center;
    }
    
    .day-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .day-header h5 {
        text-align: center;
    }
    
    .remove-day-btn {
        align-self: center;
        justify-content: center;
    }
    
    .day-fields .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .toggle-buttons {
        flex-direction: column;
    }
    
    .toggle-btn:first-child {
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
}

@media (max-width: 480px) {
    .multi-day-container {
        padding: 1rem;
    }
    
    .event-day {
        padding: 1rem;
    }
    
    .day-fields .form-control {
        padding: 0.625rem 0.75rem;
        font-size: 1rem; /* Prevent zoom on iOS */
    }
}

/* Animation for adding/removing days */
.event-day {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Validation States */
.event-day.has-error {
    border-color: #dc3545;
    background: #fff5f5;
}

.event-day.has-error .day-header h5 {
    color: #dc3545;
}

/* Loading State */
.multi-day-container.loading {
    opacity: 0.6;
    pointer-events: none;
}

.multi-day-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Focus States */
.toggle-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.remove-day-btn:focus,
#add-day-btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .multi-day-container {
        border-color: #000;
    }
    
    .event-day {
        border-color: #000;
    }
    
    .toggle-btn.active {
        background: #000;
        color: #fff;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .event-day,
    .toggle-btn,
    .remove-day-btn,
    #add-day-btn,
    .day-fields .form-control {
        transition: none;
    }
    
    .event-day {
        animation: none;
    }
    
    .multi-day-container.loading::after {
        animation: none;
    }
}