:root {
    --sage-light-text: #c2d4f8;
    --sage-dark:rgb(30 29 50);
}

/* Scroll Bar */
/* Track */
::-webkit-scrollbar {
    width: 8px; /* width of the scrollbar */
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: rgba(136,136,136,0.4);
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(136,136,136,1);
}

/* General */
.text-outline {
    text-shadow: -2px -2px 0 rgb(30,30,50), 2px -2px 0 rgb(30,30,50), -2px 2px 0 rgb(30,30,50), 2px 2px 0 rgb(30,30,50);
}
.text-outline-light {
    text-shadow: -2px -2px 0 rgb(210, 210, 220), 2px -2px 0 rgb(210, 210, 220), -2px 2px 0 rgb(210, 210, 220), 2px 2px 0 rgb(210, 210, 220);
}
/* Separator */
.separator {
    --separator-gap: 1rem;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}
.separator::before, .separator::after {
    content: '';
    height: 2px;
    background-color: silver;
    flex-grow: 1;
}
.separator::before {
    margin-right: var(--separator-gap);
}
.separator::after {
    margin-left: var(--separator-gap);
}
/* Section */
.sage__card {
    border-radius: 4px;
    border-top: 2px solid #15243a;
    border-right: 2px solid #15243a;
    border-bottom: 2px solid #15243a;
    border-left: 2px solid #15243a;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), inset 0 0 0 2px #4e5765;
    border-width: 1px;
    border-radius: 5px;
    flex: 1 0 0;
    position: relative;
    min-height: 3em;
    color: var(--sage-light-text);
    background-color: rgb(41,40,69);
}
.sage__card p,.sage__card .h1,.sage__card .h2,.sage__card .h3,.sage__card .h4 {
    color:var(--sage-light-text);
}
.sage__card .title {
    background-color: #818cf8;
    background: linear-gradient(130deg,hsl(249deg 60% 62%) 0%,hsl(245deg 31% 45%) 37%,hsl(244deg 31% 30%) 71%,hsl(243deg 43% 20%) 100%);
    /* background: linear-gradient(90deg, rgba(129,140,248,1) 42%, var(--sage-dark) 100%); */
    border-radius: 4px 4px 0 0;
    color: var(--sage-light-text);
    user-select: none;
    padding: 8px 16px 8px 16px;
}
.sage__card .body {
    padding: 16px;
}
/* Table */
.sage-table {
    /* margin: 0 15px; */
    overflow-x: scroll;
}
.sage-table select {
    background: transparent;
    color: var(--sage-light-text);
    border: none;
    padding: 2px 6px;
}
.sage-table select::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #888;
   /* Change the color as needed */
    transform: translateY(-50%);
}
.sage-table option {
    color: var(--sage-dark);
}
.sage-table .dataTables_wrapper {
    flex-direction: column;
}
.sage-table .dataTables_length {
    float: left;
}
.sage-table .dataTables_filter {
    float: right;
    margin-bottom: 15px;
}
.sage-table .dataTables_filter input {
    height: 30px;
    border-radius: .25rem;
    color: var(--sage-dark);
    margin-left: 15px;
}
.sage-table table {
    width: 100%;
    margin-top: auto;
    overflow-x:scroll;
    border-color:#4e5765;
}
.sage-table thead {
    margin-top: 10px;
}
.sage-table th {
    background-color: #1E1D32;
    text-align: center;
    cursor: pointer;
    user-select: none;
}
.sage-table th:first-child {
    border-radius: 1em 0 0 0;
}
.sage-table th:last-child {
    border-radius: 0 1em 0 0;
}
.sage-table tbody {
    background-color: #2C2B49;
}
.sage-table tr {
    border-bottom: 1px solid #1e1d32;
}
.sage-table tr:nth-child(even) td {
    background:#292845;
}
.sage-table th, .sage-table td {
    padding: 12px;
}
.sage-table::-webkit-scrollbar {
    width: 16px;
}
.sage-table::-webkit-scrollbar-track {
    background-color: #1E1D32;
    border-radius: 0 0 1em 1em;
}
.sage-table::-webkit-scrollbar-thumb {
    background-color: #A5CCF8;
    border-radius: 10px;
    border: 4px solid #1e1d32;
}
/* Footer Part */
.sage-table .dataTables_info {
    margin-top: 10px;
    margin-bottom: 10px;
    float:right;
}
.sage-table .dataTables_paginate {
    margin-top: 10px;
    margin-bottom: 10px;
    float:left;
    border-radius: 1rem;
    background: #3F3D80;
    padding: 7px;
}
.sage-table .paginate_button {
    cursor:pointer;
    padding:10px;
}
.sage-table .paginate_button.current {
    background-color: #a5ccf8;
    border-radius: 5px;
    font-weight: 700;
    color: #3f3d80;
    cursor: auto;
    user-select: none;
}
.sage-table .paginate_button.disabled {
    cursor:not-allowed;
}
/* Button */
.sage-table .dt-buttons {
    margin-top: 15px;
}
.sage-table .dt-button {
    padding: 6px;
    border: 2px solid #7E3AF2;
    font-weight: bold;
    margin: 5px;
    border-radius: 4px;
    color: var(--sage-light-text);
}
.sage-table .dt-button:hover {
    background: #632ebe;
}
.sage-table .buttons-excel {
    border: 2px solid #039c3e;
}
.sage-table .buttons-excel:hover {
    background: #016628;
}
/* Tabs */
.tab-pane {
    display: none; /* Hide all tabs by default */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.tab-pane.active.in {
    display: block; /* Show the active tab */
    opacity: 1;
}
.nav-tabs {
    border-bottom: 2px solid rgba(129, 140, 248, 1);
}

.nav-tabs li {
    padding: 5px;
    border-top: 1px solid rgba(129, 140, 248, 1);
    border-right: 1px solid rgba(129, 140, 248, 1);
    border-left: 1px solid rgba(129, 140, 248, 1);
    border-top-right-radius: 4px;
    border-top-left-radius: 4px;
    transition: all 0.3s ease-out;
}
.nav-tabs li:hover {
    background: rgba(129, 140, 248, 1);
    color: white;
}

.nav-tabs .active {
    background-image: linear-gradient(135deg, hsl(249deg 69% 65%) 0%, hsl(245deg 31% 46%) 33%, hsl(244deg 31% 29%) 67%, hsl(243deg 47% 17%) 100%);
}
/* MODAL */
.modal-sage-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}

.modal-sage {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px; /* Adjust modal width */
    max-height: 90vh;
    background: white;
    z-index: 1000;
    border-radius: 8px;
    overflow: hidden;
}

.modal-dialog {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modal-header {
    padding: 15px;
    border-bottom: 1px solid #333333;
    position: relative;
    flex-shrink: 0;
}

.modal-body {
    padding: 15px;
    overflow-y: auto;
    flex-grow: 1;
    max-height: calc(90vh - 120px);
}

.modal-footer {
    padding: 15px;
    border-top: 1px solid #333333;
    position: relative;
    flex-shrink: 0;
}

.close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
}

