body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.news-card {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border: 1px solid #374151;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: #4f46e5;
}

.news-header {
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
    padding: 16px 20px;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5;
}

.news-title-translation {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    color: #e5e7eb;
}

.news-content {
    padding: 20px;
}

.news-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #9ca3af;
    font-size: 0.875rem;
}

.meta-item svg {
    width: 16px;
    height: 16px;
}

.news-body {
    color: #d1d5db;
    line-height: 1.8;
    font-size: 0.9375rem;
}

.news-body-translation {
    color: #9ca3af;
    line-height: 1.8;
    font-size: 0.875rem;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #374151;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    margin-top: 16px;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.news-link:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.progress-bar-animate {
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

#progressBar {
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 50%, #3b82f6 100%);
    background-size: 200% 100%;
    animation: progress-shine 2s infinite;
}

#fetchBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.empty-state {
    animation: fadeIn 0.5s ease;
}

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

.news-card {
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#categoryTabsContainer {
    scrollbar-width: thin;
    scrollbar-color: #4b5563 #1f2937;
}

#categoryTabsContainer::-webkit-scrollbar {
    height: 6px;
}

#categoryTabsContainer::-webkit-scrollbar-track {
    background: #1f2937;
    border-radius: 3px;
}

#categoryTabsContainer::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 3px;
}

#categoryTabsContainer::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

.category-tab {
    position: relative;
    border: none;
    cursor: pointer;
    outline: none;
}

.category-tab:focus {
    outline: none;
}

.category-tab:not(.active):hover {
    transform: translateY(-1px);
}

.category-tab.active {
    box-shadow: 0 -2px 0 0 #3b82f6 inset;
}

@media (max-width: 768px) {
    .news-title {
        font-size: 1.125rem;
    }
    
    .news-header {
        padding: 12px 16px;
    }
    
    .news-content {
        padding: 16px;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .category-tab {
        padding: 8px 12px;
        font-size: 0.875rem;
    }
}