/* Cleaning Schedule Calculator Specific Styles */

/* Schedule Overview Display */
.schedule-overview {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    border: 2px solid #10b981;
}

.schedule-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
}

.summary-card:hover {
    border-color: #10b981;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
}

.summary-card.primary {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}

.summary-card.secondary {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.summary-card.warning {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fefbf3, #fef3c7);
}

.allergy-checklist {
    margin-top: 20px;
}

.allergy-checklist h4 {
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.checkbox-item:hover {
    border-color: #2563eb;
    background: #f1f5f9;
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
    background: #2563eb;
    border-color: #2563eb;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
    opacity: 1;
}

.checkbox-item:has(input[type="checkbox"]:checked) {
    border-color: #2563eb;
    background: linear-gradient(135deg, #eff6ff, #f1f5f9);
}

.checkbox-item .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-item .checkmark::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.checkbox-label {
    color: #374151;
    font-size: 14px;
    font-weight: 500;
}

.schedule-overview {
    margin-bottom: 32px;
}

.schedule-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.summary-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
}

.summary-card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.summary-card.weekly {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
}

.summary-card.monthly {
    border-color: #2563eb;
    background: linear-gradient(135deg, #eff6ff, #f1f5f9);
}

.summary-card.seasonal {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.summary-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-frequency {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: 'Roboto Mono', monospace;
}

.summary-card.weekly .summary-frequency {
    color: #065f46;
}

.summary-card.monthly .summary-frequency {
    color: #1e40af;
}

.summary-card.seasonal .summary-frequency {
    color: #92400e;
}

.summary-description {
    font-size: 12px;
    color: #64748b;
    line-height: 1.3;
}

.cleaning-calendar {
    margin: 32px 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
}

.calendar-header {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    text-align: center;
    padding: 8px;
    background: #f8fafc;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #f1f5f9;
    border-radius: 4px;
    font-size: 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-day:hover {
    background: #f8fafc;
    border-color: #2563eb;
}

.calendar-day.has-task {
    background: #eff6ff;
    border-color: #2563eb;
}

.calendar-day.has-task.surface {
    background: #ecfdf5;
    border-color: #10b981;
}

.calendar-day.has-task.deep {
    background: #fef3c7;
    border-color: #f59e0b;
}

.calendar-day.has-task.professional {
    background: #fdf2f8;
    border-color: #ec4899;
}

.day-number {
    font-weight: 600;
    color: #374151;
    margin-bottom: 2px;
}

.task-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2563eb;
}

.calendar-day.has-task.surface .task-indicator {
    background: #10b981;
}

.calendar-day.has-task.deep .task-indicator {
    background: #f59e0b;
}

.calendar-day.has-task.professional .task-indicator {
    background: #ec4899;
}

.cleaning-tasks {
    margin: 32px 0;
}

.task-categories {
    display: grid;
    gap: 24px;
    margin-top: 16px;
}

.task-category {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    transition: all 0.2s ease;
}

.task-category:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.task-category.surface {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
}

.task-category.deep {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.task-category.professional {
    border-color: #ec4899;
    background: linear-gradient(135deg, #fdf2f8, #fce7f3);
}

.task-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.task-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
}

.task-category.surface .task-icon {
    background: #10b981;
}

.task-category.deep .task-icon {
    background: #f59e0b;
}

.task-category.professional .task-icon {
    background: #ec4899;
}

.task-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.task-frequency {
    font-size: 14px;
    color: #64748b;
    margin-left: auto;
    font-weight: 500;
}

.task-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.task-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.task-item:last-child {
    border-bottom: none;
}

.task-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.task-category.surface .task-bullet {
    background: #10b981;
}

.task-category.deep .task-bullet {
    background: #f59e0b;
}

.task-category.professional .task-bullet {
    background: #ec4899;
}

.task-description {
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
}

.maintenance-tips {
    margin: 32px 0;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.tip-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
}

.tip-card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.tip-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tip-icon {
    color: #2563eb;
    font-size: 18px;
}

.tip-description {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.cleaning-guidelines {
    space-y: 16px;
}

.guideline-item {
    padding: 16px;
    background: #f1f5f9;
    border-radius: 6px;
    margin-bottom: 12px;
    border-left: 4px solid #2563eb;
}

.guideline-item strong {
    color: #1e293b;
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.guideline-item p {
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

.allergy-adjustments {
    space-y: 12px;
}

.adjustment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.adjustment-condition {
    font-weight: 500;
    color: #374151;
    font-size: 13px;
}

.adjustment-frequency {
    font-weight: 600;
    color: #2563eb;
    font-size: 13px;
    font-family: 'Roboto Mono', monospace;
}

/* Responsive Design */
@media (max-width: 768px) {
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calendar-grid {
        gap: 4px;
        padding: 12px;
    }
    
    .calendar-day {
        font-size: 10px;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .schedule-summary {
        grid-template-columns: 1fr;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 2px;
    }
    
    .task-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .task-frequency {
        margin-left: 0;
    }
    
    .adjustment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Animation for schedule reveal */
@keyframes scheduleReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-section.animate {
    animation: scheduleReveal 0.6s ease-out;
}

/* Loading states */
.calendar-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

.calendar-grid.loading::after {
    content: "Generating schedule...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 16px 24px;
    border-radius: 8px;
    font-weight: 500;
    color: #374151;
}
