* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

::selection {
    background-color: rgba(17, 24, 39, 0.1);
    color: #111827;
    border-radius: 3px;
}

::placeholder {
    color: #9ca3af;
    font-weight: 400;
    opacity: 1;
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

/* === FOCUS STATES === */
:focus-visible {
    outline: 2px solid rgba(0, 0, 0, 0.15);
    outline-offset: 2px;
    border-radius: 6px;
}

/* === PAGE TRANSITION === */
.page-content {
    animation: premiumFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes premiumFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes premiumSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes premiumGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.05);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.03);
    }
}

/* === PREMIUM CARD SYSTEM === */
.card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
}

.card:hover {
    box-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.08), 0 2px 8px -2px rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

.card-animate:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.08), 0 8px 16px -4px rgba(0, 0, 0, 0.04) !important;
}

.card-header {
    background-color: transparent !important;
}

.card-body {
    padding: 1.5rem !important;
}

/* === PREMIUM BUTTON SYSTEM === */
.btn {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: 500;
    letter-spacing: 0.015em;
    font-family: 'Inter', sans-serif;
    position: relative;
}

.btn:active:not([data-bs-toggle]) {
    transform: scale(0.97) !important;
    transition-duration: 0.1s !important;
}

.btn-primary {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.btn-primary:hover:not([data-bs-toggle]) {
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-1px) !important;
}

.btn-primary:active:not([data-bs-toggle]) {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(0) scale(0.97) !important;
}

.btn-secondary {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.btn-secondary:hover:not([data-bs-toggle]) {
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-1px) !important;
}

.btn-light {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.btn-light:hover:not([data-bs-toggle]) {
    box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-1px) !important;
}

.btn-outline-primary {
    border-width: 1.5px !important;
}

.btn-outline-primary:hover:not([data-bs-toggle]) {
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-1px) !important;
}

/* === PREMIUM SIDEBAR (glass handled in sidebar.blade.php) === */

/* Sidebar nav-link transitions (glass handled in sidebar.blade.php) */
.navbar-menu .navbar-nav .nav-link {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* === PREMIUM NAVBAR === */
#page-topbar {
    border-bottom: 1px solid rgba(13, 148, 136, 0.1) !important;
}

.navbar-header .btn-topbar {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 10px !important;
}

.navbar-header .btn-topbar:hover {
    background-color: rgba(13, 148, 136, 0.06) !important;
    transform: scale(1.05);
}

.navbar-header .btn-topbar:active {
    transform: scale(0.95);
}

/* Override Velzon dark sidebar (glass handled in sidebar.blade.php) */

/* Profile User */
.header-profile-user {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.topbar-user:hover .header-profile-user {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
}

/* Search */
.app-search .form-control {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.app-search .form-control:focus {
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06) !important;
    background-color: #fff !important;
}

/* === PREMIUM FORM INPUTS === */
.form-control,
.form-select,
textarea.form-control {
    border: 1.5px solid #e5e7eb !important;
    border-radius: 10px !important;
    padding: 0.625rem 0.875rem !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 0.875rem;
    line-height: 1.5;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: #9ca3af !important;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06) !important;
    background-color: #fff !important;
}

.form-control:hover,
.form-select:hover {
    border-color: #d1d5db !important;
}

.input-group .form-control {
    border-radius: 10px !important;
}

.input-group .form-control:not(:first-child) {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.input-group .form-control:not(:last-child) {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-group-text {
    border: 1.5px solid #e5e7eb !important;
    border-radius: 10px !important;
    background-color: #fafafa !important;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Floating Labels */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #6b7280;
}

.form-floating > .form-control:focus ~ label {
    color: #374151;
}

/* === PREMIUM DROPDOWN === */
.dropdown-menu {
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 16px 48px -8px rgba(0, 0, 0, 0.12), 0 4px 12px -4px rgba(0, 0, 0, 0.06) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
    backdrop-filter: blur(24px) saturate(200%) !important;
    padding: 6px !important;
    border-radius: 14px !important;
}

.dropdown-item {
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin: 1px 0 !important;
}

.dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.04) !important;
    color: #111827 !important;
    transform: translateX(3px);
}

.dropdown-item:active {
    background-color: rgba(0, 0, 0, 0.06) !important;
    transform: translateX(3px) scale(0.99);
}

.dropdown-item.active {
    background-color: #0D9488 !important;
    color: #fff !important;
}

.dropdown-divider {
    border-color: rgba(0, 0, 0, 0.06) !important;
    margin: 4px 0 !important;
}

/* === PREMIUM TABLES === */
table.dataTable thead th {
    background-color: #fafafa !important;
    border-bottom: 2px solid #e5e7eb !important;
    font-size: 0.6875rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.07em !important;
    color: #6b7280 !important;
    font-weight: 600 !important;
    padding: 14px 16px !important;
}

table.dataTable tbody td {
    padding: 14px 16px !important;
    border-bottom: 1px solid #f5f5f5 !important;
    transition: all 0.2s ease !important;
    font-size: 0.875rem;
}

table.dataTable tbody tr {
    transition: all 0.2s ease !important;
}

table.dataTable tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.015) !important;
}

