.cost-status-tracker {
    margin: 30px 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 30px;
}

.cost-tracker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.cost-tracker-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cost-tracker-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #111827;
    letter-spacing: -0.02em;
}

.cost-tracker-badge {
    background: #f3f4f6;
    color: #6b7280;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.cost-refresh-btn {
    background: #0070F0;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.cost-refresh-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 112, 240, 0.2);
}

.cost-refresh-btn:active {
    transform: translateY(0);
}

.cost-refresh-btn.cost-refreshing {
    opacity: 0.7;
    cursor: not-allowed;
}

.cost-refresh-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

.cost-refresh-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.cost-refresh-btn.cost-refreshing .cost-refresh-icon {
    animation: spin 1s linear infinite;
}

.cost-refresh-text {
    display: inline-block;
}

.cost-auto-refresh-indicator {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cost-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid #e5e7eb;
    border-top-color: #0070F0;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.cost-status-notification {
    background: #dbeafe;
    border-left: 4px solid #0070F0;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    color: #1e40af;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cost-timeline {
    position: relative;
    padding-left: 45px;
}

.cost-timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: #e5e7eb;
}

.cost-timeline-item {
    position: relative;
    margin-bottom: 32px;
    opacity: 1;
}

.cost-timeline-item:last-child {
    margin-bottom: 0;
}

.cost-timeline-marker {
    position: absolute;
    left: -45px;
    top: 4px;
    width: 24px;
    height: 24px;
    background: #fff;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cost-timeline-marker::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #9ca3af;
    border-radius: 50%;
}

.cost-timeline-item.cost-current .cost-timeline-marker {
    border-color: #3b82f6;
    border-width: 3px;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.cost-timeline-item.cost-current .cost-timeline-marker::after {
    background: #3b82f6;
    animation: pulse-dot 2s ease-in-out infinite;
}

.cost-timeline-item.cost-completed .cost-timeline-marker {
    border-color: #10b981;
    background: #10b981;
}

.cost-timeline-item.cost-completed .cost-timeline-marker::after {
    display: none;
}

.cost-check-icon {
    width: 14px;
    height: 14px;
    color: #fff;
}

.cost-emoji {
    display: none;
}

.cost-timeline-content {
    position: relative;
}

.cost-timeline-content h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #374151;
}

.cost-timeline-item.cost-current .cost-timeline-content h4 {
    color: #1f2937;
    font-weight: 700;
}

.cost-description {
    background: #f9fafb;
    border-left: 3px solid #3b82f6;
    padding: 12px 14px;
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
    border-radius: 4px;
}

.cost-time-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #9ca3af;
}

.cost-time {
    font-weight: 600;
    color: #6b7280;
}

.cost-time-separator {
    color: #d1d5db;
    user-select: none;
}

.cost-time-full {
    color: #9ca3af;
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

@media (max-width: 768px) {
    .cost-status-tracker {
        padding: 20px;
    }
    
    .cost-tracker-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cost-tracker-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .cost-refresh-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .cost-refresh-text {
        display: none;
    }
    
    .cost-auto-refresh-indicator {
        font-size: 11px;
    }
    
    .cost-tracker-title {
        font-size: 16px;
    }
    
    .cost-tracker-badge {
        font-size: 12px;
        padding: 3px 10px;
    }
    
    .cost-timeline {
        padding-left: 40px;
    }
    
    .cost-timeline-marker {
        left: -40px;
        width: 20px;
        height: 20px;
    }
    
    .cost-timeline-marker::after {
        width: 6px;
        height: 6px;
    }
    
    .cost-check-icon {
        width: 12px;
        height: 12px;
    }
    
    .cost-timeline-content h4 {
        font-size: 14px;
    }
    
    .cost-description {
        font-size: 13px;
        padding: 10px 12px;
    }
    
    .cost-time-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        font-size: 12px;
    }
    
    .cost-time-separator {
        display: none;
    }
}

