/* Modern UI Updates - Override existing classes without creating new ones */

/* Enhanced color scheme with better contrast - Adding new variables only */
:root {
    --theme-color-light-2: #e3c589;
    --theme-color-dark-2: #ad8b4b; /* New darker shade for gradient */
    --gray-2: #dee2e6;
    --gray-3: #ced4da;
    --lightblue-2: #e9ecef;
    --theme-font-weight: 400;
    --border-radius: 8px;
    --border-light: 1px solid rgba(0, 0, 0, 0.1);
    --border-theme: 1px solid var(--theme-color);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced body styling - adding line-height */
body {
    line-height: 1.6;
}

/* Enhanced typography - adding letter spacing and weight */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

.navbar{
    box-shadow: none !important;
    border-bottom: 1px solid var(--theme-color);
}
.nav_profile{
    border: none;
}
/* Modern card styling - adding border and transition */
.card {
    border-radius: var(--border-radius);
    border: var(--border-light);
    transition: var(--transition);
}

.card:hover {
    border: var(--border-theme);
    transform: translateY(-2px);
}

.card-header {
    border-bottom: 1px solid var(--gray-1);
    padding: 1.25rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
}

.card-body {
    padding: 1.5rem;
}

/* Enhanced button styling - adding modern effects */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    font-size: 0.95rem;
    border: var(--border-light);
    transition: var(--transition);
    text-transform: none;
    letter-spacing: 0.025em;
}

.btn:hover {
    transform: translateY(-1px);
    border: var(--border-theme);
}

.btn:active {
    transform: translateY(0);
}

.btn-theme {
    background-image: linear-gradient(135deg, var(--theme-color-dark-2) 0%, var(--theme-color) 100%);
}

.btn-outline-secondary {
    background-color: white;
    border: 1px solid var(--gray-1);
    color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: var(--gray-1);
    border-color: var(--gray-2);
    color: #495057;
}

/* Modern form controls - enhanced focus states */
.form-control {
    border-radius: 6px;
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--theme-color);
    box-shadow: 0 0 0 0.2rem rgba(199, 168, 116, 0.25);
}

.form-select {
    border-radius: 6px;
    padding: 0.625rem 2.125rem 0.625rem 0.875rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-select:focus {
    border-color: var(--theme-color);
    box-shadow: 0 0 0 0.2rem rgba(199, 168, 116, 0.25);
}

.input-group {
    border-radius: 6px;
    overflow: hidden;
}

.input-group-text {
    background-color: var(--lightblue-1);
    border: 1px solid var(--gray-1);
    border-right: none;
    color: #6c757d;
    padding: 0.625rem 0.875rem;
}

.input-group .form-control {
    border-left: none;
}

.input-group .form-control:focus {
    border-left: none;
}

/* Enhanced table styling - modern look without borders */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: none;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background-color: var(--theme-color);
    color: white !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    border: none;
    padding: 1rem;
    text-align: left;
}

.table thead th:first-child {
    border-top-left-radius: var(--border-radius);
}

.table thead th:last-child {
    border-top-right-radius: var(--border-radius);
}

.table tbody td {
    border: none;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-1);
}

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

.table-hover > tbody > tr:hover {
    background-color: var(--lightblue-1);
    transition: var(--transition);
    transform: scale(1.01);
    box-shadow: var(--box-shadow);
}

/* Modern badge styling - enhanced appearance */
.badge {
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    letter-spacing: 0.025em;
}

/* Enhanced alert styling - modern appearance */
.alert {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow);
}

.alert-success {
    background-color: rgba(0, 255, 34, 0.205);
    color: rgb(0, 172, 23);
}

.alert-info {
    background-color: rgba(124, 224, 255, 0.205);
    color: rgb(0, 123, 255);
}

.alert-warning {
    background-color: rgba(251, 255, 0, 0.404);
    color: rgb(173, 133, 0);
}

.alert-danger {
    background-color: rgba(255, 0, 0, 0.322);
    color: rgb(211, 0, 0);
}

/* Modern modal styling - enhanced appearance */
.modal-content {
  background-color: rgba(255, 255, 255, 0.87);
  border-radius: var(--border-radius);
  border: var(--border-light);
  backdrop-filter: blur(10px); /* <-- ini buat blur di belakang elemen */
  -webkit-backdrop-filter: blur(10px); /* untuk Safari */
}
.modal-content .form-control, .modal-content .form-select{
    background-color: rgba(255, 255, 255, 0.555);
}
.modal-content .select2-selection{
    background-color: rgba(255, 255, 255, 0.555) !important;
    border: none !important;
}

