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

header {
    margin-bottom: 2rem;
}

.article-item {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.article-item:hover {
    background-color: #f1f8ff;
    border-left: 3px solid #0d6efd;
}

.article-date {
    font-size: 0.85rem;
    color: #6c757d;
}

.article-source {
    font-size: 0.85rem;
    color: #28a745;
    font-weight: 500;
}

.article-summary {
    color: #6c757d;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spinner-grow {
    width: 1rem;
    height: 1rem;
}

.refresh-animation {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.highlight {
    background-color: #ffff99;
    padding: 0 2px;
    border-radius: 2px;
}

#articleModalBody img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.pagination .page-link {
    color: #0d6efd;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: #0d6efd;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}