/* Styles for Light Mode */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700&display=swap');

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #F0F2F5; /* Light grey background */
    color: #2D3748; /* Dark text color */
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #E2E8F0; /* Light track */
}

::-webkit-scrollbar-thumb {
    background: #4A90E2; /* Electric blue */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #63B2F2;
}

.container {
        padding: 0rem;
        max-width: 100%;
        margin: auto;
    }

.space-y-8 > * + * { margin-top: 2rem; }
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.grid { display: grid; }
.cols-1 { grid-template-columns: 1fr; }
.lg\:cols-3 { grid-template-columns: repeat(3,1fr); }
.lg\:col-span-2 { grid-column: span 2; }
.gap-8 { gap: 2rem; }
.mb-6 { margin-bottom: 1.5rem; }
.text-dark-blue { color: #2D3748; } /* New text color */
.text-light-slate { color: #718096; } /* New text color */

/* Enhanced Header Title */
.title {
    font-family: 'Orbitron', sans-serif; /* Futuristic font for main title */
    font-size: 2.5rem; /* Larger font size */
    font-weight: 700;
    display: flex;
    align-items: center;
    color: #1A527A; /* Deep blue title */
    text-shadow: 0 0 10px rgba(26, 82, 122, 0.3); /* Subtle glow effect */
}
.title .fas {
    font-size: 2.2rem; /* Larger icon */
    margin-right: 0.75rem;
    color: #0E9F9F; /* Teal accent */
}
.subtitle {
    margin-top: 0.75rem; /* Slightly more space */
    font-size: 1.1rem; /* Slightly larger */
    color: #4A5568; /* Muted grey for description */
}

/* Panel Styling (Light Glassmorphism inspired) */
.panel {
    background: rgba(255, 255, 255, 0.7); /* Slightly transparent background */
    backdrop-filter: blur(15px); /* Stronger blur effect */
    border: 1px solid rgba(74, 144, 226, 0.2); /* Light blue transparent border */
    border-radius: 1.5rem; /* More rounded corners */
    padding: 2rem; /* More generous padding */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); /* Light shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.panel:hover {
    transform: translateY(-3px); /* Lift effect on hover */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 0 25px rgba(74, 144, 226, 0.2); /* Enhanced shadow and glow */
}

.panel-title {
    font-size: 1.5rem; /* Larger title */
    font-weight: 600;
    display: flex;
    align-items: center;
    color: #1A527A; /* Deep blue for section titles */
    margin-bottom: 1.5rem; /* More space below title */
}
.panel-title .fas {
    font-size: 1.35rem; /* Larger icon */
    margin-right: 0.75rem;
    color: #7957D5; /* Purple accent for filter icon */
}
.panel-title .fa-search {
    color: #2ECC71; /* Green accent for search icon */
}

/* Column List Checkboxes */
.col-list {
    display: grid; /* Use grid for better alignment of checkboxes */
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Responsive columns */
    gap: 0.75rem;
}
.col-list label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: #4A5568; /* Checkbox label color */
    padding: 0.5rem 0; /* Add some padding */
    transition: color 0.2s ease;
}
.col-list label:hover span {
    color: #1A527A; /* Darker blue on hover */
}
.col-list input[type="checkbox"] {
    appearance: none; /* Hide default checkbox */
    -webkit-appearance: none;
    width: 1.25rem; /* Larger checkbox */
    height: 1.25rem;
    border: 2px solid rgba(74, 144, 226, 0.4); /* Blue border */
    background: rgba(255, 255, 255, 0.8); /* Light background */
    border-radius: 0.35rem; /* Slightly more rounded */
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}
.col-list input[type="checkbox"]:checked {
    background-color: #0E9F9F; /* Teal when checked */
    border-color: #0E9F9F;
    box-shadow: 0 0 8px rgba(14, 159, 159, 0.4); /* Glow when checked */
}
.col-list input[type="checkbox"]:checked::after {
    content: '\2713'; /* Checkmark icon */
    font-size: 0.8rem;
    color: #F0F2F5; /* Light checkmark */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.col-list input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.3); /* Focus ring */
}

/* Form Fields */
.field label {
    font-size: 0.95rem;
    color: #4A5568;
    margin-bottom: 0.25rem;
}
.field input, .field select {
    padding: 0.85rem 1.25rem; /* More padding */
    background: rgba(255, 255, 255, 0.8); /* More opaque background */
    border: 1px solid rgba(74, 144, 226, 0.2); /* Blue border */
    border-radius: 0.75rem; /* More rounded */
    color: #2D3748; /* Dark text color */
    transition: all 0.3s ease;
    -webkit-appearance: none; /* Remove default select arrow */
    -moz-appearance: none;
    appearance: none;
}
.field input:focus, .field select:focus {
    outline: none;
    border-color: #0E9F9F; /* Teal on focus */
    box-shadow: 0 0 0 3px rgba(14, 159, 159, 0.3); /* Teal glow on focus */
    background: rgba(255, 255, 255, 0.95); /* Slightly brighter on focus */
}
.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); /* Darker arrow */
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

/* Export Buttons */
.export-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem; /* More space between buttons */
    margin-top: 1.5rem; /* Space from filter fields */
}
.btn {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem; /* More padding */
    gap: 0.75rem; /* More space for icon */
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Light shadow */
}
.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15); /* Enhanced shadow */
}

