/* Font imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Navbar specific styles */
.navbar {
    background-color: #f4f4f4 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border-bottom: 1px solid #bbb;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar .container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
}

.navbar-nav {
    gap: 10px;
}

.navbar-nav .nav-link {
    font-weight: 400;
    padding: 8px 20px;
    color: #000000 !important;
    font-size: 14px;
    margin: 0 5px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link:hover {
    color: #333333 !important;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.navbar-nav .nav-link.active {
    color: #000000 !important;
    background-color: rgba(0, 0, 0, 0.08);
    border-radius: 4px;
}

.dropdown-menu {
    background-color: #e8e8e8 !important;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.dropdown-item {
    color: #000000 !important;
    font-weight: 400;
}

.dropdown-item:hover {
    background-color: #d0d0d0 !important;
    color: #000000 !important;
}

/* Search form styling */
form[role="search"] input {
    width: 200px;
    background-color: #ffffff;
    border: 1px solid #999;
    color: #000000;
}

form[role="search"] input::placeholder {
    color: #666;
}

form[role="search"] input:focus {
    background-color: #ffffff;
    border-color: #666;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1);
}

/* Language selector */
#navLanguageSelect {
    background-color: #ffffff !important;
    border: 1px solid #999 !important;
    color: #000000 !important;
    font-size: 0.9rem;
}

#navLanguageSelect:focus {
    border-color: #666 !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1);
}

/* Google Translate element */
#google_translate_element {
    font-size: 12px;
}

#google_translate_element .goog-te-combo {
    font-size: 12px;
    border: 1px solid #999;
    border-radius: 4px;
    padding: 2px 4px;
    background-color: #ffffff;
    color: #000000;
}

/* Bookmark button */
#bookmark-btn {
    border-color: #333;
    color: #333;
    background-color: transparent;
}

#bookmark-btn:hover {
    background-color: #333;
    color: #ffffff;
    border-color: #333;
}

/* Navbar toggler styling */
.navbar-toggler {
    border: 1px solid #333;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1);
}

.navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile responsive */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #e8e8e8;
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 8px;
        border: 1px solid #ccc;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .navbar-nav .nav-link {
        padding: 12px 15px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        margin: 0;
        color: #000000 !important;
    }

    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }

    .navbar .d-flex {
        flex-direction: column;
        gap: 10px !important;
        margin-top: 10px;
        width: 100%;
    }

    form[role="search"] input {
        width: 100%;
    }

    .dropdown-menu {
        background-color: #e8e8e8 !important;
        border: 1px solid #ccc;
    }

    .dropdown-item {
        color: #000000 !important;
    }

    .dropdown-item:hover {
        background-color: #d0d0d0 !important;
        color: #000000 !important;
    }
}