:root {
    /* --bs-primary: #0d6efd; */
    /* --primary: #4f46e5;
    --primary-dark: #4338ca; */
    --secondary: #10b981;
    --text: #111827;
    --sidebar-bg: #020617;
    --gt-bg-theme: #5e0000;
    --gt-bg-theme-hover: #7b392a;
    --gt-bg-theme-active: #431010;
    --gt-bg-7b392a: #7b392a;
    --gt-bg-4f46e5: #4f46e5;
    --gt-bg-4338ca: #4338ca;
    --gt-bg-10b981: #10b981;
    --gt-bg-ffffff: #ffffff;
    --gt-bg-f3f4f6: #f3f4f6;
    --gt-bg-e5e7eb: #e5e7eb;
    /* --gt-bg-3b82f638: #3b82f638; */
    --gt-text-theme: #00105e;
    --gt-text-theme-hover: #7b392a;
    --gt-text-theme-active: #431010;
    --gt-text-ffffff: #ffffff;
    --gt-text-muted: #6b7280;
    --gt-text-e5e7eb: #e5e7eb;
    --gt-text-9ca3af: #9ca3af;
    --gt-text-d1d5db: #d1d5db;
    --gt-text-16a34a: #16a34a;
    --gt-border-theme: #5e0000;
    --gt-border-color: #dee2e6;
    --gt-border-theme-hover: #7b392a;
    --gt-border-theme-active: #431010;
    --gt-border-dee2e6: #dee2e6;
    --gt-border-94a3b840: #94a3b840;
    --gt-border-8a1c1c: #8a1c1c;
    --gt-rounded-8px: 8px;
}

:root {
    --bs-primary-rgb: 94, 0, 0;
    --bs-link-color: var(--gt-text-theme);
    --bs-link-hover-color: var(--gt-text-theme-hover);
    /* --bs-link-color: #5e0000;
    --bs-link-hover-color: #7b392a; */
}

body {
    /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; */
    background: var(--gt-bg-f3f4f6);
    color: var(--text);
    min-height: 100vh;
    font-size: 13px;
}

.auth-s1body {
    background: var(--gt-bg-theme);
}


/* Start Link */
a {
    text-decoration: none;
    color: var(--gt-text-theme);
}
/* End Link */


/* Start Background Color  */
.gt-bg-theme{
    background: var(--gt-bg-theme);
}
.gt-bg-f3f4f6{
    background: var(--gt-bg-f3f4f6);
}
/* End Background Color  */


/* Start Color */
.text-muted {
    color: var(--gt-text-muted) !important;
}
.gt-text-9ca3af {
    color: var(--gt-text-9ca3af);
}
.gt-text-16a34a {
    color: var(--gt-text-16a34a);
}
/* End Color */


/* Start Border Color */
.gt-border-94a3b840 {
    border-color: var(--gt-border-94a3b840) !important;
}
/* End Border Color */


/* Start Border Radius */
.rounded {
    border-radius: 6px;
}
.rounded-8 {
    border-radius: 8px;
}
.rounded-20 {
    border-radius: 20px;
}
/* End Border Radius */


/* Start Font Size */

.fs-8px {
    font-size: 8px;
}

.fs-11px {
    font-size: 11px;
}

.fs-12px {
    font-size: 12px !important;
}

.fs-13px {
    font-size: 13px;
}

.fs-14px {
    font-size: 14px;
}

.fs-15px {
    font-size: 15px;
}

.fs-16px {
    font-size: 16px;
}

.fs-17px {
    font-size: 17px;
}

.fs-22px {
    font-size: 22px;
}


/* End Font Size */


/* Start Line Height */

.line-height-normal {
    line-height: normal;
}


/* End Line Height */


/* Start Font Weight */

.fw-100 {
    font-weight: 100;
}

.fw-200 {
    font-weight: 200;
}

.fw-300 {
    font-weight: 300;
}

.fw-400 {
    font-weight: 400;
}

.fw-500 {
    font-weight: 500;
}

.fw-600 {
    font-weight: 600;
}

