/* For Webkit-based browsers (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 6px;  /* Vertical scrollbar width */
    height: 6px; /* Horizontal scrollbar height */
}

/* Scrollbar track */
::-webkit-scrollbar-track {
    background: #f2f2f2; /* Light grey background */
    border-radius: 10px;
}

/* Scrollbar handle */
::-webkit-scrollbar-thumb {
/*    background: linear-gradient(45deg, #17A2B8, #6F42C1); */
background: #989191;
border-radius: 10px;
}

/* Scrollbar handle on hover */
::-webkit-scrollbar-thumb:hover {
/*    background: linear-gradient(45deg, #138496, #5A3E9C); */
background: #989191;
}

table, table.dataTable {
    border-collapse: collapse !important;
}

table th {
    text-align: center !important;
}
table td {
    color: #232f3e;
}
div#example1_filter {
    display: -webkit-inline-box;
}
.btn-check:focus+.btn, .btn:focus, .btn-close:focus, .btn-check:focus+.btn-primary, .btn-primary:focus, .btn-secondary:focus {
    box-shadow: none;
}
.form-control:focus, .form-select:focus {
    border-color: #ff9900;
    box-shadow: none;
}
.select2-container .select2-selection--single {
    height: calc(3.5rem + 2px);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 10px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 2.5rem;
    padding-left: 0;
    color: #212529;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #ff9900;
    outline: 0;
}
.select2-selection.is-valid {
    border-color: #198754 !important;
}

.select2-selection.is-invalid {
    border-color: #dc3545 !important;
}

.custom-modal .modal-content {
    border-radius: 16px;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
    transform: scale(0.98);
    animation: scaleIn 0.3s ease-in-out forwards;
}

@keyframes scaleIn {
    from {
      opacity: 0;
      transform: scale(0.95);
  }
  to {
      opacity: 1;
      transform: scale(1);
  }
}

.custom-modal .modal-content {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

/* Wrapper for custom float effect */
.select2-floating-wrapper {
  position: relative;
}

/* Label styles (matches Bootstrap's form-floating) */
.select2-label {
  position: absolute;
  top: 0.65rem;
  left: 0.75rem;
  transition: 0.2s ease;
  padding: 0 0.25rem;
  font-size: 1rem;
  color: #000000;
  pointer-events: none;
  z-index: 10;
}

/* When input has focus or value, float the label */
.select2-label.float {
  color: #495057;
}

/* Match Bootstrap's input box size */
.select2-container--default .select2-selection--single {
  height: calc(3.5rem + 2px);
  padding: 1.5rem 0.75rem 0.375rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  background-color: #fff;
  display: flex;
  align-items: center;
}

/* Match text alignment inside Select2 */
.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0;
  margin: 0;
  line-height: 1.5rem;
  color: #212529;
  background-color: transparent;
}

/* Remove overlap caused by default height */
.select2-container .select2-selection__arrow {
  height: 100%;
}

.select2-floating-wrapper {
  position: relative;
}

.select2-floating-wrapper .select2-container--default .select2-selection--multiple {
  padding: 1.625rem 0.75rem 0.625rem 0.75rem;
  min-height: calc(3.5rem + 2px); /* matches Bootstrap input height */
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  background-color: #fff;
}

.select2-floating-wrapper .floating-fake-label {
  position: absolute;
  top: 0.5rem;
  left: 0.75rem;
  font-size: 0.875rem;
  color: #6c757d;
  background: #fff;
  padding: 0 0.25rem;
  z-index: 2;
  transition: 0.2s ease;
  pointer-events: none;
}

