/* AI Day Optimization Styling */

.availability-panel.ai-optimized {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
}

.availability-panel .panel-header {
    text-align: center;
    margin-bottom: 24px;
}

.availability-panel .panel-header h3 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.availability-panel .panel-header p {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 12px;
}

.ai-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

/* AI Scenarios Grid */
.ai-scenarios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

/* AI Optimization Styling */
.ai-optimization-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

/* Time Preference Selection Buttons */
.time-pref-btn {
    min-height: 120px;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    border-radius: 12px;
}

.time-pref-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
    border-color: #007bff;
}

.time-pref-btn.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-color: #007bff;
}

.time-pref-btn .fa {
    color: #6c757d;
    transition: color 0.3s ease;
}

.time-pref-btn:hover .fa {
    color: #007bff;
}

.time-pref-btn.btn-primary .fa {
    color: white;
}

/* AI Scenario Cards */
.ai-scenario-card {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: white;
    overflow: hidden;
    position: relative;
}

.scenario-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.scenario-icon {
    font-size: 48px;
    margin-bottom: 16px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scenario-card h4 {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.scenario-time {
    font-size: 24px;
    font-weight: 700;
    color: #495057;
    margin-bottom: 20px;
}

.scenario-benefits {
    margin-bottom: 24px;
}

.scenario-benefits .benefit {
    color: #28a745;
    font-size: 14px;
    margin-bottom: 8px;
    text-align: left;
}

.select-scenario-btn {
    background: #667eea;
    border: none;
    border-radius: 8px;
    color: white;
    padding: 12px 24px;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.3s ease;
}

.select-scenario-btn:hover {
    background: #5a6fd8;
}

/* Time Preference Fallback Styling */
/* Override with new specific classes */
.time-preference-options-ai {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
    max-width: 600px !important;
    margin: 0 auto 24px auto !important;
}

.time-preference-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    max-width: 600px;
    margin: 0 auto 24px auto;
}

/* Override buttons with new specific classes */
.time-pref-btn-ai {
    border: 2px solid #dee2e6 !important;
    border-radius: 12px !important;
    padding: 8px !important;
    text-align: center !important;
    background: white !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    min-height: 100px !important;
    width: 100% !important;
}

.time-pref-btn {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    background: white;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 120px;
}

.time-pref-btn-ai:hover,
.time-pref-btn-ai.active {
    border-color: #667eea !important;
    background: #f8f9fa !important;
    color: #667eea !important;
}

.time-pref-btn:hover,
.time-pref-btn.active {
    border-color: #667eea;
    background: #f8f9fa;
    color: #667eea;
}

.time-pref-btn i {
    font-size: 32px;
    margin-bottom: 12px;
}

.time-pref-btn .pref-label {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.time-pref-btn .pref-time {
    color: #6c757d;
    font-size: 14px;
}

/* Action Buttons */
.ai-actions,
.fallback-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

/* Calendar Navigation */
.calendar-nav {
    transition: all 0.2s ease-in-out;
    min-height: 120px;
    display: flex;
    align-items: center;
}

.calendar-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.2);
    border-color: #007bff !important;
}

.calendar-nav .nav-icon {
    margin-bottom: 8px;
}

.calendar-nav .nav-text {
    color: #007bff;
    font-weight: 600;
}

.calendar-nav .nav-subtext {
    font-size: 0.85em;
}

.ai-actions .btn,
.fallback-actions .btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ai-scenarios {
        grid-template-columns: 1fr;
    }
    
    .time-preference-options {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
    
    .ai-actions,
    .fallback-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .ai-actions .btn,
    .fallback-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Loading States */
.ai-loading {
    text-align: center;
    padding: 40px;
}

.ai-loading .spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