table.dataTable tbody tr:hover td {
    color: #111827;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #0D9488 !important;
    border-color: #0D9488 !important;
    color: #fff !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25) !important;
    font-weight: 600 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(13, 148, 136, 0.08) !important;
    border-color: transparent !important;
    color: #0D9488 !important;
    border-radius: 10px !important;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border-radius: 10px !important;
    border: 1.5px solid #d1d5db !important;
    padding: 8px 14px !important;
    font-size: 0.8125rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background-color: #ffffff !important;
    color: #374151 !important;
    font-weight: 500;
}

.dataTables_wrapper .dataTables_length select {
    padding-right: 32px !important;
    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='%23374151' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 14px 14px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    cursor: pointer !important;
}

.dataTables_wrapper .dataTables_length select:hover,
.dataTables_wrapper .dataTables_filter input:hover {
    border-color: #9ca3af !important;
}

.dataTables_wrapper .dataTables_length select:focus,
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #6b7280 !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06) !important;
    outline: none !important;
}

select option {
    background-color: #ffffff !important;
    color: #374151 !important;
    padding: 8px !important;
}

.dataTables_wrapper .dataTables_info {
    color: #9ca3af !important;
    font-size: 0.8125rem !important;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    padding: 12px 16px !important;
}

/* === PREMIUM MODAL === */
.modal-content {
    border-radius: 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    box-shadow: 0 32px 80px -12px rgba(0, 0, 0, 0.15), 0 12px 32px -8px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden;
    animation: premiumScaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    padding: 24px 28px !important;
}

.modal-body {
    padding: 28px !important;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.04) !important;
    padding: 20px 28px !important;
}

.modal-backdrop.show {
    backdrop-filter: blur(8px) saturate(150%) !important;
    background-color: rgba(0, 0, 0, 0.25) !important;
}

/* === PREMIUM PAGINATION === */
.page-link {
    border-radius: 10px !important;
    margin: 0 3px;
    border: none !important;
    font-weight: 500;
    font-size: 0.8125rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 8px 14px !important;
    color: #374151;
}

.page-link:hover {
    background: rgba(13, 148, 136, 0.08) !important;
    color: #0D9488 !important;
    transform: translateY(-1px);
}

.page-item.active .page-link {
    background: #0D9488 !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25) !important;
}

.page-item.disabled .page-link {
    color: #d1d5db !important;
}