.btn.excel {
    background: linear-gradient(90deg, rgba(22,163,74,0.2) 0%, rgba(22,163,74,0.05) 100%);
    color: #1A5E3F; /* Dark green text */
    border-color: rgba(22,163,74,0.3);
}
.btn.excel:hover { border-color: #0E9F9F; box-shadow: 0 0 15px rgba(14, 159, 159, 0.3); }

.btn.pdf {
    background: linear-gradient(90deg, rgba(239,68,68,0.2) 0%, rgba(239,68,68,0.05) 100%);
    color: #A02C2C; /* Dark red text */
    border-color: rgba(239,68,68,0.3);
}
.btn.pdf:hover { border-color: #EF4444; box-shadow: 0 0 15px rgba(239,68,68,0.3); }

.btn.print {
    background: linear-gradient(90deg, rgba(59,130,246,0.2) 0%, rgba(59,130,246,0.05) 100%);
    color: #1A5E8E; /* Dark blue text */
    border-color: rgba(59,130,246,0.3);
}
.btn.print:hover { border-color: #3B82F6; box-shadow: 0 0 15px rgba(59,130,246,0.3); }

/* Table Styling */
.table-wrapper {
    overflow-x: auto;
    border-radius: 1rem; /* Match panel border-radius */
}
table {
    width: 100%;
    border-collapse: separate; /* Use separate to allow border-radius on cells/rows */
    border-spacing: 0;
    background: rgba(255, 255, 255, 0.7); /* Same as panel background for continuity */
    border-radius: 1rem;
    overflow: hidden; /* Ensures rounded corners are applied */
}
th, td {
    padding: 1.25rem 1.75rem; /* More padding for spaciousness */
    text-align: left;
    border-bottom: 1px solid rgba(74, 144, 226, 0.1); /* Subtle row dividers */
    color: #2D3748; /* Dark text */
}
thead {
    background: rgba(255, 255, 255, 0.9); /* Slightly darker header */
    position: sticky; /* Make header sticky for long tables */
    top: 0;
    z-index: 10; /* Ensure it stays above content */
}
th {
    font-weight: 600;
    color: #1A527A; /* Dark blue for header text */
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}
tbody tr {
    transition: background 0.2s ease, transform 0.2s ease;
}
tbody tr:hover {
    background: rgba(255, 255, 255, 0.9); /* Darker on hover */
    transform: translateX(5px); /* Subtle slide effect */
}
tbody tr:last-child td {
    border-bottom: none; /* No border on last row */
}

/* Icons in table */
.fa-building {
    color: #0E9F9F; /* Teal icon */
    margin-right: 0.5rem;
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem; /* More padding */
    border-radius: 1rem; /* Pill-shaped */
    font-size: 0.8rem; /* Slightly larger text */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.badge.active {
    background: rgba(22, 163, 74, 0.2); /* Green */
    color: #1A5E3F; /* Dark green text */
    border: 1px solid rgba(22, 163, 74, 0.4);
}
.badge.inactive {
    background: rgba(239, 68, 68, 0.2); /* Red */
    color: #A02C2C; /* Dark red text */
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.filters-div {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.filters-div .field {
    display: flex;
    flex-direction: column;
    min-width: 30%;
}
.main-sections{
        display: flex;
        width: 100%;
        justify-content: space-between;
}
.main-sections > div {
        width: 49%;
        background: rgba(255, 255, 255, 0.7); /* Slightly transparent background */
        backdrop-filter: blur(15px); /* Stronger blur effect */
        border: 1px solid rgba(74, 144, 226, 0.2); /* Light blue transparent border */
        border-radius: 1.5rem; /* More rounded corners */
        padding: 2rem; /* More generous padding */
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); /* Light shadow */
        transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Table Styling */
.table-wrapper {
    overflow-x: auto;
    border-radius: 1rem; /* Match panel border-radius */
}
table {
    width: 100%;
    border-collapse: separate; /* Use separate to allow border-radius on cells/rows */
    border-spacing: 0;
    background: rgba(255, 255, 255, 0.7); /* Same as panel background for continuity */
    border-radius: 1rem;
    overflow: hidden; /* Ensures rounded corners are applied */
}
th, td {
    padding: 1.25rem 1.75rem; /* More padding for spaciousness */
    text-align: left;
    border-bottom: 1px solid rgba(74, 144, 226, 0.1); /* Subtle row dividers */
    color: #2D3748; /* Dark text */
}
thead {
    background: rgba(255, 255, 255, 0.9); /* Slightly darker header */
    position: sticky; /* Make header sticky for long tables */
    top: 0;
    z-index: 10; /* Ensure it stays above content */
}
th {
    font-weight: 600;
    color: #1A527A; /* Dark blue for header text */
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}
tbody tr {
    transition: background 0.2s ease, transform 0.2s ease;
}
tbody tr:hover {
    background: rgba(255, 255, 255, 0.9); /* Darker on hover */
    transform: translateX(5px); /* Subtle slide effect */
}
tbody tr:last-child td {
    border-bottom: none; /* No border on last row */
}
.report-table > thead > tr > th {
    background-color: #0E9F9F;
    color: white;
}

.report-table > tbody > tr > td {
    color: black;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 5px;
}
.table > tbody > tr > td {
    color: black;
    /* background: white; */
    font-size: 13px;
    font-weight: 600;
    padding: 5px;
    border: none;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    .title {
        font-size: 2rem;
    }
    .subtitle {
        font-size: 0.9rem;
    }
    .panel {
        padding: 1.5rem;
    }
    .panel-title {
        font-size: 1.25rem;
    }
    .grid.md\:cols-2 {
        grid-template-columns: 1fr;
    }
    .col-list {
        grid-template-columns: 1fr;
    }
    .table-wrapper {
        margin: 0 -1rem; /* Adjust margin for full width on mobile */
        width: calc(100% + 2rem);
    }
    th, td {
        padding: 1rem 1.25rem;
    }
}
