:root {
    --main-color: #568fac;
    --main-color-light: #b3e3fb;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 10px;
    border: 3px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: #467699;
}

.content-area {
    /* overflow: hidden; */
    height: 100%;
    min-height: 0;
}

.tab-container {
    height: 100%;
    min-height: 0;
    width: 100%;
    font-size: .9rem;
    overflow: hidden;
}

.tab-links {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 6px 20px 0 20px;
    gap: 20px;
    background-color: var(--main-color);
    /* margin-bottom: 1rem; */
    /* border: 1px solid blueviolet; */
    /* border-radius: 10px; */
    border-radius: 8px 8px 0px 0px;
}

.tab-link {
    /* padding: 6px 20px; */
    min-width: 140px;
    height: 35px;
    position: relative;
    border: none;
    padding: 0 20px;
    background: transparent;
    cursor: pointer;
    /* border-radius: 20px; */
    /* border: 1px solid black; */
    /* border-bottom: 1px solid black;
            border-right: 1px solid black; */
    border-radius: 8px 8px 0px 0px;
    color: #fff;
    font-size: .9rem;
    font-weight: 500;
    transition: all .3s ease;
}

.tab-link:hover {
    background-color: #fff;
    color: var(--main-color);
    position: relative;
}

.tab-link.active {
    background-color: #fff;
    color: var(--main-color);
    border-radius: 0px;
    border-bottom: none;
    border-radius: 8px 8px 0px 0px;
}

.tab-content {
    padding: 10px 15px;
    padding-bottom: 0;
    /* border: 1px solid red; */
    flex: 1;
    height: 100%;
    min-height: 0;
    position: relative;
    background-color: #fff;
    /* overflow: hidden; */
}

.tab-content .pagination {
    flex: 0 0 auto;
    z-index: 2;
    min-height: 0;
    background-color: var(--main-color-light);
    /* position: sticky; */
    /* position: fixed;
    bottom: 0px;
    right: 20px;
    z-index: 10; */
    /* opacity: .3; */
    padding: 8px 15px;
    display: flex;
    justify-content: end;
    gap: 10px;
    /* transform: translateX(90%); */
    /* transition: transform .3s ease; */
    /* justify-content: space-evenly; */
}


.tab-content .pagination button {
    padding: 4px 15px;
    font-size: .8rem;
    line-height: 1rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    /* border-radius: 6px; */
    background-color: #fff;
    border: 2px solid transparent;
}

.tab-content .pagination button:hover {
    background-color: var(--main-color-light);
    border-color: #fff;
    /* color: #fff; */
}

.tab-content .panel-table-container {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
    /* Optionally set max-height if needed */
    /* max-height: calc(100% - heights_of_top_and_bottom); */
}

.panel-table {
    width: 100%;
}

.panel-table,
.panel-table th,
.panel-table td {
    /* width: 100%; */
    font-size: .8rem;
    padding: 10px;
    text-align: left;
    border: 1px solid rgb(210, 210, 210);
    border-collapse: collapse;
    /* table-layout: fixed; */
    /* background-color: var(--main-color-light); */
}

.panel-table tr.table-head {
    background-color: var(--main-color-light);
}

/* .panel-table tr {
            background-color: #ddd;
            display: table;
            width: 100%;
            margin-bottom: 4px;
        } */


.panel-table td.actions i {
    vertical-align: middle;
    margin-left: 10px;
    cursor: pointer;
}

/* Toggle Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    margin-left: 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 36px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

/* When Checked */
input:checked+.slider {
    background-color: var(--main-color);
}

input:checked+.slider:before {
    transform: translateX(16px);
}


.status-text {
    text-transform: capitalize;
}


.panel-table td.actions i:hover {
    color: #8b8b8b;
}

/* .tab-panel {
            display: none;
            padding: 1rem;
            border: 1px solid #ccc;
            border-radius: 5px;
            background-color: #f9f9f9;
        }

        .tab-panel.active {
            display: block;
        } */

.tab-panel {
    display: flex;
    flex-direction: column;
    opacity: 0;
    /* transform: translateY(10px); */
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    height: 0;
    min-height: 0;
    /* overflow: hidden; */
    /* background-color: #fff; */
}

.tab-panel.active {
    opacity: 1;
    /* transform: translateY(0); */
    pointer-events: auto;
    height: 100%;
    /* overflow: auto; */
}

.tab-panel .top-row {
    flex: 0 0 auto;
    min-height: 0;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    /* border: 1px solid; */
    margin-bottom: 10px;
}

.tab-panel .top-row .search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-bar .search-btn {
    background-color: var(--main-color);
}

.search-bar .search-btn:hover {
    background-color: var(--main-color-light);
}

.tab-panel .top-row .search-bar input {
    height: 100%;
    line-height: 1rem;
    padding: 4px 8px;
}

.tab-panel .top-row .add-btn {
    padding: 6px 12px;
    font-size: .7rem;
    border: none;
    outline: none;
    background-color: var(--main-color);
    color: #fff;
    line-height: 1rem;
    /* border-radius: 4px; */
    cursor: pointer;
}

.tab-panel .top-row .add-btn:hover {
    background-color: var(--main-color-light);
}

.add-btn i {
    font-size: .9rem;
    margin-right: 6px;
    vertical-align: middle;
}

#modal-department .modal,
#modal-hod .modal,
#modal-rm .modal,
#modal-executive .modal {
    height: fit-content;
    min-height: auto;
}

#modal-department .modal,
#modal-sub-department .modal {
    width: 40vw;
}

/* .modal-dialog-admin {

}
.modal-dialog-admin .modal {
    width: 60%;
    height: 70vh;
}

.modal-dialog-admin .modal-body {
    background-color: red;
    height: fit-content;
    flex: 0;
    border: 1px solid red;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-dialog-admin .modal-body .form-container {
    background-color: blue;
    border: 1px solid blue;
    width: 70%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.modal-dialog-admin .form-container .row {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.form-container .row .form-group {
    flex: 1;
    flex-basis: 50%;
    background-color: gray;;
}


.form-container .form-group label {
    display: block;
    font-size: .8rem;
}

.form-container .form-group input {
    width: 90%;
} */