/* Biar Select2 di dalam form-floating sejajar dengan input */
.form-floating > .select2-container--default .select2-selection--single {
  height: calc(3.5rem + 2px); /* tinggi form-floating Bootstrap */
  padding: 1rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
}

/* Biar teks di tengah secara vertikal */
.form-floating > .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 1.5rem; /* ini penting biar teks nggak terlalu ke bawah */
  padding-top: 0.625rem;
}

/* Biar panah dropdown sejajar juga */
.form-floating > .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: calc(3.5rem + 2px);
}


.modal-header {
    border-bottom: 1px solid var(--gray-1);
    padding: 1.25rem;
}

.modal-footer {
    border-top: 1px solid var(--gray-1);
    padding: 1.25rem;
}
/* Enhanced sidebar styling - modern look with increased width and gradient theme */
.sidebar_menu {
    width: 260px;
    border-right: var(--border-light);
    background: linear-gradient(135deg, var(--theme-color-dark-2) 0%, var(--theme-color) 100%);
    height: 100vh;
    display: flex;
    padding-bottom: 55px;
    flex-direction: column;
}

.sidebar_body {
    background-color: transparent;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    margin-top: 10px;
    padding: 10px 0;
}

.sidebar_body li {
    margin: 0.25rem 0.75rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.sidebar_body li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--theme-color);
    transform: scaleY(0);
    transition: var(--transition);
}

.sidebar_body li:hover::before,
.sidebar_body li:active::before,
.sidebar_body li.active::before {
    transform: scaleY(1);
}

.sidebar_body li:hover,
.sidebar_body li:active,
.sidebar_body li.active {
    background: rgba(255, 255, 255, 0.15);
}

.sidebar_body li .sdlink {
    padding: 0.875rem 1.25rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    font-weight: 500;
    color: white;
}

/* Make sidebar logo white and center it horizontally */
.sidebar_logo {
    filter: brightness(0) invert(1);
    display: block;
    margin: 0 auto;
}

.sidebar_body li.active .sdlink {
    color: white;
    font-weight: 600;
}

/* Enhanced sidebar submenu styling */
.sb_sub_menu_content {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    margin-top: 5px;
}

.sb_sub_menu_content li {
    background: transparent;
    border-radius: 6px;
    margin: 3px 10px;
}

.sb_sub_menu_content li:hover,
.sb_sub_menu_content li:active,
.sb_sub_menu_content li.active {
    background: rgba(0, 0, 0, 0.15);
}

.sb_sub_menu_content li .sdlink {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 0.75rem;
}

/* Ensure all icons in sidebar are white */
.sidebar_body .feather_icon,
.sidebar_body li .feather_icon,
.sidebar_body li.active .feather_icon,
.sb_sub_menu .feather_icon,
.sb_collapse_icon {
    color: white !important;
    stroke: white !important;
}

/* Modern navbar styling - enhanced appearance */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Mobile navbar styling - only show on mobile devices */
@media (min-width: 576px) {
    .navbar {
        display: none !important;
    }
}

/* Enhanced footer styling */
.footer {
    padding: 1.25rem;
}

/* Modern dropdown styling - enhanced appearance */
.dropdown-menu {
    border-radius: var(--border-radius);
    border: var(--border-light);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 4px;
    margin: 0.125rem 0;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--lightblue-1);
}

/* Enhanced pagination styling - modern appearance */
.page-link {
    border-radius: 6px;
    margin: 0 0.125rem;
    border: 1px solid var(--gray-1);
    transition: var(--transition);
}

.page-item.active .page-link {
    background-color: var(--theme-color);
    border-color: var(--theme-color);
    color: white !important;
}

/* Enhanced form validation */
.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Enhanced form controls styling */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.input-group-lg > .form-control,
.input-group-lg > .form-select,
.input-group-lg > .input-group-text,
.input-group-lg > .btn {
    padding: 0.75rem 1rem;
    font-size: 1.125rem;
    border-radius: 6px;
}

.input-group-sm > .form-control,
.input-group-sm > .form-select,
.input-group-sm > .input-group-text,
.input-group-sm > .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 4px;
}

