/* ====================== GLOBAL STYLES ====================== */
* {
    font-family: 'Open Sans', Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: rgba(33, 37, 41,0.1);
}

a {
    text-decoration: none;
    color: white;
}

a:hover {
    color: white;
}

/* ====================== LOADING OVERLAY ====================== */
/* Fullscreen overlay */
#loadingSpinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Hidden by default (will show via JS) */
#loadingSpinner.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Spinner element */
.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #027C8E; /* Theme color */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

/* Spin keyframes */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ====================== SIDEBAR LAYOUT ====================== */
/* Main layout side bar */
.main-layout-side-bar {
    max-width: 250px;
    min-width: 250px;
    height: 100vh;
    position: fixed;
    background: rgba(33, 37, 41);
    padding: 20px;
}

/* Main layout side bar content */
.side-bar-content {
    display: flex;
    flex-direction: column;
}

/* Main layout side bar divider */
.side-bar-content hr {
    color: white;
    height: 1px;
}

/* Main layout side bar content parent */
.side-bar-parent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    cursor: pointer;
}

.side-bar-content-title {
    color: white;
    font-size: 20px;
}

/* Main layout side bar content drop down */
.dropdown-icon {
    color: white;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.dropdown-icon.rotated {
    transform: rotate(-180deg);
}

/* Main layout side bar content child container */
.side-bar-children {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
    padding-left: 15px;
    margin-top: 5px;
}

.side-bar-parent-group.collapsed .side-bar-children {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

/* Main layout side bar content child */
.side-bar-content-links a {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 5px;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.side-bar-content-links a:hover,
.side-bar-content-links a.active {
    background: rgba(255, 255, 255, 0.1);
}

.side-bar-content-links-title {
    color: white;
    opacity: 0.8;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.side-bar-content-links a:hover .side-bar-content-links-title,
.side-bar-content-links a.active .side-bar-content-links-title {
    opacity: 1;
}

/* Main layout side bar content user settings */
.side-bar-user-settings {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.side-bar-user-settings button {
    width: 100%;
    padding: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    text-align: left;
}

.side-bar-user-settings button:hover,
.side-bar-user-settings button.active {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
}

/* ====================== MAIN CONTENT LAYOUT ====================== */
/* Main content layout */
.main-content-layout {
    width: calc(100% - 250px);
    margin-left: 250px;
    padding: 20px;
}

/* Index page title */
.index-title {
    color: white;
    padding: 20px;
    background: rgba(33, 37, 41);
}

/* Index page notes */
.index-note {
    display: flex;
    align-items: center;
    gap: 5px;
    color: black;
    padding: 10px;
    background: white;
    border-left: 5px solid #008080;
    margin: 30px 0 10px 0;
}

/* Index page note icon */
.index-note i {
    font-size: 20px;
}

/* Index page date filter */
.index-date-range {
    display: flex;
    flex-direction: column;
}

.index-date-range input {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    color: black;
}

.index-date-range-button {
    display: flex;
    gap: 15px;
}

/* Index page buttons */
.date-filter, .edit {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    outline: none;
    color: white;
    background: rgba(33, 37, 41);
}

.date-filter:hover, .edit:hover {
    background: rgba(55, 59, 63);
}

.export-to-excel, .back-to-list,
.add-user, .index-filter button {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    outline: none;
    color: white;
    background: rgba(2, 124, 142);
}

.export-to-excel:hover, .back-to-list:hover, 
.add-user:hover, .index-filter button:hover, 
.index-add button:hover {
    background: rgba(2, 98, 117);
}

.index-date-range-start, .index-date-range-end {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 10px;
}

/* Index page search filter */
.index-filter {
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 30px 0 30px 15px;
}

.index-filter input {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    outline: none;
}

.index-add {
    margin-bottom: 15px;
}

/* Section Titles */
.section-title {
    font-weight: 600;
    font-size: 20px;
    color: rgba(33, 37, 41);
    margin: 30px 0 10px 0;
    border-left: 5px solid #008080;
    padding-left: 10px;
}

/* Table layout */
table {
    width: 100%;
    border-collapse: collapse;
}

th, dt {
    text-transform: uppercase;
}

td:hover {
    cursor: pointer;
}

tbody tr:hover {
    background-color: #f1f3f5;
    transition: background-color 0.2s ease;
}

.details-row {
    margin: 20px 0 0 15px;
}

.main-layout-footer {
    width: calc(100% - 250px);
    margin-left: 250px;
    padding: 20px;
    font-size: 12px;
    position: absolute;
    bottom: 0;
}

/* Index page form conatiner */
.form-container {
    background: white;
    border-radius: 6px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.form-group label {
    font-size: 18px;
    color: rgba(33, 37, 41);
    margin-bottom: 8px;
}

.form-control {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: rgba(2, 124, 142);
    box-shadow: 0 0 0 3px rgba(2, 124, 142, 0.1);
}