.fw-700 {
    font-weight: 700;
}

.fw-800 {
    font-weight: 800;
}

.fw-900 {
    font-weight: 900;
}


/* End Font Weight */


/* Start Cursor Pointer */

.cursor-pointer {
    cursor: pointer;
}


/* End Cursor Pointer */


/* Start Word Break & Word White */

.word-break-all {
    word-break: break-all;
}


/* End Word Break & White */


/* Start Line Clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* End Line Clamp */

/* Start Height Width */
.hw-40px{
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
}
.hw-80px{
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    max-width: 80px;
    max-height: 80px;
}
/* End Height Width */


/* Start Form Controll */

.form-label {
    font-weight: 500;
    margin-bottom: 4px;
}
.form-control, .form-select {
    font-size: 13px;
    border-radius: 12px;
    min-height: 36px;
}
.form-control:focus, .form-select:focus {
    border-color: var(--gt-border-8a1c1c);
    box-shadow: 0 0 0 0.25rem rgb(138 28 28 / 25%);
}

.form-s1group {
    position: relative;
}

.form-s1group i {
    position: absolute;
    top: 50%;
    left: 11px;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--gt-text-muted);
}

.form-s1group .form-control {
    padding-left: 32px;
    min-height: 44px;
}

.form-check {
    margin-bottom: 0;
}

.form-check-input {
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--gt-bg-theme);
    border-color: var(--gt-border-theme);
}

.form-check-input:focus {
    border-color: var(--gt-border-theme);
    box-shadow: 0 0 0 0.25rem rgba(94, 0, 0, 0.25);
}


/* End Form Controll */


/* Start All Rounder */

.btn {
    min-height: 36px;
    font-size: 13px;
}
/* .btn-sm {
    min-height: 32px;
} */

.gt-btn-logout {
    width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    padding: 6px 10px;
    background: transparent;
    color: var(--gt-text-e5e7eb);
    font-size: 12px;
}

.btn-primary {
    --bs-btn-color: var(--gt-text-ffffff);
    --bs-btn-bg: var(--gt-bg-theme);
    --bs-btn-border-color: var(--gt-border-theme);
    --bs-btn-hover-color: var(--gt-text-ffffff);
    --bs-btn-hover-bg: var(--gt-bg-theme-hover);
    --bs-btn-hover-border-color: var(--gt-border-theme-hover);
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: var(--gt-text-ffffff);
    --bs-btn-active-bg: var(--gt-bg-theme-active);
    --bs-btn-active-border-color: var(--gt-border-theme-active);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: var(--gt-text-ffffff);
    --bs-btn-disabled-bg: var(--gt-bg-theme);
    --bs-btn-disabled-border-color: var(--gt-bg-theme);
}

.gt-spin{
    animation-name: gt-spin;
    animation-duration: 1500ms;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}
@keyframes gt-spin {
    from {
        transform:rotate(0deg);
    }
    to {
        transform:rotate(360deg);
    }
}

/* End All Rounder */


/* Start DataTable */

.table-s1 {
    margin-top: -.5rem !important;
    /* overflow: hidden; */

}
.table-s1 div.dataTables_wrapper div.dataTables_filter input,
div.dataTables_wrapper div.dataTables_length select {
    box-shadow: unset;
}
.dt-scroll-body{
    min-height: 90px;
}
.table-s1 table.dataTable>thead>tr>th {
    font-size: 0.75rem;
    color: var(--gt-text-muted);
}
.table-s1 table.dataTable tbody td {
    font-size: 0.78rem;
    vertical-align: middle;
}
.table-s1 div.dataTables_wrapper div.dataTables_info {
    font-size: 11px;
}
.pagination {
    --bs-pagination-active-bg: var(--gt-bg-theme);
    --bs-pagination-active-border-color: var(--gt-border-theme);
}
.table-s1 div.dataTables_wrapper div.dt-paging ul.pagination {
    flex-wrap: wrap;
}
.table-s1 .dt-paging .page-link {
    font-size: 11px;
}
.table-s1 .dt-paging .page-link:focus {
    box-shadow: unset;
}
.table-s1 .dt-paging .disabled .page-link {
    background: transparent;
}