/* Enhanced form check styling */
.form-check-input {
    width: 1.25em;
    height: 1.25em;
    margin-top: 0.125em;
    border: 1px solid var(--gray-1);
    transition: var(--transition);
    cursor: pointer;
}

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

.form-check-input:focus {
    border-color: var(--theme-color);
    box-shadow: 0 0 0 0.2rem rgba(199, 168, 116, 0.25);
}

.form-check-label {
    cursor: pointer;
    padding-left: 0.5rem;
}

/* Enhanced form switch styling */
.form-switch .form-check-input {
    width: 2.5em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");
    background-position: left center;
    border-radius: 2em;
}

.form-switch .form-check-input:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");
}

.form-switch .form-check-input:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='white'/%3e%3c/svg%3e");
    background-position: right center;
}

/* Enhanced form floating styling */
.form-floating > .form-control,
.form-floating > .form-select {
    height: calc(3.5rem + 2px);
    padding: 1rem 0.875rem;
}

.form-floating > label {
    padding: 1rem 0.875rem;
}

/* Enhanced nav styling */
.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: var(--transition);
    border-radius: 4px;
}

.nav-link:hover {
    color: var(--theme-color);
}

.nav-link:focus {
    text-decoration: none;
}

.nav-tabs {
    border-bottom: 1px solid var(--gray-1);
}

.nav-tabs .nav-link {
    margin-bottom: -1px;
    background: none;
    border: 1px solid transparent;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
    border-color: var(--gray-2) var(--gray-2) var(--gray-1);
    isolation: isolate;
}

.nav-tabs .nav-link.disabled {
    color: #6c757d;
    background-color: transparent;
    border-color: transparent;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    color: var(--theme-color);
    background-color: white;
    border-color: var(--gray-1) var(--gray-1) white;
}

.nav-pills .nav-link {
    border-radius: 6px;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    color: white;
    background-color: var(--theme-color);
}

/* Enhanced navbar styling */
.navbar-brand {
    padding-top: 0.3125rem;
    padding-bottom: 0.3125rem;
    margin-right: 1rem;
    font-size: 1.25rem;
    text-decoration: none;
    white-space: nowrap;
    font-weight: 600;
}

.navbar-brand:hover,
.navbar-brand:focus {
    text-decoration: none;
}

.navbar-nav {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.navbar-nav .nav-link {
    padding-right: 0;
    padding-left: 0;
}

.navbar-nav .dropdown-menu {
    position: static;
}

.navbar-text {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: var(--theme-color);
}

.navbar-light .navbar-nav .show > .nav-link,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--theme-color);
}

.navbar-light .navbar-toggler {
    color: var(--font-color-reset);
    border-color: var(--gray-1);
}

.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-light .navbar-text a,
.navbar-light .navbar-text a:hover,
.navbar-light .navbar-text a:focus {
    color: var(--theme-color);
}

/* Enhanced breadcrumb styling */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    list-style: none;
    background-color: var(--lightblue-1);
    border-radius: 6px;
}

.breadcrumb-item + .breadcrumb-item {
    padding-left: 0.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    float: left;
    padding-right: 0.5rem;
    color: #6c757d;
    content: var(--bs-breadcrumb-divider, "/");
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Enhanced pagination styling */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 6px;
}

.page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: var(--theme-color);
    background-color: white;
    border: 1px solid var(--gray-1);
}

.page-link:hover {
    z-index: 2;
    color: var(--theme-color-dark-1);
    background-color: var(--lightblue-1);
    border-color: var(--gray-2);
}

.page-link:focus {
    z-index: 3;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(199, 168, 116, 0.25);
}

.page-item:not(:first-child) .page-link {
    margin-left: -1px;
}

.page-item.active .page-link {
    z-index: 3;
    color: white;
    background-color: var(--theme-color);
    border-color: var(--theme-color);
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: white;
    border-color: var(--gray-1);
}

.pagination-lg .page-link {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    line-height: 1.5;
}

