/* ✅ General Reset */
* {
    margin: 2px;
    padding: 0;
    box-sizing: border-box;
}

/* ✅ Prevent Scroll Issue */
body {
    overflow: scroll;
    font-family: Arial, sans-serif;
}

/* Wraps the header content */
.header-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Contains logo and menu in a row */
.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    padding: 10px 0;
    width: 100%;
}

/* Logo Styling */
.header-container img {
    height: auto; /* Fix this to control logo size */
    width: 90%;
    max-width: 100%;
    display: block;
}

/* ✅ Navbar (For Desktop) */
.navbar {
    background-color: #007bff;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

/* ✅ Default Menu (For Large Screens) */
.navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Ensures items wrap on small screens */
}


.navbar ul li {
    display: inline;
}

.navbar ul li a {
    text-decoration: none;
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 12px 15px;
    transition: 0.3s;
    display: inline-block;
}

.navbar ul li a:hover {
    background-color: #0056b3;
    border-radius: 5px;
}

/* ✅ Hide Menu Toggle Button on Desktop */
.menu-toggle {
    display: none; /* ✅ Hidden by default (only shows on mobile) */
}


/* ✅ Flash Message Box */
.flash-message {
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* ✅ Success Messages */
.flash-success {
    background-color: #28a745;
    color: white;
}

/* ✅ Error Messages */
.flash-danger {
    background-color: #dc3545;
    color: #721c24;
    padding: 10px;
    margin-top: 90px;
    border-left: 4px solid #dc3545;
    border-radius: 4px;
}

/* ✅ Warning Messages */
.flash-warning {
    background-color: #ffc107;
    color: black;
}

/* ✅ Info Messages */
.flash-info {
    background-color: #17a2b8;
    color: white;
}

/* ✅ Auto-hide Animation */
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.flash-message {
    animation: fadeOut 3s forwards;
    animation-delay: 2s;
}


/* ✅ Mobile View (Show Menu Button & Hide Navbar) */
@media (max-width: 768px) {
    /* ✅ Logo Styling */
    .header-container img {
        max-width: 90%;
        height: auto;
        margin-right: 15px;
    }
    .navbar ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #007bff;
        padding: 0;
        margin: 0;
        justify-content: center;
        gap: 3px;
        flex-wrap: wrap;
    }

    .navbar ul.active {
        display: flex; /* ✅ Show menu when active */
    }

    .navbar ul li {
        width: 100%;
        text-align: center;
    }

    .navbar ul li a {
        text-decoration: none;
        color: white;
        font-size: 16px;
        font-weight: bold;
        padding: 10px 10px;
    }

    /* ✅ Show Menu Toggle Button in Mobile */
    .menu-toggle {
        display: block;
        font-size: 24px;
        background: #007bff;
        border: none;
        color: white;
        cursor: pointer;
        padding: 10px;
        text-align: center;
        border-radius: 5px;
        width: 100%;
    }

    /* ✅ Flash Message Box */
    .flash-message {
        padding: 12px;
        margin-bottom: 10px;
        border-radius: 5px;
        font-size: 14px;
        font-weight: bold;
        text-align: center;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    /* ✅ Success Messages */
    .flash-success {
        background-color: #28a745;
        color: white;
    }

    /* ✅ Error Messages */
    .flash-danger {
        background-color: #dc3545;
        color: white;
    }

    /* ✅ Warning Messages */
    .flash-warning {
        background-color: #ffc107;
        color: black;
    }

    /* ✅ Info Messages */
    .flash-info {
        background-color: #17a2b8;
        color: white;
    }
}
