/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    /* background: linear-gradient(to right, #1E3C72, #2A5298); */
    background-color: #0056b3;
    color: white;
}

/* Navbar */
/* Navbar Styling */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #0056b3;
    color: white;
    padding: 10px 20px;
    position: relative;
}

/* Logo on the left */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 40px; 
    height: auto;
    display: block;
}
/* Heading in the center */
.heading {
    flex-grow: 1;
    text-align: center;
    font-size: 1.8em;
    font-weight: bold;
}

/* Right side (Nav links + Logout button) */
/* Parent container for nav items */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px; /* Add space between elements */
}

/* Nav links styling */
.nav-links {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
    align-items: center; /* Ensures vertical alignment */
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: white;
    padding: 10px 15px;
    font-size: 16px;
    display: flex; /* Makes sure height is uniform */
    align-items: center; /* Align text vertically */
    justify-content: center;
    height: 40px; /* Set fixed height */
    border-radius: 5px;
}

.nav-links a.active, .nav-links a:hover {
    background-color: #00408b;
    border-radius: 5px;
}

/* Inactive link styling */
.inactive-link {
    color: rgba(255, 255, 255, 0.5);
    padding: 10px 15px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logout button styling */
.logout-btn {
    background-color: red;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    height: 40px; /* Ensures same height as nav links */
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-btn:hover {
    background-color: darkred;
}

/* Welcome Section */
.welcome-container {
    text-align: center;
    margin: 40px 0;
    font-size: 24px;
}

/* Form Container */
.form-container {
    width: 50%;
    margin: auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.form-container h1 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
}

input {
    width: calc(100% - 20px);
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    background-color: white;
    color: black;
    font-size: 16px;
}

.form-container label {
    display: block;
    font-weight: bold;
    margin-top: 10px;
}


.form-container select {
    width: 100%;
    padding: 12px;
    margin: 5px 0;
    border: none;
    border-radius: 5px;
    background-color:white;
    color: black;
    font-size: 16px;
}


input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}


.form-container select {
   
    background-color: white;
    color: black;
    cursor: pointer;
}


.form-container label:nth-child(odd) {
    margin-top: 15px;
}

.form-container::after {
    content: "";
    display: block;
    clear: both;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}


button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background-color: #ff9800;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background-color: #e68900;
}


/* Loading screen styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    display: none; /* Initially hidden */
    z-index: 9999;
}



/* Responsive Styles */
@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.2);
        width: 200px;
        position: absolute;
        top: 60px;
        right: 0;
        padding: 20px;
        border-radius: 8px;
    }

    .nav-links.show {
        display: flex;
    }

    .form-container {
        width: 90%;
    }
}


.popup-message {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    border-radius: 5px;
    display: none;
    z-index: 1000;
}

.show-popup {
    display: block !important;
}



.paid-btn {
    background-color: green;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.view-btn {
    background-color: blue;
    color: white;
    border: none;
    padding: 1px 2px;
    cursor: pointer;
}

.edit-btn {
    background-color: orange;
    color: white;
    border: none;
    padding: 1px 2px;
    cursor: pointer;
}

.delete-btn {
    background-color: red;
    color: white;
    border: none;
    padding: 1px 2px;
    cursor: pointer;
}


.reports-list {
    list-style: none;
    padding: 0;
}

.reports-list li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.reports-list li a {
    text-decoration: none;
    color: #007bff;
}

.reports-list li a:hover {
    text-decoration: underline;
}
