html {
  font-size: 14px;
}

@@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Hero Background */


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
}

/* Logo Box */
.logo-oval {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    text-align: center;
    margin-bottom: 25px;
}

    .logo-oval img {
        width: 80px;
        height: auto;
    }

.brand-title {
    font-size: 28px;
    color: #d62b1f;
    font-weight: 700;
    margin-top: 10px;
}

.brand-subtitle {
    font-size: 16px;
    color: #555;
    font-style: italic;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Login Box */
.login-container {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    color: #fff;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 16px;
    outline: none;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.btn-login {
    background: #d62b1f;
    border: none;
    color: #fff;
    padding: 12px;
    width: 100%;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

    .btn-login:hover {
        background: #a91e13;
    }

.error-message {
    color: #ffdddd;
    background: rgba(255, 0, 0, 0.3);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: none;
}

@@media (max-width: 768px) {
    .brand-title {
        font-size: 22px;
    }

    .login-container {
        padding: 25px;
    }
}

.navbar-rect {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    background-color: #ffffff;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.menu-item {
    height: 40px;
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 5px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

    .menu-item:hover {
        background-color: #0d6efd;
        color: #fff;
        box-shadow: 0 4px 8px rgba(13,110,253,0.3);
        transform: translateY(-1px);
    }

    .menu-item.active {
        background-color: #0d6efd;
        color: #fff;
        box-shadow: 0 4px 8px rgba(13,110,253,0.4);
    }

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%; /* aligns right below menu */
    left: 0;
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    overflow: hidden;
    z-index: 999; /* ensure it stays on top */
    min-width: 180px;
    padding-top: 4px; /* small hover cushion */
}

    .dropdown-content a {
        display: block;
        padding: 10px 14px;
        text-decoration: none;
        color: #333;
        font-weight: 500;
        transition: all 0.3s ease;
        white-space: nowrap;
    }

        .dropdown-content a:hover {
            background-color: #0d6efd;
            color: #fff;
        }

    /* Keep menu open while hovering over either the button or the submenu */
    .dropdown:hover .dropdown-content,
    .dropdown-content:hover {
        display: block;
    }

/* Icon size tweak (optional) */
.menu-item i {
    font-size: 1.1rem;
}