.pagination-lg .page-item:first-child .page-link {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.pagination-lg .page-item:last-child .page-link {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.pagination-sm .page-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.pagination-sm .page-item:first-child .page-link {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.pagination-sm .page-item:last-child .page-link {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* Enhanced list group styling */
.list-group {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    border-radius: 6px;
}

.list-group-item {
    position: relative;
    display: block;
    padding: 0.75rem 1.25rem;
    background-color: white;
    border: 1px solid var(--gray-1);
}

.list-group-item:first-child {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.list-group-item:last-child {
    border-bottom-right-radius: 6px;
    border-bottom-left-radius: 6px;
}

.list-group-item.disabled,
.list-group-item:disabled {
    color: #6c757d;
    pointer-events: none;
    background-color: white;
}

.list-group-item.active {
    z-index: 2;
    color: white;
    background-color: var(--theme-color);
    border-color: var(--theme-color);
}

.list-group-item + .list-group-item {
    border-top-width: 0;
}

.list-group-item + .list-group-item.active {
    margin-top: -1px;
    border-top-width: 1px;
}

/* Enhanced close button styling */
.btn-close {
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: 0.25em 0.25em;
    color: #000;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: 6px;
    opacity: 0.5;
    transition: var(--transition);
}

.btn-close:hover {
    opacity: 0.75;
}

.btn-close:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(199, 168, 116, 0.25);
    opacity: 1;
}

.btn-close:disabled,
.btn-close.disabled {
    pointer-events: none;
    user-select: none;
    opacity: 0.25;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Enhanced spinner styling */
.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.spinner-grow {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    background-color: currentColor;
    border-radius: 50%;
    opacity: 0;
    animation: spinner-grow .75s linear infinite;
}

.spinner-grow-sm {
    width: 1rem;
    height: 1rem;
}

@keyframes spinner-grow {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Enhanced toast styling */
.toast {
    width: 350px;
    max-width: 100%;
    font-size: 0.875rem;
    background-color: rgba(255, 255, 255, 0.85);
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--box-shadow-hover);
    border-radius: 6px;
    backdrop-filter: blur(10px);
}

.toast:not(.showing):not(.show) {
    opacity: 0;
}

.toast.hide {
    display: none;
}

.toast-container {
    width: max-content;
    max-width: 100%;
    pointer-events: none;
}

.toast-container > :not(:last-child) {
    margin-bottom: 0.75rem;
}

.toast-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 0.75rem;
    color: #6c757d;
    background-color: rgba(255, 255, 255, 0.85);
    background-clip: padding-box;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-top-left-radius: calc(6px - 1px);
    border-top-right-radius: calc(6px - 1px);
}

.toast-body {
    padding: 0.75rem;
    word-wrap: break-word;
}

/* Enhanced progress styling */
.progress {
    display: flex;
    height: 1rem;
    overflow: hidden;
    font-size: 0.75rem;
    background-color: var(--lightblue-1);
    border-radius: 6px;
}

.progress-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: white;
    text-align: center;
    white-space: nowrap;
    background-color: var(--theme-color);
    transition: width 0.6s ease;
}

@media (prefers-reduced-motion: reduce) {
    .progress-bar {
        transition: none;
    }
}

/* Enhanced select2 styling */
.select2-container .select2-selection--single {
    height: 42px;
    border-radius: 6px;
}

.select2-container .select2-selection__rendered {
    line-height: 42px;
    font-size: 0.95rem;
    padding-left: 0.875rem;
}

.select2-container--open .select2-selection--single {
    border-color: var(--theme-color);
    box-shadow: 0 0 0 0.2rem rgba(199, 168, 116, 0.25);
}

/* Enhanced accordion styling */
.accordion-button {
    background-color: white;
    border-radius: 6px !important;
    margin-bottom: 0.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.accordion-button:not(.collapsed) {
    background-color: var(--theme-color);
    color: white;
    box-shadow: var(--box-shadow);
}

.accordion-button:focus {
    box-shadow: none;
    z-index: 1;
}

.accordion-button::after {
    transform: scale(0.8);
    transition: var(--transition);
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(180deg) scale(0.8);
}

.accordion-item {
    border: none;
    margin-bottom: 0.5rem;
}

.accordion-body {
    border-radius: 0 0 6px 6px;
    border: 1px solid var(--gray-1);
    border-top: none;
}

/* Enhanced file upload styling */
.upload_file {
    border: 2px dashed var(--gray-2);
    border-radius: var(--border-radius);
    background-color: var(--lightblue-1);
    transition: var(--transition);
    cursor: pointer;
}

.upload_file:hover {
    border-color: var(--theme-color);
    background-color: var(--lightblue-2);
    transform: translateY(-1px);
}

/* Enhanced icon styling */
.feather_icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    transition: var(--transition);
}

.icon_theme {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--theme-color-light-2);
    transition: var(--transition);
}

.icon_theme:hover {
    background-color: var(--theme-color);
    transform: scale(1.1);
}

.icon_theme .feather_icon {
    color: var(--theme-color);
}

.icon_theme:hover .feather_icon {
    color: white;
}

/* Enhanced table responsive - showing scrollbar for horizontal scroll */
.table-responsive {
    border-radius: var(--border-radius);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: var(--lightblue-1);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--gray-2);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--gray-3);
}