span.error-span-item {
    color: #fb2020;
}
select {
    background-image:none !important;
}
.login_main{
    background-image: url(Assets/login-page-bg.png);
    background-size: cover;
    height: 100vh;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.login_1{
    background: #232f3e;
    padding: 50px;
    border-radius: 30px 0px 30px 0px;
    border: 4px solid;
    border-color: #674f2b;
    border-bottom: 25px solid #674f2b;
    border-right: none;
}
.login_1 input{
    height: 45px;
    margin-bottom: 10px;
}
.login_1 button{
    cursor: pointer;
    display: block;
    background-color: #f90;
    color: #fff;
    font-size: 18px;
    width: 150px;
    padding: 8px 0;
    border-radius: 10px;
    margin: 30px auto 0 auto;
    outline: none;
    border: none;
}
.theme-btn, button.dt-button.buttons-csv.buttons-html5 {
    cursor: pointer;
    display: block;
    background-color: #f90;
    color: #fff;
    font-size: 18px;
    width: auto;
    padding: 8px 16px;
    border-radius: 10px;
    margin: 20px;
    outline: none;
    border: none;
    text-decoration: none;
}
.theme-btn:hover, button.dt-button.buttons-csv.buttons-html5:hover {
    color: #fff;
    background-color: #e88c03;
}
button.dt-button.buttons-csv.buttons-html5:focus {
    background: #f90;
}
.page-item.active .page-link {
    color: #fff;
    background-color: #f90;
    border-color: #f90;
}
.page-item.active .page-link:focus {
    box-shadow: none;
}
.page-link {
    color: #f90;
}
.page-link:hover {
    color: #f90;
}
.page-link:focus {
    box-shadow: none;
}
.login_1 h4{
    color: #fff;
    text-transform: uppercase;
    font-size: 20px;
    margin-bottom: 15px;
}
.login_1 a{
    display: block;
    color: #fff !important;
    margin-top: -10px;
    cursor: pointer;
    font-size: 14px;
}
.login_1 aside img{
    display: block;
    margin: 0 auto 50px auto;
    max-width: 180px;
}
.login_1 form img{
    margin: -25px 10px 0 0;
    float: right;
    position: relative;
    top: 32px;
}
.trideep-stylish-box {
    text-align: center;
    color: #232f3e;
    background: #fff;
    padding: 20px;
    margin: 10px 0;
    border-radius: 10px;
    box-shadow: 0px 0px 50px 1px rgb(0 0 0 / 10%);
}
table {
    margin-bottom: 0 !important;
    width: -webkit-fill-available;
}
table th {
    text-align: center !important;
}
table tbody td {
    color: #232f3e;
}
tbody, td, tfoot, th, thead, tr {
    border-width: inherit;
    padding: 5px;
}
div.dt-buttons {
    float: none;
    display: inline-block;
}
div.dataTables_length {
    margin: 0 15px 15px;
    display: inline-block;
}
div.dataTables_filter {
    display: -webkit-inline-box;
}
div.dataTables_wrapper div.dataTables_paginate {
    margin-bottom: 1rem;
}
.btn-check:focus+.btn, .btn:focus, .btn-close:focus, .btn-check:focus+.btn-primary, .btn-primary:focus, .btn-secondary:focus {
    box-shadow: none;
}
.form-control:focus, .form-select:focus {
    border-color: #ff9900;
    box-shadow: none;
}
/*select option:hover {
    color: #fff;
    background-color: #ff9900 !important;
}
select option:checked {
    color: #fff;
    background-color: #ff9900 !important;
    box-shadow: 0 0 1em 100px #ff9900 inset;
}*/
@media (max-width: 576px) { /* Adjust for small screens */
    .modal-body {
        max-height: 50vh !important;
        overflow-y: auto !important;
    }
}
@media (min-width: 576px) { /* Normal height for larger screens */
    .modal-body {
        max-height: 70vh !important;
        overflow-y: auto !important;
    }
}
@media (max-width: 768px) {
    #detailsBasedOn h5 {
        flex-direction: column; /* Stack items on smaller screens */
        text-align: center;
    }
    #detailsBasedOn form {
        justify-content: center !important;
        flex-direction: column;
        width: 100%;
    }
    #detailsBasedOn select {
        width: 100% !important; /* Make select boxes full width on small screens */
    }
}
.custom-csv-file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    margin-bottom: 0;
}
.custom-csv-file-upload-input {
    position: relative;
    z-index: 2;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    margin: 0;
    overflow: hidden;
    opacity: 0;
}
.custom-csv-file-upload-label {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    height: calc(1.5em + 0.75rem + 2px);
    padding: .375rem .75rem;
    overflow: hidden;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #f2f2f2;
    border: 1px solid #8f959e;
    border-radius: .5rem;
}
.custom-csv-file-upload-label {
    transition: background-color 0.15sease-in-out, border-color 0.15sease-in-out, box-shadow 0.15sease-in-out;
}
@media (min-width: 576px) {
    .custom-csv-file-upload-label {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 0;
    }
}
.accordion-button {
    color: #ff9900;
}
.accordion-button:not(.collapsed) {
    color: #fff;
    background-color: #232f3e;
}
.accordion-button::after {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff9900'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>");
}
.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>");
}
.accordion-button:focus {
    border-color: #fff;
    box-shadow: none;
}

.modal-body {
    max-height: calc(100vh - 200px) !important;
    overflow-y: auto !important;
}
.modal {
    overflow-y: auto !important;
}

textarea#visitRemarksEdit {
    height: auto;
}