/* === PREMIUM PROGRESS === */
.progress {
    border-radius: 100px;
    background-color: #f3f4f6;
    overflow: hidden;
    height: 6px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.progress-bar {
    border-radius: 100px;
    background: linear-gradient(90deg, #14B8A6, #0D9488);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === PREMIUM BADGE === */
.badge {
    font-weight: 600;
    letter-spacing: 0.04em;
    font-size: 0.6875rem;
    padding: 5px 10px;
    border-radius: 6px;
}

/* === PREMIUM ALERT === */
.alert {
    border-radius: 12px;
    border: none;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 16px 20px;
}

/* === PREMIUM TOOLTIP === */
.tooltip-inner {
    border-radius: 8px;
    background: #111827;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 8px 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    letter-spacing: 0.01em;
}

/* === PREMIUM POPOVER === */
.popover {
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 12px 40px -4px rgba(0, 0, 0, 0.1);
}

/* === PREMIUM BACK TO TOP === */
#back-to-top {
    border-radius: 14px;
    background: #0D9488;
    border: none;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25), 0 1px 3px rgba(13, 148, 136, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px -4px rgba(13, 148, 136, 0.35), 0 4px 8px rgba(13, 148, 136, 0.15);
    background: #0B7F74;
}

#back-to-top:active {
    transform: translateY(-1px) scale(0.95);
}

/* === PREMIUM SELECT2 === */
.select2-selection {
    height: 42px !important;
    border-radius: 10px !important;
    border: 1.5px solid #d1d5db !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background-color: #ffffff !important;
}

.select2-selection .select2-selection__rendered {
    color: #374151 !important;
    font-weight: 500;
    line-height: 40px !important;
    padding-left: 14px !important;
    padding-right: 30px !important;
}

.select2-selection .select2-selection__arrow {
    height: 40px !important;
    right: 8px !important;
}

.select2-selection .select2-selection__arrow b {
    border-color: #374151 transparent transparent !important;
    border-width: 5px 5px 0 !important;
}

.select2-container--open .select2-selection,
.select2-selection:focus-within,
.select2-container--open.select2-container--focus .select2-selection {
    border-color: #6b7280 !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06) !important;
}

.select2-results__option {
    padding: 10px 14px !important;
    transition: background-color 0.15s ease !important;
    color: #374151 !important;
}

.select2-results__option[aria-selected="true"] {
    background-color: #0D9488 !important;
    color: white !important;
    font-weight: 500 !important;
}

.select2-results__option--highlighted[aria-selected="true"] {
    background-color: #0B7F74 !important;
    color: white !important;
}

.select2-dropdown {
    border: 1.5px solid #d1d5db !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 40px -4px rgba(0, 0, 0, 0.12) !important;
    background-color: #ffffff !important;
}

.select2-search--dropdown .select2-search__field {
    border: 1.5px solid #d1d5db !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 0.875rem !important;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: #6b7280 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04) !important;
}

/* === PREMIUM SUMMERNOTE === */
.note-editor.note-frame {
    border-radius: 12px !important;
    border: 1.5px solid #e5e7eb !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.note-editor.note-frame:focus-within {
    border-color: #9ca3af !important;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04) !important;
}

.note-toolbar {
    background: #fafafa !important;
    border-bottom: 1px solid #f3f4f6 !important;
}

/* === PREMIUM ACCORDION === */
.accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 12px !important;
    overflow: hidden;
    margin-bottom: 8px !important;
}

.accordion-button {
    border-radius: 12px !important;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: none !important;
    padding: 16px 20px !important;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(0, 0, 0, 0.02) !important;
    color: #111827;
}

.accordion-button:focus {
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04) !important;
    border-color: #e5e7eb !important;
}

.accordion-body {
    padding: 16px 20px !important;
}

/* === PREMIUM NAV TABS === */
.nav-tabs .nav-link {
    border-radius: 10px 10px 0 0;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    padding: 12px 20px;
}

.nav-tabs .nav-link:hover {
    color: #111827;
    background-color: rgba(0, 0, 0, 0.02);
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    color: #0D9488;
    font-weight: 600;
    background-color: #fff;
    border-bottom: 2px solid #0D9488;
}

/* === PREMIUM LIST GROUP === */
.list-group-item {
    transition: all 0.2s ease;
    border-color: rgba(0, 0, 0, 0.04);
}

.list-group-item:hover {
    background-color: rgba(0, 0, 0, 0.015);
}

/* === PREMIUM AVATAR === */
.avatar-title {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === PREMIUM OFFCANVAS === */
.offcanvas {
    border-radius: 16px 0 0 16px !important;
}

.offcanvas-header {
    padding: 24px 28px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.offcanvas-body {
    padding: 28px !important;
}

/* === PREMIUM TOAST === */
.toast {
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 12px 40px -4px rgba(0, 0, 0, 0.1);
}

/* === PREMIUM SPINNER === */
.spinner-border {
    border-width: 3px;
}

/* === PREMIUM FOOTER === */
.footer {
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
}

/* === PREMIUM BREADCRUMB === */
.breadcrumb {
    font-size: 0.8125rem;
}

.breadcrumb-item a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #111827;
}

.breadcrumb-item.active {
    color: #9ca3af;
}

/* === PREMIUM FORM CHECK === */
.form-check-input {
    border-radius: 4px;
    border: 1.5px solid #d1d5db;
    transition: all 0.2s ease;
}

.form-check-input:checked {
    background-color: #0D9488;
    border-color: #0D9488;
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
    border-color: #14B8A6;
}

.form-check-label {
    font-weight: 500;
    color: #374151;
}

/* === PREMIUM FORM SWITCH === */
.form-switch .form-check-input {
    width: 36px;
    height: 20px;
    border-radius: 100px;
}

.form-switch .form-check-input:checked {
    background-color: #0D9488;
    border-color: #0D9488;
}

/* === PREMIUM FORM RANGE === */
.form-range::-webkit-slider-thumb {
    background-color: #0D9488;
    border: none;
    box-shadow: 0 1px 4px rgba(13, 148, 136, 0.3);
}

.form-range::-webkit-slider-thumb:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.form-range::-webkit-slider-runnable-track {
    border-radius: 100px;
    background-color: #e5e7eb;
}

/* === PREMIUM FORM FILE === */
.form-control[type="file"] {
    padding: 10px;
}

.form-control[type="file"]:not(:hover) {
    border-style: dashed;
}

/* === PREMIUM CARD RADIO === */
.card-radio .form-check-input:checked + .form-check-label {
    border-color: #0D9488;
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.12);
}