div.dt-processing>div:last-child{
    display: none;
}
.dt-scroll{
    position: relative;
}
/* .dt-processing::before {
    content: '';
    position: absolute;
    background: #0000000d;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 1;
} */
div.dt-processing{
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    /* height: 100%; */
    width: 100%;
    padding: 16px;
    margin-left: 0;
    margin-top: 0;
    text-align: center;
    z-index: 9;
    background: #0000000d;
    /* display: flex;
    justify-content: center;
    align-items: center; */
}
div.dt-processing .card{
    width: 200px;
}

[class*=loader-] {
    display: inline-block;
    width: 25px;
    height: 25px;
    color: inherit;
    vertical-align: middle;
    pointer-events: none;
}
.loader-01 {
    border: 4px dotted currentcolor;
    border-radius: 50%;
    -webkit-animation: 1s loader-01 linear infinite;
    animation: 1s loader-01 linear infinite;
}

@-webkit-keyframes loader-01 {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes loader-01 {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* End DataTable */


/* Start Sweetalert2 */
:root{
    --swal2-title-padding: 8px 16px 0 !important;
    --swal2-border-radius: 12px !important;
    --swal2-html-container-padding: 8px 16px 0px !important;
}
div:where(.swal2-icon) {
    margin: 35px auto .6em !important;
}
div:where(.swal2-container) h2:where(.swal2-title) {
    font-size: 20px !important;
}
div:where(.swal2-container) div:where(.swal2-html-container) {
    font-size: 14px !important;
}
div:where(.swal2-container) div:where(.swal2-actions){
    gap: 8px;
}
/* End Sweetalert2 */


/* Start Select 2 */
[type=search] {
    outline: unset;
}
.select2-container {
    /* width: 100% !important; */
}
.select2-container .select2-selection--single{
    height: 36px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 35px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}
.select2-container--default .select2-selection--single {
    border: 1px solid var(--gt-border-color);
    border-radius: 12px;
}
.select2-container .select2-selection--single .select2-selection__rendered{
    padding-left: 12px;
}
.select2-dropdown{
    border-color: var(--gt-border-color);
    border-radius: 12px;
    overflow: hidden;
}
.select2-results__option {
    padding: 6px 12px;
}
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable{
    background-color: var(--gt-bg-theme);
}
/* End Select 2 */


/* Start Login Page */

.auth-s1body .login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 12px;
}

.auth-s1body .login-card {
    max-width: 420px;
    width: 100%;
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.35);
}

.auth-s1body .login-card h1 {
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 4px;
}


/* .btn-login {
    width: 100%;
    border-radius: 999px;
    padding: 10px 16px;
    border: none;
    background: linear-gradient(135deg, var(--gt-bg-4f46e5), var(--gt-bg-4338ca));
    color: var(--gt-text-ffffff);
    font-weight: 600;
    margin-top: 4px;
} */
/* End Login Page */


/* Start Form Page */
.info-s1pill {
    font-size: 14px;
    background-color: rgba(94, 0, 0, 0.04);
    border-left: 4px solid var(--gt-border-theme);
    padding: 12px 14px;
    border-radius: 0.75rem;
}
.nav-s1 .nav-item{
    flex-grow: 1;
}
.nav-s1 .nav-item .nav-link{
    width: 100%;
    border-radius: 50rem;
    background: var(--gt-bg-ffffff);
    font-size: 14px;
    font-weight: 500;
}
.nav-s1 .nav-item .nav-link.active, .nav-s1 .nav-item .show>.nav-link{
    background: var(--gt-bg-theme);
}
/* End Form Page */


/* Start Sidebar */

.gt-s1sidebar.sidebar {
    width: 250px;
    background: var(--gt-bg-theme);
    color: var(--gt-text-e5e7eb);
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    transform: translateX(0);
}