/*3D glass style*/
body {
    min-height: 100vh;
    background:
        linear-gradient(135deg, #1f2933, #111827),
        url('Assets/glass-bg.png'); /* optional */
    background-size: cover;
    background-attachment: fixed;
}

.trideep-stylish-box {
    background: rgba(255, 255, 255, 0.15);
    /*backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);*/

    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.35),
        inset 0 1px 1px rgba(255, 255, 255, 0.4);

    padding: 16px;
    margin-bottom: 24px;

    color: #111827;;
}

.trideep-stylish-box:hover {
    transform: translateY(-4px);
    transition: 0.3s ease;
    box-shadow:
        0 18px 40px rgba(0,0,0,0.45),
        inset 0 1px 1px rgba(255,255,255,0.5);
}

.glass-title {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);

    color: #111827;
    font-weight: 600;

    box-shadow:
        0 4px 10px rgba(0,0,0,0.25),
        inset 0 1px 1px rgba(255,255,255,0.4);
}

.table {
    background: rgba(255,255,255,0.85);
    border-radius: 12px;
    overflow: hidden;
}

.table thead {
    background: rgba(17, 24, 39, 0.85) !important;
    color: #ffffff;
}

.table tbody tr {
    background: rgba(255,255,255,0.95) !important;
}

.chart-container {
    background: rgba(255,255,255,0.12);
    border-radius: 16px;
    backdrop-filter: blur(12px);
}

.theme-btn,
button.dt-button.buttons-csv.buttons-html5 {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 18px;
    margin: 20px;

    font-size: 16px;
    font-weight: 600;

    color: #111827;

    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.45);

    outline: none;
    text-decoration: none;

    transition: all 0.25s ease;
}

.theme-btn:hover,
button.dt-button.buttons-csv.buttons-html5:hover {
    color: #111827;

    transform: translateY(-2px);

    background: rgba(255, 255, 255, 0.35);

    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.35),
        inset 0 1px 1px rgba(255, 255, 255, 0.55);
}

.theme-btn:active,
button.dt-button.buttons-csv.buttons-html5:active {
    transform: translateY(0);

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.25),
        inset 0 3px 6px rgba(0, 0, 0, 0.2);
}

.theme-btn:focus-visible,
button.dt-button.buttons-csv.buttons-html5:focus-visible {
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.35),
        0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Pagination wrapper spacing */
.pagination {
    margin-top: 16px;
}

div.dataTables_wrapper div.dataTables_paginate {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Base pagination link */
.page-link {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 38px;
    height: 38px;
    padding: 6px 12px;

    font-weight: 600;
    font-size: 14px;

    color: #111827;

    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 10px;

    margin: 0 4px;

    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.45);

    transition: all 0.25s ease;
}

/* Hover state */
.page-link:hover {
    color: #111827;

    background: rgba(255, 255, 255, 0.35);

    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.6);

    transform: translateY(-1px);
}

/* Active page */
.page-item.active .page-link {
    color: #111827;

    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, 0.45);

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.35),
        inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

/* Disabled state */
.page-item.disabled .page-link {
    opacity: 0.45;
    cursor: not-allowed;

    background: rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

/* Focus (keyboard accessibility) */
.page-link:focus-visible {
    outline: none;

    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.35),
        0 6px 18px rgba(0, 0, 0, 0.3);
}

/* Previous / Next arrows */
.page-item:first-child .page-link,
.page-item:last-child .page-link {
    font-size: 16px;
    font-weight: 700;
}

/* DataTables pagination alignment fix */
.dataTables_wrapper .dataTables_paginate {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.page-link:focus, .page-link:focus-visible {
    color: #111827;
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.35),
        0 6px 18px rgba(0, 0, 0, 0.3);
}

/* ================================
   Glass Form Select (Bootstrap)
   ================================ */
.select2-container .select2-selection--single {
    cursor: pointer;
    color: #111827;

    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.45);

    transition: all 0.25s ease;

    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-control, .form-select {
    cursor: pointer;
    display: block;
    width: 100%;
    padding: 8px 42px 8px 14px;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;

    color: #111827;

    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.45);

    transition: all 0.25s ease;

    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-select, .custom-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba(17,24,39,0.8)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 14px 10px !important;
}

.form-control:hover, .form-select:hover {
    background: rgba(255, 255, 255, 0.35);

    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.35),
        inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.form-control:focus,
.form-control:focus-visible,
.form-select:focus,
.form-select:focus-visible {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);

    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.35),
        0 6px 18px rgba(0, 0, 0, 0.35);
}

.form-control:disabled, .form-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