/* Enhanced utilities */
.a_reset {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.a_reset:hover {
    color: var(--theme-color);
}

.bg_transparent_1 {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
}

/* Enhanced animations */
.btn_click_effect {
    transition: var(--transition);
    cursor: pointer;
}

.btn_click_effect:active {
    transform: scale(0.95);
}

/* Enhanced responsive design */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
        border-radius: var(--border-radius);
    }
    
    .table-responsive {
        border-radius: 0;
    }
    
    .modal-content {
        border-radius: 0;
    }
    
    .dropdown-menu {
        border-radius: 0;
    }
}

/* Adjust main content width to balance with widened sidebar */
@media (min-width: 576px) {
    main.has_side {
        --main-calc-width: 260px; /* Updated to match new sidebar width */
    }
}

/* Enhanced dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --font-color-reset: #e9ecef;
        --gray-1: #495057;
        --gray-2: #6c757d;
        --gray-3: #adb5bd;
        --lightblue-1: #212529;
        --lightblue-2: #2c3e50;
    }
    
    body {
        background-color: #1a1d23;
        background-image:
            radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0);
    }
    
    .card,
    .card-header,
    .navbar,
    .footer,
    .form-control,
    .form-select,
    .modal-content,
    .accordion-button {
        background-color: #2c3e50;
        color: var(--font-color-reset);
    }
    
    .input-group-text {
        background-color: #212529;
        border-color: #495057;
        color: #adb5bd;
    }
    
    .table thead th {
        background-color: var(--theme-color-dark-1);
        color: white !important;
        border: none;
    }
    
    .table-hover > tbody > tr:hover {
        background-color: #343a40;
    }
    
    .dropdown-menu {
        background-color: #2c3e50;
        border-color: #495057;
    }
    
    .dropdown-item {
        color: var(--font-color-reset);
    }
    
    .dropdown-item:hover {
        background-color: #343a40;
    }
    
    .sidebar_menu {
        background: linear-gradient(135deg, #1a1d23 0%, var(--theme-color-dark-2) 100%);
        border-right: 1px solid #495057;
    }
    
    .sidebar_body li:hover,
    .sidebar_body li:active,
    .sidebar_body li.active {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .sb_sub_menu_content {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 6px;
        margin-top: 5px;
    }
    
    .sb_sub_menu_content li {
        background: transparent;
        border-radius: 6px;
        margin: 3px 10px;
    }
    
    .sb_sub_menu_content li:hover,
    .sb_sub_menu_content li:active,
    .sb_sub_menu_content li.active {
        background: rgba(255, 255, 255, 0.08);
    }
    
    .sb_sub_menu_content li .sdlink {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 0.5rem 0.75rem;
    }
}

/* Page Header Styles */
.page-header {
    background-color: transparent;
}