.gt-s1sidebar .sidebar-header-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient( 135deg, var(--gt-bg-4f46e5), var(--gt-bg-10b981));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.gt-s1sidebar .sidebar-nav {
    flex: 1;
    padding: 8px 10px 12px;
    overflow-y: auto;
}

.gt-s1sidebar .sidebar-section-title {
    padding: 6px 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gt-text-9ca3af);
}

.gt-s1sidebar .sidebar-item {
    border-radius: 10px;
    padding: 8px 10px;
    margin: 2px 0;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gt-text-d1d5db);
    cursor: pointer;
}

.gt-s1sidebar .sidebar-item i {
    width: 18px;
    text-align: center;
    font-size: 13px;
}

.gt-s1sidebar .sidebar-item.active,
.gt-s1sidebar .sidebar-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gt-text-ffffff);
}

.gt-s1sidebar .sidebar-footer {
    padding: 12px 14px;
}

.gt-s1sidebar .sidebar-avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    border-radius: 50%;
    background: #fcf5e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--gt-text-theme);
}


/* End Sidebar */


/* Start Topbar */

.gt-s1topbar {
    padding: 10px 16px;
    background: var(--gt-bg-ffffff);
    border-bottom: 1px solid var(--gt-border-dee2e6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.gt-s1topbar .topbar-title h1 {
    font-size: 17px;
}

.gt-s1topbar .topbar-title p {
    font-size: 13px;
}

.badge-live {
    border-radius: 999px;
    background: #ecfdf3;
    color: #15803d;
    padding: 3px 9px;
    font-size: 0.7rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
}


/* End Topbar */


/* Start Main Layout */

.gt-s1main {
    margin-left: 250px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.gt-s1content {
    padding: 18px 16px 24px;
}

.page-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.page-subtitle {
    font-size: 13px;
    color: var(--gt-text-muted);
    margin-bottom: 0;
}


/* End Main Layout */


/* Start Dashboard */

.stat-card {
    border-radius: 14px;
    background: var(--gt-bg-ffffff);
    padding: 16px 14px;
    display: flex;
    gap: 10px;
    align-items: center;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gt-text-ffffff);
    flex-shrink: 0;
}

.stat-icon.blue {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.stat-icon.green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.stat-icon.orange {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.stat-icon.purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.stat-icon.amber {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.card-s1 {
    background: var(--gt-bg-ffffff);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    border: 0;
}

.card-s1 .card-header {
    padding: 16px;
    border-bottom: 1px solid var(--gt-border-dee2e6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: transparent;
}

.card-s1 .card-header h2 {
    font-size: 16px;
    margin: 0;
}

.card-s1 .card-header small {
    font-size: 12px;
    color: var(--gt-text-muted);
}

.btn-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--gt-rounded-8px);
    border: 1px solid var(--gt-border-dee2e6);
    background: var(--gt-bg-ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    padding: 0;
}

.btn-icon i {
    line-height: normal;
    vertical-align: middle;
}


/* End Dashboard */


/* .content-section {
    display: none;
}
.content-section.active {
    display: block;
} */

.status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 500;
}

.status-success {
    background: #ecfdf3;
    color: #15803d;
}

.status-warning {
    background: #fffbeb;
    color: #b45309;
}

.status-danger {
    background: #fef2f2;
    color: #b91c1c;
}

.status-info {
    background: #eff6ff;
    color: #1d4ed8;
}


/* Diagnosis detail */

.diag-block h5 {
    font-size: 14px;
    margin-bottom: 4px;
}

.diag-block p,
.diag-block li {
    font-size: 13px;
}

.tag-pill {
    display: inline-flex;
    border-radius: 16px;
    padding: 2px 8px;
    font-size: 11px;
    background: var(--gt-bg-e5e7eb);
}


/* Modal */

.modal-title {
    font-size: 16px;
}

.modal-diagnosis .modal-dialog {
    max-width: 780px;
}

.btn-close:focus{
    box-shadow: none;
}
.modal-footer>*{
    margin: 0;
}
.modal-footer{
    gap: 8px;
}
