/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Body Styling */
/* Body Styling */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    color: #333;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../image/1.png'); /* Ensure the path is correct */
    background-size: cover;
    background-position: center;
    opacity: 0.65; /* Adjust opacity as needed */
    z-index: -1;
}

body {
    background-color: rgba(244, 244, 249, 0.8); /* Retained background color */
} 

/* Header Styling (Consistent) */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    background-color: transparent; /* Removed green background */
    color: #333; /* Changed to dark text */
    padding: 10px 20px;
    z-index: 10;
}

.edit-button {
    color: #4CAF50; /* Changed from white to green */
    text-decoration: underline;
}

header h1 {
    display: none; /* Hide the heading completely */
}

header p {
    font-size: 1rem;
}

/* Main Section */
main {
    text-align: center;
    background: rgba(255, 255, 255, 0.6); /* Changed to RGBA for transparency */
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    width: 95%;
    margin-top: 100px;
    overflow-x: auto;
}

main h2 {
    margin-bottom: 20px;
    font-size: 1.75rem;
    color: #333;
    font-weight: 600;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background-color: #fff;
    /* Removed border-radius and overflow */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 12px 10px;
    text-align: center;
    border: 1px solid #e0e0e0;
    font-size: 1rem;
    white-space: nowrap; /* Keep content on one line */
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Target labels within the Review page */
body#reviewPage .filter-section label {
    font-size: 2.2em; /* Adjust as needed */
    font-weight: bold; /* Optional: Makes the text bold */
}

/* Target select dropdowns within the Review page */
body#reviewPage .filter-section select {
    font-size: 2.2em; /* Adjust as needed */
    padding: 5px; /* Optional: Adds some padding for better appearance */
}

/* Target the search button within the Review page */
body#reviewPage .filter-section #searchButton {
    font-size: 2.2em; /* Adjust as needed */
    padding: 8px 16px; /* Optional: Adjusts the button size */
    background-color: #4CAF50; /* Maintains consistent styling */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease; /* Optional: Smooth hover transition */
}

/* Optional: Hover effect for the search button */
body#reviewPage .filter-section #searchButton:hover {
    background-color: #45a049; /* Darker green on hover */
}



th {
    background-color: #4CAF50;
    color: white;
    text-transform: uppercase;
    font-weight: bold;
    position: sticky; /* Makes the header sticky */
    top: 0;           /* Positions the header at the top of the container */
    z-index: 2;       /* Ensures the header stays above table rows */
}

td {
    background-color: #f9f9f9;
}

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

/* Ensure Table Scroll Responsiveness */
.table-container {
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    border-radius: 8px; /* Apply rounded corners here */
    overflow: hidden;    /* Ensure content respects border radius */
    border: 1px solid #ccc; /* Optional: Add border for better aesthetics */
}

/* Set Minimum Column Widths */
th, td {
    min-width: 150px;
}

/* Buttons Styling */
button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

button:active {
    background-color: #3e8e41;
    transform: scale(0.95);
}

/* Responsive Design */
@media (max-width: 768px) {
    th, td {
        font-size: 0.8rem;
        padding: 8px 10px;
        min-width: 100px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    main h2 {
        font-size: 1.5rem;
    }
}


/* Navigation Bar Styles */
.nav-bar {
    display: flex;
    justify-content: center;
    background-color: rgba(76, 175, 80, 0.85); /* Semi-transparent green */
    padding: 10px; /* Padding for the nav bar */
    border-radius: 5px; /* Rounded corners */
    box-shadow: 0 2px 4px rgba(172, 163, 163, 0.1); /* Subtle shadow for depth */
    margin-top: 5px; /* Reduced space above the nav bar */
}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 10px 20px; /* Padding for links */
    border-radius: 5px; /* Rounded corners for links */
    transition: background-color 0.3s, transform 0.2s; /* Smooth transitions */
    background-color: rgba(62, 142, 65, 0.8); /* Darker green with 80% opacity */
    margin: 0 5px; /* Space between links */
}

.nav-link:hover {
    background-color: rgba(54, 124, 60, 0.8); /* Slightly darker shade with 80% opacity on hover */
    transform: scale(1.05); /* Slightly enlarge on hover */
}

/* Optional: Add a subtle box-shadow to the header for better separation */
th::after {
    content: "";
    display: block;
    height: 2px;
    background: rgba(241, 241, 241, 0.1);
    margin-top: 5px;
}

@media (max-width: 600px) {
    header h1 {
      display: none;
    }
  }
