/* Base styles */
body {
    background-color: #f5f5f5;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    font-size: 17px;
    overflow-x: hidden;
    max-width: 100%;
    margin-bottom: 35px;
}

#header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

h1 {
    position: relative;
    display: inline-block;
    font-size: 2em;
    padding: 0 20px;
}

h1::before,
h1::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 100vw;
    height: 1px;
    background-color: #808080;
}

h1::before {
    right: 100%;
}

h1::after {
    left: 100%;
}

/* Modal overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Modal container */
.modal {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 600px;
    height: 80%;
    max-height: 500px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-overlay.show .modal {
    opacity: 1;
    transform: translateY(0);
}

/* Modal header */
.modal-header {
    background-color: hwb(0 13% 87%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.modal-header:hover {
    background-color: #0B192C;
}

.modal-title {
    margin: 0;
    font-size: 1.4em;
    font-weight: 500;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
}

/* Tabs */
.tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #e0e0e0;
}


.tab {
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 0.9em;
    color: #666;
    flex-grow: 1;
    text-align: center;
}

@media (max-width: 600px) {
    .tab {
        min-width: 50%;
    }
}

.tab:hover {
    background-color: #e0e0e0;
}

.tab.active {
    background-color: white;
    border-bottom: 2px solid #0B192C;
    color: #333;
}

/* Tab content */
.tab-content {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: none;
}

.tab-content.active {
    display: block;
}

/* Modal footer */
.modal-footer {
    background-color: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-footer-left {
    display: flex;
    align-items: center;
}

.modal-footer-right {
    display: flex;
    gap: 10px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: 2px solid #55679C;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    background-color: transparent;
    color: #55679C;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background-color: #55679C;
    color: white;
}

.btn.btn-danger {
    border-color: #c62828;
    color: #c62828;
    background-color: #ffebee;
}

.btn.btn-danger:hover {
    background-color: #c62828;
    color: white;
}

.btn-save {
    background-color: #0B192C;
    color: white;
    margin-left: 10px;
}

.btn-cancel {
    background-color: white;
    border-color: #55679C;
    color: #55679C;
}

.btn-cancel:hover {
    background-color: #55679C;
    color: white;
}

.open-modal-btn {
    border-color: #55679C;
    color: #55679C;
    background-color: transparent;
}

.open-modal-btn:hover {
    background-color: #55679C;
    color: white;
}

/* Responsive design */
@media screen and (max-width: 600px) {
    .modal {
        width: 95%;
        height: 95%;
    }

    .tabs {
        flex-wrap: wrap;
    }

    .tab {
        flex-grow: 1;
        text-align: center;
    }
}

#open-button-container {
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.first-header {
    margin-top: 0;
}

.collapsible-table-card {
    background-color: white;
    border: 2px solid #294978;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
}

.collapsible-table-header {
    background-color: #294978;
    color: white;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 2px solid #55679C;
}

.collapsible-table-header:hover {
    background-color: #41628b;
    color: white;
}

.collapsible-table-header h2 {
    margin: 0;
    font-weight: 500;
}

.collapsible-table-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.collapsible-table-content.expanded {
    max-height: 2000px; /* Adjust this value based on your maximum expected table height */
}

.collapsible-table-wrapper {
    width: 100%;
    max-height: 400px; /* Set a maximum height for the table */
    overflow: auto; /* Enable both horizontal and vertical scrolling if needed */
}

.collapsible-table-wrapper.scrollable-x {
    overflow-x: auto;
}

.collapsible-table-wrapper.scrollable-y {
    overflow-y: auto;
}

.collapsible-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.collapsible-table th {
    position: sticky;
    top: 0;
    background-color: #f5f5f5;
    z-index: 1;
    text-align: left;
    padding: 16px;
    font-weight: 500;
    border-bottom: 1px solid #e0e0e0;
}

.collapsible-table td {
    text-align: left;
    padding: 8px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.collapsible-table tr:last-child td {
    border-bottom: none;
}

.collapsible-table thead tr:first-child th:first-child {
    border-top-left-radius: 8px;
}

.collapsible-table thead tr:first-child th:last-child {
    border-top-right-radius: 8px;
}

.collapsible-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

.collapsible-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

@media screen and (max-width: 600px) {
    .collapsible-table, .collapsible-table thead, .collapsible-table tbody, .collapsible-table th, .collapsible-table td, .collapsible-table tr {
        display: block;
    }
    .collapsible-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    .collapsible-table tr {
        border: 1px solid #e0e0e0;
        margin-bottom: 10px;
        border-radius: 8px;
        overflow: hidden;
    }
    .collapsible-table td {
        border: none;
        position: relative;
        padding-left: 50%;
        white-space: normal;
        text-align: left;
    }
    .collapsible-table td:before {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        content: attr(data-label);
        font-weight: bold;
    }
}


.svg-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 20vh;
  }
  

  #btns-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
}

#open-button-container {
    margin: 0;
}

.table-controls {
    display: flex;
    gap: 10px;
}

#collapseAllBtn, #openAllBtn {
    border-color: #55679C;
    color: #55679C;
    background-color: #e3f2fd;
}

#collapseAllBtn:hover, #openAllBtn:hover {
    background-color: #55679C;
    color: white;
}

/* About section styles */
.about-content {
    text-align: center;
    padding: 20px;
}

.about-text {
    font-size: 18px;
    margin-bottom: 20px;
}

.about-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.about-link {
    text-decoration: none;
    color: #55679C;
    padding: 10px 20px;
    border: 2px solid #55679C;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.about-link:hover {
    background-color: #55679C;
    color: white;
}

/* loader */

.loader {
    --color: rgb(0, 0, 0);
    --size-square: 30px;  /* Increased size */
    
    display: block;
    position: relative;
    width: 100%;
    display: grid;
    place-items: center;
}

.loader::before,
.loader::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
}

/* Loader --7 specific styles */
.loader.--7::before,
.loader.--7::after {
    width: var(--size-square);
    height: var(--size-square);
    background-color: var(--color);
}

.loader.--7::before {
    top: calc(50% - var(--size-square));
    left: calc(50% - var(--size-square));
    animation: loader-6 2.4s cubic-bezier(0, 0, 0.24, 1.21) infinite;
}

.loader.--7::after {
    top: 50%;
    left: 50%;
    animation: loader-7 2.4s cubic-bezier(0, 0, 0.24, 1.21) infinite;
}

/* Required animations */
@keyframes loader-6 {
    0%, 100% {
        transform: none;
    }
    
    25% {
        transform: translateX(100%);
    }
    
    50% {
        transform: translateX(100%) translateY(100%);
    }
    
    75% {
        transform: translateY(100%);
    }
}

@keyframes loader-7 {
    0%, 100% {
        transform: none;
    }
    
    25% {
        transform: translateX(-100%);
    }
    
    50% {
        transform: translateX(-100%) translateY(-100%);
    }
    
    75% {
        transform: translateY(-100%);
    }
}