body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Navbar container */
.navbar {
    background-color: #0a58ca;  /* Darker Bootstrap blue */
    padding: 0.5rem 1rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Left side: logo + text */
.navbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1em;
}

.navbar-right {
    display: flex;
    align-items: center;
    margin-right: 20px;
    margin-bottom: 20px;
    padding-top: 0px;
    /*gap: 1.5rem;*/
}

.logo {
    height:70px;
    width: auto;
    max-height: 100%;
    object-fit: contain;
    margin-right: 10px;  
    margin-top: 0px;
    padding-top: 0px;
    display:block;
    /*border: 2px solid red;*/
}

.title {
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 0;
    margin: 0;
    padding: 0;
    display: inline-block;
    color: white;
    /*position: absolute;
    top: 30px; /* 👈 fine-tunes vertical alignment */
}

/* Right side: language selector + links */

.language-selector {
    display: flex;
    align-items: center;
    margin-top: 0%;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 4px;
}

.language-selector .flag-icon {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
}

.language-selector select {
    background-color: transparent;
    color: white;
    border: none;
    outline: none;
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
    padding-right: 1.5rem;
}

.language-selector select option {
    background-color: #1b5baf;
    color: white;
    padding: 0.5rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.2s ease-in-out;
    padding: 8px 12px;
    position: relative;
}

.nav-link:hover {
    color: #D6A415;  /* Changed to gold color */
}

/* Add underline effect on hover */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;  /* Increased from 2px to 3px */
    bottom: 0;
    left: 50%;
    background-color: #D6A415;
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.footer {
    background-color: #8B4513;  /* Changed to match navbar color */
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 40px;
    bottom: 0;
}
.social-icons a {
    color: white;
    margin: 0 10px;
    transition: color 0.2s ease;
}

.social-icons a:hover {
    color: #63b3ed; /* light blue */
}

.main-header {
    background-image: url('/img/bkimage_home.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;  /* Place behind navbar */
}

.header-content {
    position: relative;
    z-index: 2;  /* Place above background */
    background-position: center;
    padding-top: 90px;  /* Increased padding to account for navbar */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

/* Login page specific styles */
.auth-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-image: url('/img/bkimage_home.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
}

.main-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 90px 20px 20px 20px;
}

.login-container {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.login-container h2 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    border-color: #D6A415;
    outline: none;
    box-shadow: 0 0 0 3px rgba(214, 164, 21, 0.1);
}

.btn-primary {
    background-color: #2d3748;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #D6A415;
}

.error-message {
    background-color: #fff5f5;
    color: #c53030;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 1px solid #feb2b2;
    display: flex;
    align-items: center;
}

.error-message i {
    margin-right: 0.5rem;
}

.text-center a {
    color: #2d3748;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.text-center a:hover {
    color: #D6A415;
}