.page-title {
    font-size: 1.70rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.page-subtitle {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 400;
}
.dropdown .btn{
    color: white;
}
.dropdown-menu {
    min-width: 280px;
    padding: 0.5rem 0;
    border-radius: 8px;
    border: none;
    z-index: 1050;
}

.dropdown-menu .form-label {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.dropdown-menu .form-control-sm {
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.875rem;
}

.dropdown-menu .btn-sm {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Chart container styles */
.chart-container {
    position: relative;
    min-height: 300px;
    width: 100%;
}

.customer-list {
    overflow-y: auto;
}

/* Hide scrollbar for better aesthetics */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Equal height columns */
.equal-height-columns>[class*='col-'] {
    display: flex;
    flex-direction: column;
}

.equal-height-columns>[class*='col-']>.card {
    flex: 1;
}

.d-flex-column {
    display: flex;
    flex-direction: column;
}

.flex-grow-1 {
    flex-grow: 1;
}

.btn_primary {
    background: #c7a875;
}

.btn_primary .text-icon {
    color: #fff !important;
}

.btn_primary:hover .text-icon {
    color: #c7a875 !important;
}

.btn_outline_primary {
    border: 1px solid #c7a875;
}

.btn_outline_primary:hover {
    background: #c7a875;
}

.btn_outline_primary:hover .text-icon {
    color: #fff !important;
}

/* Mobile responsiveness */
@media (max-width: 767.98px) {
    /* Card adjustments for mobile */
    .chart-container {
        min-height: 300px;
        /* Fixed height on mobile */
    }

    .card-body {
        padding: 0.75rem;
    }

    .customer-list .card-body {
        padding: 0.5rem 0;
    }

    /* Reduced spacing for filter form on mobile */
    #filter_form {
        margin-bottom: 0;
        row-gap: 0 !important;
        /* Remove row gap on mobile */
    }

    #filter_form .form-control,
    #filter_form .form-select,
    #filter_form .input-group {
        margin-bottom: 0.25rem !important;
        /* Reduce bottom margin */
    }

    #filter_form .col-12 {
        padding-left: 0.25rem !important;
        /* Reduce left padding */
        padding-right: 0.25rem !important;
        /* Reduce right padding */
    }

    /* Page header adjustments for mobile */
    .page-header {
        padding: 1rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .page-subtitle {
        font-size: 0.875rem;
    }

    .user-avatar img {
        width: 40px;
        height: 40px;
    }
}

/* User Profile Section in Sidebar */
.sidebar-user-profile {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(141, 56, 7, 0.2);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.user-info {
    flex: 1;
    transition: var(--transition);
}

.user-info:hover {
    opacity: 0.9;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
}

.user-role {
    font-size: 0.75rem;
    text-transform: capitalize;
}

.logout-btn .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    background-color: transparent;
    transition: var(--transition);
}

.logout-btn .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* User Profile Dropdown */
.user-profile-dropdown {
    min-width: 280px;
    padding: 0;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    margin-bottom: 1rem;
}

.user-profile-dropdown .dropdown-header {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    background: linear-gradient(135deg, var(--theme-color-dark-2) 0%, var(--theme-color) 100%);
    color: white;
    border: none;
}

.user-profile-dropdown .dropdown-item {
    padding: 0.75rem 1.25rem;
    transition: var(--transition);
}

.user-profile-dropdown .dropdown-item:hover {
    background-color: var(--lightblue-1);
    color: var(--theme-color);
}

.user-profile-dropdown .dropdown-item i {
    color: var(--gray-2);
}

.user-profile-dropdown .dropdown-item:hover i {
    color: var(--theme-color);
}

.user-profile-dropdown .dropdown-divider {
    margin: 0;
    border-color: var(--gray-1);
}

/* Responsive adjustments for user profile section */
@media (max-width: 767.98px) {
    .sidebar-user-profile {
        padding: 0.75rem !important;
    }
    
    .user-name {
        max-width: 100px !important;
    }
    
    .user-profile-dropdown {
        min-width: 250px;
    }
}

/* Bootstrap Form Floating */
.form-floating {
    position: relative;
}

.form-floating > .form-control,
.form-floating > .form-control-plaintext,
.form-floating > .form-select {
    height: calc(3.5rem + 2px);
    line-height: 1.25;
}

.form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity .1s ease-in-out,transform .1s ease-in-out;
}

.form-floating > .form-control::placeholder {
    color: transparent;
}

