/* Rotation Schedule Calculator Specific Styles */

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

.schedule-header {
    text-align: center;
    margin-bottom: 20px;
}

.schedule-title {
    font-size: 20px;
    font-weight: 600;
    color: #059669;
    margin-bottom: 8px;
}

.schedule-subtitle {
    font-size: 14px;
    color: #064e3b;
}

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

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

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

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

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

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

.rotation-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.rotation-card.primary .rotation-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.rotation-card.secondary .rotation-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.rotation-card.warning .rotation-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.rotation-label {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rotation-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.rotation-card.primary .rotation-value {
    color: #059669;
}

.rotation-card.secondary .rotation-value {
    color: #1d4ed8;
}

.rotation-card.warning .rotation-value {
    color: #d97706;
}

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

/* Calendar Display */
.rotation-calendar {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.calendar-month {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

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

.calendar-month.rotation-due {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}

.calendar-month.upcoming {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fefbf3, #fef3c7);
}

.month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.month-name {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.rotation-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.calendar-month.rotation-due .rotation-status {
    background: #dcfce7;
    color: #059669;
}

.calendar-month.upcoming .rotation-status {
    background: #fef3c7;
    color: #d97706;
}

.calendar-month:not(.rotation-due):not(.upcoming) .rotation-status {
    background: #f1f5f9;
    color: #64748b;
}

.month-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-item {
    font-size: 13px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-item i {
    color: #10b981;
    font-size: 12px;
}

/* Rotation Timeline */
.rotation-timeline {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    border: 1px solid #e2e8f0;
}

.timeline-container {
    position: relative;
    margin: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 25px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 15px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e2e8f0;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timeline-item.completed .timeline-marker {
    background: #10b981;
}

.timeline-item.current .timeline-marker {
    background: #f59e0b;
    animation: pulse 2s infinite;
}

.timeline-item.upcoming .timeline-marker {
    background: #3b82f6;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.timeline-content {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e2e8f0;
}

.timeline-date {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

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

/* Maintenance Tips */
.maintenance-tips {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    border: 1px solid #93c5fd;
}

.tips-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #bfdbfe;
    transition: all 0.3s ease;
}

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

.tip-item.important {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: #ef4444;
}

.tip-item.helpful {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-color: #10b981;
}

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

.tip-item .tip-icon {
    background: #2563eb;
}

.tip-item.important .tip-icon {
    background: #ef4444;
}

.tip-item.helpful .tip-icon {
    background: #10b981;
}

.tip-content {
    flex: 1;
}

.tip-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

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

/* Rotation Instructions */
.rotation-instructions {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    border: 1px solid #e2e8f0;
}

.instruction-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
}

.instruction-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.step-description {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .rotation-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .calendar-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-marker {
        left: 10px;
        width: 16px;
        height: 16px;
    }
    
    .timeline-line {
        left: 18px;
    }
    
    .schedule-analysis {
        padding: 20px;
    }
    
    .rotation-calendar {
        padding: 20px;
    }
    
    .rotation-timeline {
        padding: 20px;
    }
    
    .maintenance-tips {
        padding: 20px;
    }
    
    .tip-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .rotation-value {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .rotation-metrics {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .rotation-card {
        padding: 16px;
    }
    
    .rotation-value {
        font-size: 18px;
    }
    
    .rotation-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .schedule-analysis {
        padding: 16px;
    }
    
    .rotation-calendar {
        padding: 16px;
    }
    
    .rotation-timeline {
        padding: 16px;
    }
    
    .maintenance-tips {
        padding: 16px;
    }
    
    .calendar-month {
        padding: 12px;
    }
    
    .timeline-content {
        padding: 12px;
    }
    
    .instruction-step {
        padding: 12px;
    }
    
    .step-number {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
}
