body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

#login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 9, 92, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 100%;
    max-width: 350px;
    margin: 20px;
}

.login-container h2 {
    margin-bottom: 20px;
    color: #00095c;
}

.login-container input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.login-container button {
    width: 100%;
    padding: 12px;
    border: none;
    background-color: #00095c;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-container button:hover {
    background-color: #004080;
}

#login-error {
    color: red;
    font-size: 0.9em;
    height: 1em;
    margin-top: 10px;
}

header,
main.container,
footer {
    display: none;
}

header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #00095c;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 999;
}

.logo {
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    display: flex;
    align-items: center;
}

.logo img {
    margin-right: 10px;
}

.top-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.top-nav ul li {
    margin-left: 20px;
}

.top-nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
    padding: 5px 10px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    transition: all 0.3s ease;
}

.top-nav ul li a:hover {
    text-decoration: none;
    color: #ffd900;
}

.header-main {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.header-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

.overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    z-index: 10;
}


.admin-office-menu {
    background-color: #00095c;
    color: #fff;
    padding: 15px 20px;
    font-size: 1.8em;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.grid-item {
    background-color: #c0d9ee;
    border: 1px solid #a0c0e0;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 180px;
}

.grid-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(194, 38, 38, 0.805);
}

.grid-item a {
    text-decoration: none;
    color: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.grid-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.grid-item a:hover img {
    transform: scale(1.1);
}

.grid-item span {
    font-size: 1.1em;
    font-weight: bold;
    color: #00095c;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.grid-item a:hover span {
    color: #004080;
}

footer {
    background-color: #00095c;
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-content p {
    margin: 0 0 10px 0;
    font-size: 0.9em;
    color: #ffd900;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.footer-links li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.footer-links li a:hover {
    color: #ffd900;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
    }

    .top-nav ul {
        margin-top: 10px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .top-nav ul li {
        margin: 5px 10px;
    }

    .phone-number {
        font-size: 1.8em;
    }

    .additional-numbers {
        font-size: 1em;
    }

    .admin-office-menu {
        font-size: 1.4em;
        padding: 10px 15px;
    }

    .grid-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }

    .grid-item {
        height: 150px;
        padding: 20px;
    }

    .grid-item img {
        width: 60px;
        height: 60px;
    }

    .grid-item span {
        font-size: 1em;
    }

    .container {
        margin: 20px auto;
        padding: 0 15px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        margin-top: 15px;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .top-nav ul li a {
        font-size: 1em;
        padding: 3px 5px;
    }

    .logo span {
        font-size: 1em;
    }

    .admin-office-menu {
        font-size: 1.2em;
    }

    .grid-item {
        height: 120px;
        padding: 15px;
    }

    .grid-item img {
        width: 50px;
        height: 50px;
    }

    .grid-item span {
        font-size: 0.9em;
    }
}

.search-container {
    display: flex;
    align-items: center;
    background-color: #f1f1f1;
    border-radius: 20px;
    padding: 2px 5px;
}

.search-container input[type="text"] {
    border: none;
    background: transparent;
    outline: none;
    padding: 5px;
    font-size: 14px;
    width: 50px;
}

.search-container button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #333;
}

.grid-item.hide {
    display: none;
}

.remember-me-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    cursor: pointer;
    font-size: 15px;
    color: #333;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.remember-me-container input[type="checkbox"] {
    display: none;
}

.remember-me-container label::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #00095c;
    border-radius: 4px;
    margin-right: 10px;
    vertical-align: middle;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.remember-me-container label::after {
    content: '';
    display: block;
    position: absolute;
    top: 3px;
    left: 7px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.remember-me-container input[type="checkbox"]:checked+label::before {
    background-color: #00095c;
    border-color: #00095c;
}

.remember-me-container input[type="checkbox"]:checked+label::after {
    opacity: 1;
}

.remember-me-container label {
    position: relative;
    display: flex;
    align-items: center;
}

.login-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.login-logo img {
    width: 50px;
    height: auto;
    margin-right: 15px;
}

.login-logo h1 {
    margin: 0;
    font-size: 1.7em;
    font-weight: 600;
    color: #060d4d;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.menu-toggle-btn, .close-menu-btn {
    display: none; 
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.close-menu-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 36px;
}

@media (max-width: 768px) {
    .header-top {
   
        flex-direction: row; 
        justify-content: space-between; 
        align-items: center;
    }

    .menu-toggle-btn {
        display: block; 
    }

    .close-menu-btn {
        display: block; 
    }

    .top-nav {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 280px;
        height: 100vh;
        background-color: #00095c;
        box-shadow: -2px 0 5px rgba(0,0,0,0.5);
        transition: right 0.4s ease-in-out;
        z-index: 1001;
    }

    .top-nav.open {
        right: 0; 
    }
    
    .top-nav ul {
        flex-direction: column; 
        align-items: flex-start;
        padding-top: 60px; 
        width: 100%;
    }

    .top-nav ul li {
        margin: 15px 25px;
        width: calc(100% - 50px);
    }
    
    .top-nav ul li a {
        font-size: 1.3em;
    }

    .top-nav ul {
     
        margin-top: 0; 
        justify-content: flex-start;
    }
}
#logoutButton i {
  margin-right: 8px;
}