/* 自定义样式 */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.progress-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
    margin-bottom: 20px;
}

.progress-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.progress-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    border: none;
    padding: 1rem 1.5rem;
}

.progress-item {
    border-left: 4px solid #007bff;
    padding: 15px;
    margin: 10px 0;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.progress-item:hover {
    background: #e9ecef;
    border-left-color: #0056b3;
}

.progress-item.success {
    border-left-color: #28a745;
}

.progress-item.warning {
    border-left-color: #ffc107;
}

.progress-item.danger {
    border-left-color: #dc3545;
}

.progress-bar-custom {
    height: 25px;
    border-radius: 12px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    position: relative;
    overflow: hidden;
}

.progress-bar-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.progress-percentage {
    font-size: 1.2rem;
    font-weight: bold;
    color: #007bff;
}

.progress-numbers {
    font-size: 0.9rem;
    color: #6c757d;
}

.progress-change {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.progress-change.positive {
    background: #d4edda;
    color: #155724;
}

.progress-change.negative {
    background: #f8d7da;
    color: #721c24;
}

.progress-change.neutral {
    background: #e2e3e5;
    color: #383d41;
}

.btn-update {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-update:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.btn-update:disabled {
    background: #6c757d;
    transform: none;
    box-shadow: none;
}

.btn-history {
    background: #6c757d;
    border: none;
    border-radius: 20px;
    padding: 5px 15px;
    color: white;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-history:hover {
    background: #5a6268;
    color: white;
}

.loading-spinner {
    color: #007bff;
}

.alert-custom {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.website-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0;
}

.website-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0;
}

.timestamp {
    font-size: 0.8rem;
    color: #6c757d;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .progress-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .progress-card .card-header {
        padding: 0.75rem 1rem;
    }
    
    .website-title {
        font-size: 1.1rem;
    }
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
} 