.form-floating > .form-control:focus,
.form-floating > .form-control:not(:placeholder-shown) {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

.form-floating > .form-control:-webkit-autofill {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

.form-floating > .form-select {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

/* Required field indicator */
.required::after {
    content: " *";
    color: #dc3545;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    opacity: .65;
    transform: scale(.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-floating > .form-control:-webkit-autofill ~ label {
    opacity: .65;
    transform: scale(.85) translateY(-0.5rem) translateX(0.15rem);
}


.form-floating > textarea {
    min-height: calc(5rem + 2px);
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

/* Villa Detail Styles */
.villa-detail-container {
    padding: 1rem;
}

.villa-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 180px;
    background-color: var(--lightblue-1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.villa-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.villa-image:hover {
    transform: scale(1.05);
}

.detail-item {
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.detail-item:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
}

.detail-label {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    margin-bottom: 3px;
}

.detail-value {
    font-size: 0.95rem;
    line-height: 1.4;
}

.creator-info {
    font-size: 0.85rem;
}

/* Villa detail card enhancements */
.villa-detail-container .card {
    border: var(--border-light);
    transition: var(--transition);
}

.villa-detail-container .card:hover {
    border: var(--border-theme);
}

.villa-detail-container .card-body h5 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--theme-color-dark-2);
}

.villa-detail-container .card-body h6 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: var(--theme-color-dark-2);
    font-weight: 600;
}

/* Creator avatar adjustments */
.creator-avatar {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border: 2px solid var(--theme-color);
}


/* No image placeholder */
.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
    background-color: var(--lightblue-1);
    border-radius: 8px;
}

.no-image-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.no-image-placeholder span {
    font-size: 0.875rem;
}

/* Customer list styling */
#customerList .card {
    margin-top: 0.5rem;
}

#customerList .list-group-item {
    padding: 0.75rem 1rem;
    border-left: none;
    border-right: none;
}

#customerList .list-group-item:first-child {
    border-top: none;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

#customerList .list-group-item:last-child {
    border-bottom: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Responsive adjustments for villa detail */
@media (max-width: 768px) {
    .villa-image-container {
        height: 200px;
        margin-bottom: 1rem;
    }
    
    .villa-details {
        padding: 0;
    }
    
    .detail-item {
        margin-bottom: 1rem;
    }
    
    .creator-info {
        flex-direction: column;
        gap: 5px;
    }
    
    .creator-info .row {
        margin: 0;
    }
    
    .creator-info .col-md-6 {
        padding: 0;
        margin-bottom: 0.5rem;
    }
    
    #customerList .list-group-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    #customerList .list-group-item .badge {
        margin-top: 0.5rem;
    }
}

/* Creator avatar styling */
.creator-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 2px solid var(--theme-color);
}

.creator-avatar-placeholder {
    width: 40px;
    height: 40px;
    background-color: var(--lightblue-1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--theme-color);
    color: var(--theme-color);
}

.creator-avatar-placeholder i {
    width: 20px;
    height: 20px;
}

.lightbox,
.lightboxOverlay,
.lg-backdrop {
  z-index: 99999 !important;
}

/* Enhanced Bootstrap Button Overrides with Theme Colors */
.btn {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1), -2px -2px 5px rgba(255, 255, 255, 0.7);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.15), -4px -4px 8px rgba(255, 255, 255, 0.8);
}

.btn:active {
    transform: translateY(0);
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1), inset -2px -2px 5px rgba(255, 255, 255, 0.7);
}

.btn .feather_icon {
    transition: all 0.3s ease;
}

/* Primary button with theme color */
.btn-primary {
    background: linear-gradient(145deg, var(--theme-color-light-2), var(--theme-color));
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(145deg, var(--theme-color), var(--theme-color-dark-2));
    border: none;
    color: white;
    transform: translateY(-2px);
}

.btn-primary:focus {
    background: linear-gradient(145deg, var(--theme-color), var(--theme-color-dark-2));
    border: none;
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(199, 168, 116, 0.25);
}

.btn-primary .feather_icon {
    color: white;
    stroke: white;
}

.btn-primary:hover .feather_icon {
    transform: scale(1.1);
}

/* Light button for action buttons */
.btn-light {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border: none;
    color: var(--theme-color);
    position: relative;
}

.btn-light:hover {
    background: linear-gradient(145deg, var(--theme-color-light-2), var(--theme-color));
    border: none;
    color: white;
    transform: translateY(-2px);
}

.btn-light:focus {
    background: linear-gradient(145deg, var(--theme-color-light-2), var(--theme-color));
    border: none;
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(199, 168, 116, 0.25);
}

.btn-light .feather_icon {
    color: var(--theme-color);
    stroke: var(--theme-color);
}

.btn-light:hover .feather_icon {
    color: white;
    stroke: white;
    transform: scale(1.1);
}

/* Small button adjustments */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 6px;
}

/* Enhanced button group for table actions */
.d-flex.gap-2 {
    gap: 0.5rem;
}

/* Loading state for buttons */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success animation for buttons */
.btn.success {
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
