/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* 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: left;
    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 {
    color: rgba(255, 255, 255, 0.5);
    padding: 10px 15px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.logout-btn {
    background-color: red;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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



.welcome-container {
    text-align: center;
    padding: 20px;
    background-color: white;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    margin: 20px;
    border-radius: 10px;
}


.form-container {
    max-width: 95%;
    margin: 20px auto;
    background: white;
    overflow-x: auto; 
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #333;
}

table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap; /* Prevent wrapping of table content */
}

thead th {
    background-color: #007bff;
    color: white;
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

tbody td {
    padding: 10px;
    border: 1px solid #ddd;
}


tr:nth-child(even) {
    background-color: #f9f9f9;
}

.btn {
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
}

.paid-btn {
    background-color: green;
    color: white;
}

.view-btn {
    background-color: blue;
    color: white;
}

.edit-btn {
    background-color: orange;
    color: white;
}

.delete-btn {
    background-color: red;
    color: white;
}



.header-container {
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 15px; 
}

.download-btn {
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
    color: white;
    background-color: #28a745;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.download-btn:hover {
    background-color: #218838;
    transform: scale(1.05);
}

.download-btn:active {
    background-color: #1e7e34;
    transform: scale(0.98);
}


@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: #0056b3;
        position: absolute;
        top: 50px;
        right: 0;
        width: 200px;
        box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
    }

    .menu-icon {
        display: block;
    }

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

    table {
        display: block;
        overflow-x: auto;
    }
}


.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px); /* Adds slight blur to background */
    overflow-y: auto; /* Makes modal scrollable */
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 50%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    max-height: 80vh; /* Ensures modal does not overflow screen */
}

.modal-body {
    padding: 10px;
    max-height: 60vh; /* Keeps content inside modal scrollable */
    overflow-y: auto;
}

.modal-body p {
    font-size: 16px;
    color: #333;
    margin: 8px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
}

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

.edit-field {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.close-btn {
    background: #ff4d4d;
    color: white;
    font-size: 18px;
    border: none;
    padding: 6px 12px;
    border-radius: 50%;
    cursor: pointer;
    float: right;
    transition: background 0.3s ease-in-out;
}

.close-btn:hover {
    background: #d93636;
}

.save-modal-btn {
    display: block;
    margin: 10px auto;
    padding: 8px 16px;
    background-color: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.save-modal-btn:hover {
    background-color: #218838;
}

