/* Redesigned Case Resolution Simulator */
.timeline-phase {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease-out;
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left: 4px solid;
}

.timeline-phase.visible {
    opacity: 1;
    transform: translateX(0);
}

.diy-phase {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2, #fff);
}

.expert-phase {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4, #fff);
}

.phase-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.phase-title {
    font-weight: 700;
    font-size: 1.1rem;
    flex: 1;
}

.diy-phase .phase-title {
    color: #dc2626;
}

.expert-phase .phase-title {
    color: #059669;
}

.penalty-amount {
    font-family: 'Courier New', monospace;
    font-weight: 800;
    font-size: 1.2rem;
    padding: 4px 8px;
    border-radius: 6px;
}

.diy-penalty {
    color: #dc2626;
    background: #fef2f2;
}

.expert-penalty {
    color: #059669;
    background: #f0fdf4;
}

.phase-description {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.4;
}

.stress-indicator {
    display: flex;
    align-items: center;
    margin-top: 12px;
    gap: 8px;
}

.stress-bar {
    flex: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.stress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1.5s ease-in-out;
}

.diy-stress {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.expert-stress {
    background: linear-gradient(90deg, #10b981, #059669);
}

.week-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #3b82f6;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.diy-phase.visible {
    animation: slideInLeft 0.8s ease-out;
}

.expert-phase.visible {
    animation: slideInRight 0.8s ease-out;
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(249, 115, 22, 0.4); 
    }
    50% { 
        box-shadow: 0 0 30px rgba(249, 115, 22, 0.6); 
    }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.counting {
    animation: countUp 0.8s ease-out;
}

@keyframes countUp {
    from { 
        transform: scale(1.3); 
        opacity: 0.7; 
    }
    to { 
        transform: scale(1); 
        opacity: 1; 
    }
}

/* Notice Type Selector Styles */
.notice-type-btn {
    transition: all 0.3s ease;
    cursor: pointer;
}

.notice-type-btn:hover {
    transform: translateY(-2px);
}

.notice-type-btn:active {
    transform: scale(0.98);
}

/* Active state for selected notice type */
.notice-type-btn.active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    color: white !important;
    border-color: #1e40af !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}