/* === PREMIUM PRICING CARD === */
.card-radio:hover .form-check-label {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* === PREMIUM RIBBON === */
.ribbon-three span {
    border-top-right-radius: 10px;
}

/* === PREMIUM ELEGANT SPACING === */
.container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* === PREMIUM CARD STAT === */
.card .card-body h4 {
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* === PREMIUM LINK STYLES === */
a {
    transition: color 0.2s ease;
}

.text-decoration-underline {
    text-decoration-color: rgba(0, 0, 0, 0.15) !important;
    text-underline-offset: 3px !important;
}

.text-decoration-underline:hover {
    text-decoration-color: rgba(0, 0, 0, 0.4) !important;
}

/* === BRAND BUTTON OVERRIDES === */
.btn-primary {
    background-color: #0D9488 !important;
    border-color: #0D9488 !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #0B7F74 !important;
    border-color: #0B7F74 !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3) !important;
}

.btn-primary:active,
.btn-primary.active {
    background-color: #096B62 !important;
    border-color: #096B62 !important;
    color: #fff !important;
}

.btn-primary:disabled,
.btn-primary.disabled {
    background-color: #14B8A6 !important;
    border-color: #14B8A6 !important;
    opacity: 0.65;
}

.btn-dark {
    background-color: #0D9488 !important;
    border-color: #0D9488 !important;
    color: #fff !important;
}

.btn-dark:hover,
.btn-dark:focus {
    background-color: #0B7F74 !important;
    border-color: #0B7F74 !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3) !important;
}

.btn-dark:active,
.btn-dark.active {
    background-color: #096B62 !important;
    border-color: #096B62 !important;
    color: #fff !important;
}

.btn-dark:disabled,
.btn-dark.disabled {
    background-color: #14B8A6 !important;
    border-color: #14B8A6 !important;
    opacity: 0.65;
}

/* Edit button (btn-outline-dark) */
.btn-outline-dark {
    color: #0D9488 !important;
    border-color: #0D9488 !important;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
    background-color: #0D9488 !important;
    color: #fff !important;
    border-color: #0D9488 !important;
}

/* Soft primary button (Edit) */
.btn-soft-primary {
    color: #0D9488 !important;
    background-color: rgba(13, 148, 136, 0.1) !important;
    border-color: transparent !important;
}

.btn-soft-primary:active,
.btn-soft-primary:focus,
.btn-soft-primary:hover {
    color: #fff !important;
    background-color: #0D9488 !important;
}

/* Soft danger button (Remove) */
.btn-soft-danger {
    color: #DC2626 !important;
    background-color: rgba(220, 38, 38, 0.08) !important;
    border-color: transparent !important;
}

.btn-soft-danger:active,
.btn-soft-danger:focus,
.btn-soft-danger:hover {
    color: #fff !important;
    background-color: #DC2626 !important;
}

/* DataTables pagination active */
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #0D9488 !important;
    border-color: #0D9488 !important;
    color: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.25) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(13, 148, 136, 0.08) !important;
    border-color: rgba(13, 148, 136, 0.15) !important;
    color: #0D9488 !important;
    border-radius: 8px !important;
}

/* List.js pagination active */
.listjs-pagination li.active .page {
    background: #0D9488 !important;
    color: #fff !important;
    border-radius: 8px !important;
}

/* ═══════════════════════════════════════════════════════════
   APPLE-STYLE GLASSMORPHISM — GLOBAL ADMIN
   Frosted glass · blur · transparency · premium depth
   ═══════════════════════════════════════════════════════════ */

/* --- Body: gradient background so glass has something to blur --- */
body {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0fdf4 25%, #fef3c7 50%, #fce7f3 75%, #ede9fe 100%) !important;
    background-attachment: fixed !important;
}

#layout-wrapper {
    background: transparent !important;
}

/* --- Main Content: frosted white glass --- */
.main-content {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    min-height: 100vh;
}

/* Master layout <section class="page-content"> — top padding for fixed header */
.page-content {
    padding: 76px 1rem 1.5rem 1rem !important;
    background: transparent !important;
}

/* Nested .page-content inside blades — remove duplicate padding */
.page-content .page-content {
    padding: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
}

/* Page title box — reduce top gap */
.page-title-box {
    margin: -8px -1rem 0.75rem -1rem !important;
    padding: 8px 1rem !important;
}

