:root {
    --primary: #4361ee;
    --secondary: #3f37c9;
    --dark: #212529;
    --light: #f8f9fa;
    --accent: #4cc9f0;
}

body {
    background-color: #f5f7ff;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}

.navbar {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.main-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-bottom: none;
}

.card-body {
    padding: 1.5rem;
}

.badge {
    font-weight: 500;
    padding: 0.35rem 0.65rem;
}

.btn-download {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 0.5rem 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-download:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    transform: translateY(-2px);
}

.search-container {
    position: relative;
    margin-bottom: 2rem;
}

.search-input {
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(67, 97, 238, 0.15);
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    background: transparent;
    border: none;
    color: var(--primary);
}

.dataset-type {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.type-btn {
    border: 2px solid #e9ecef;
    background: white;
    color: var(--dark);
    border-radius: 2rem;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.type-btn:hover, .type-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
}

.footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0;
    margin-top: 3rem;
}

.stats-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    text-align: center;
}

.stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stats-label {
    color: #6c757d;
    font-weight: 500;
}

.search-results {
    border: 1px solid #ddd;
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
    position: absolute;
    background-color: white;
    width: 100%;
    z-index: 10;
}

.search-result-item {
    padding: 5px 10px;
    cursor: pointer;
}

.search-result-item:hover {
    background-color: #f1f1f1;
}

.search-result-link {
    text-decoration: none;
    color: #000;
}

.search-result-link h5 {
    margin: 0;
    font-size: 16px;
}

.search-result-link p {
    font-size: 14px;
    color: #555;
}