body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-bs-theme="light"] body {
    background-color: white;
    color: black;
}

[data-bs-theme="dark"] body {
    background-color: #121212;
    color: white;
}

[data-bs-theme="light"] .btn-theme {
    background-color: #6c757d;
    color: white;
    border: none;
}

[data-bs-theme="light"] .btn-theme:hover {
    background-color: #5a6268;
}

[data-bs-theme="dark"] .btn-theme {
    background-color: #adb5bd;
    color: #212529;
    border: none;
}

[data-bs-theme="dark"] .btn-theme:hover {
    background-color: #ced4da;
}

.hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 1rem;
}

[data-bs-theme="light"] .hero {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero .input-group {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgb(0 0 0 / 0.15);
}

.hero .form-control {
    border: none;
    padding-left: 1.5rem;
    font-size: 1.25rem;
    height: 56px;
}

.hero .btn-primary {
    border: none;
    padding: 0 1.5rem;
    font-size: 1.25rem;
    border-radius: 0 50px 50px 0;
}

[data-bs-theme="light"] .hero .btn-primary {
    background-color: #6c757d;
    color: white;
}

[data-bs-theme="light"] .hero .btn-primary:hover {
    background-color: #5a6268;
}

[data-bs-theme="dark"] .hero .btn-primary {
    background-color: #adb5bd;
    color: #212529;
}

[data-bs-theme="dark"] .hero .btn-primary:hover {
    background-color: #ced4da;
}

.hero .features-link {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
    text-decoration: none;
}

.hero .features-link:hover {
    text-decoration: underline;
    color: #495057;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

@media (max-width: 576px) {
    .hero .input-group {
    max-width: 100%;
    }

    .hero h1 {
    font-size: 2rem;
    }
}

.result-card {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.result-title {
    color: #1a0dab;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.25rem;
}

.result-title:hover {
    text-decoration: underline;
}

.url {
    color: #006621;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

.result-snippet {
    font-size: 1rem;
}

[data-bs-theme="dark"] .result-title {
    color: #8ab4f8;
}

[data-bs-theme="dark"] .url {
    color: #9ccc65;
}

.pagination .page-link {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    border: 1px solid var(--bs-border-color-translucent);
    transition: background-color 0.2s, color 0.2s;
}

.pagination .page-link:hover {
    background-color: var(--bs-secondary-bg);
    color: var(--bs-body-color);
}

.pagination .page-item.active .page-link {
    background-color: #1a0dab;
    border-color: var(--bs-border-color-translucent);
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: transparent;
    border-color: var(--bs-border-color-translucent);
}