.page-title-box h4 {
    font-size: 1.1rem !important;
    margin-bottom: 2px !important;
}

.page-title-box .text-muted {
    font-size: 0.8rem !important;
}

/* --- Glass Header / Topbar --- */
#page-topbar {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(28px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 1px 16px rgba(15, 23, 42, 0.06) !important;
    padding: 0 1.25rem !important;
}

/* --- Admin User Glass Pill --- */
.topbar-user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 8px !important;
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(12px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(150%) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 50px !important;
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.06) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
}

.topbar-user-pill:hover {
    background: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.1) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.topbar-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0D9488, #14B8A6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(13, 148, 136, 0.3);
}

.topbar-user-pill .user-name-text {
    color: #1E293B;
    font-size: 0.8125rem;
    letter-spacing: -0.01em;
}

.topbar-user-pill .ri-arrow-down-s-line {
    color: #64748B;
    transition: transform 0.2s ease;
}

.topbar-user-pill[aria-expanded="true"] .ri-arrow-down-s-line {
    transform: rotate(180deg);
}

/* --- Glass Cards --- */
.card {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(12px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-bottom: 1rem !important;
}

.card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    background: rgba(255, 255, 255, 0.4) !important;
}

.card-header {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 14px 14px 0 0 !important;
    padding: 0.75rem 1.15rem !important;
}

.card-body {
    padding: 1.15rem !important;
    background: transparent !important;
}

/* --- Glass Modals --- */
.modal-content {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(32px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(32px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 20px !important;
    box-shadow: 0 32px 80px -12px rgba(15, 23, 42, 0.18), 0 12px 32px -8px rgba(15, 23, 42, 0.1) !important;
}

.modal-backdrop.show {
    backdrop-filter: blur(12px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(150%) !important;
    background-color: rgba(15, 23, 42, 0.3) !important;
}

/* --- Glass Dropdowns --- */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 16px 48px -8px rgba(15, 23, 42, 0.14), 0 4px 12px -4px rgba(15, 23, 42, 0.06) !important;
    border-radius: 14px !important;
    padding: 6px !important;
}

/* --- Glass Form Inputs --- */
.form-control,
.form-select,
textarea.form-control {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1.5px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 10px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-color: rgba(13, 148, 136, 0.4) !important;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.08), 0 1px 4px rgba(15, 23, 42, 0.04) !important;
}

.input-group-text {
    background: rgba(248, 250, 252, 0.8) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1.5px solid rgba(0, 0, 0, 0.08) !important;
}

/* --- Glass DataTable Headers --- */
table.dataTable thead th {
    background: rgba(248, 250, 252, 0.75) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

/* --- Glass Offcanvas --- */
.offcanvas {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(28px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(160%) !important;
}

/* --- Glass Accordion --- */
.accordion-item {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.accordion-button {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.accordion-button:not(.collapsed) {
    background: rgba(13, 148, 136, 0.04) !important;
}

/* --- Glass Tabs --- */
.nav-tabs .nav-link {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
}

.nav-tabs .nav-link.active {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 2px solid #0D9488 !important;
}

/* --- Glass Toasts --- */
.toast {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(20px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 12px 40px -4px rgba(15, 23, 42, 0.12) !important;
}

/* --- Glass Popovers --- */
.popover {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(20px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

/* --- Glass List Group --- */
.list-group-item {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-color: rgba(0, 0, 0, 0.04) !important;
}

/* --- Glass Alerts --- */
.alert {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

/* --- Glass Badges --- */
.badge {
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
}

/* --- Glass Pagination --- */
.page-link {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
}

.page-item.active .page-link {
    background: rgba(13, 148, 136, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

/* --- Glass SweetAlert2 --- */
.swal2-popup {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(32px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(32px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 20px !important;
    box-shadow: 0 32px 80px -12px rgba(15, 23, 42, 0.18) !important;
}

.swal2-backdrop {
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    background-color: rgba(15, 23, 42, 0.3) !important;
}

/* --- Glass Select2 Dropdown --- */
.select2-dropdown {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(20px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 12px 40px -4px rgba(15, 23, 42, 0.14) !important;
}

.select2-selection {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

/* --- Glass Summernote --- */
.note-editor.note-frame {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.note-toolbar {
    background: rgba(248, 250, 252, 0.75) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

/* --- Glass Back-to-Top Button --- */
#back-to-top {
    background: rgba(13, 148, 136, 0.88) !important;
    backdrop-filter: blur(12px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(160%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* --- Glass Footer --- */
.footer {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.04) !important;
}
