/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.light-style .menu .app-brand.demo {
    height: 64px;
}

.dark-style .menu .app-brand.demo {
    height: 64px;
}

.app-brand-logo.demo {
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    display: -ms-flexbox;
    display: flex;
    width: 34px;
    height: 24px;
}

.app-brand-logo.demo svg {
    width: 35px;
    height: 24px;
}

.app-brand-text.demo {
    font-size: 1.375rem;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
    padding-top: 64px !important;
}

.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
    padding-top: 72px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
    z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks>* {
    display: block !important;
}

.demo-inline-spacing>* {
    margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing>* {
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
}

.demo-vertical-spacing.demo-only-element> :first-child {
    margin-top: 0 !important;
}

.demo-vertical-spacing-lg>* {
    margin-top: 1.875rem !important;
    margin-bottom: 0 !important;
}

.demo-vertical-spacing-lg.demo-only-element> :first-child {
    margin-top: 0 !important;
}

.demo-vertical-spacing-xl>* {
    margin-top: 5rem !important;
    margin-bottom: 0 !important;
}

.demo-vertical-spacing-xl.demo-only-element> :first-child {
    margin-top: 0 !important;
}

.rtl-only {
    display: none !important;
    text-align: left !important;
    direction: ltr !important;
}

[dir="rtl"] .rtl-only {
    display: block !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
    #dropdown-variation-demo .btn-group .text-truncate {
        width: 254px;
        position: relative;
    }

    #dropdown-variation-demo .btn-group .text-truncate::after {
        position: absolute;
        top: 45%;
        right: 0.65rem;
    }
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin-top: 1rem;
}

.layout-demo-placeholder img {
    width: 900px;
}

.layout-demo-info {
    text-align: center;
    margin-top: 1rem;
}

ul.text-sm.text-red-600.space-y-1.mt-2.invalid-feedback {
    margin: 0;
    padding: 0;
}

ul.text-sm.text-red-600.space-y-1.mt-2.invalid-feedback li {
    list-style: none;
}

.form-group.custom-input-group {
    margin-bottom: 15px;
}



.dtr-column th {
    padding: 0px !important;
}

.select2-button button#inputGroup {
    border-radius: 0px 0.375rem 0.375rem 0px !important;
    height: calc(1.625em + 0.852rem + calc(var(--bs-border-width) * 2));
}

.select2-button span.select2-selection.select2-selection--single {
    border-radius: 0.375rem 0px 0px 0.375rem !important;
}

button.btn:focus {
    border: 1px #7367f0 solid !important;
}

html:not(.layout-menu-collapsed) .bg-menu-theme .menu-inner .menu-item:not(.active)>.menu-link:hover,
.layout-menu-hover.layout-menu-collapsed .bg-menu-theme .menu-inner .menu-item:not(.active)>.menu-link:hover,
html:not(.layout-menu-collapsed) .bg-menu-theme .menu-inner .menu-item:not(.active)>.menu-link:focus,
.layout-menu-hover.layout-menu-collapsed .bg-menu-theme .menu-inner .menu-item:not(.active)>.menu-link:focus {
    background: rgba(47, 43, 61, 0.1);
}

.card-body {
    padding: 10px;
}

div.dataTables_wrapper div.dataTables_length,
div.dataTables_wrapper .dataTables_filter {
    margin-top: 0rem;
    margin-bottom: 0.5rem;
}

/* Style for collapsible submenus */
.menu-item.has-submenu>a {
    cursor: pointer;
}

.menu-item.has-submenu>.submenu {
    display: none;
    padding-left: 20px;
}

.menu-item.has-submenu>a .submenu-toggle {
    float: right;
}

.menu-item.has-submenu.open>.submenu {
    display: block;
}

.menu-item.has-submenu.open>a .submenu-toggle {
    transform: rotate(180deg);
}

.address-table tr td {
    padding: 1px !important;
    vertical-align: top;
}

.avatar-group .avatar {
    width: 1.4rem;
    height: 1.4rem;
}

.tagify__tag__removeBtn::after {
    content: "×" !important;
}

.list-none {
    list-style: none;
}

body {
    overflow-x: hidden;
}

.d-flex .select2-container--default .select2-selection {
    border-radius: 0rem 0.375rem 0.375rem 0rem !important;
}
.d-flex .border-end-0 {
    border-radius:  0.375rem 0rem  0rem 0.375rem !important;
}

/* Readonly Input Styling */
input[readonly],
textarea[readonly],
select[readonly] {
    background-color: #f5f5f5 !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
}

/* Light theme readonly inputs */
.light-style input[readonly],
.light-style textarea[readonly],
.light-style select[readonly] {
    background-color: #f0f0f0 !important;
    border-color: #e0e0e0 !important;
}

/* Dark theme readonly inputs */
.dark-style input[readonly],
.dark-style textarea[readonly],
.dark-style select[readonly] {
    background-color: #2a2a2a !important;
    border-color: #404040 !important;
    color: #9ca3af !important;
}

/* Fixed column styling for DataTables */
/* .fix-col {
    z-index: 10;
    background-color: #e9e7fd !important;
} */

thead.fix-col {
     background-color: #f5f4f4 !important;
     z-index: 10 !important;
}

td.fix-col {
     background-color: #f5f4f4 !important;
     z-index: 10 !important;
}

.table thead tr th {
    padding-block: 0.5rem;
    padding-inline-end: 0.5rem;
}

.table.table-sm thead tr th {
    padding-block: 0.5rem;
}

table.dataTable thead .sorting::before, 
table.dataTable thead .sorting::after, 
table.dataTable thead .sorting_asc::before, 
table.dataTable thead .sorting_asc::after, 
table.dataTable thead .sorting_desc::before, 
table.dataTable thead .sorting_desc::after, 
table.dataTable thead .sorting_asc_disabled::before, 
table.dataTable thead .sorting_asc_disabled::after, 
table.dataTable thead .sorting_desc_disabled::before, 
table.dataTable thead .sorting_desc_disabled::after {
    line-height: 1.1rem !important;
}   

table td {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    /* vertical-align: middle !important; */
}

.menu-vertical .menu-sub .menu-link {
    padding-left: 2.625rem;
}

/* is_active radio button colors */
.form-check-input-success:checked {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}
.form-check-input-danger:checked {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

/* Notification Dropdown Styles - Enhanced UI */
.notification-dropdown {
    min-width: 380px !important;
    border-radius: 0.5rem !important;
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-dropdown .dropdown-menu-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0.5rem 0.5rem 0 0;
}

.notification-dropdown .dropdown-menu-header .dropdown-header {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.notification-dropdown .dropdown-menu-header h5,
.notification-dropdown .dropdown-menu-header i {
    color: #fff !important;
}

.notification-dropdown .badge.bg-label-primary {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    font-weight: 600;
}

.notification-dropdown .scrollable-container {
    max-height: 450px;
    overflow-y: auto;
}

.notification-dropdown .scrollable-container::-webkit-scrollbar {
    width: 6px;
}

.notification-dropdown .scrollable-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.notification-dropdown .scrollable-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.notification-dropdown .scrollable-container::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

.notification-dropdown .list-group-item {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1rem;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.notification-dropdown .list-group-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification-dropdown .list-group-item:hover {
    background-color: rgba(102, 126, 234, 0.05);
    transform: translateX(5px);
}

.notification-dropdown .list-group-item:hover::before {
    opacity: 1;
}

.notification-dropdown .list-group-item:last-child {
    border-bottom: none;
}

.notification-dropdown .notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.notification-dropdown .notification-icon.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff;
}

.notification-dropdown .notification-icon.bg-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
    color: #fff;
}

.notification-dropdown .notification-icon.bg-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    color: #fff;
}

.notification-dropdown .notification-icon.bg-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
    color: #fff;
}

.notification-dropdown .dropdown-notifications-archive {
    color: #999;
    font-size: 1.1rem;
    padding: 0.5rem;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-dropdown .dropdown-notifications-archive:hover {
    color: #fff;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    transform: rotate(90deg);
}

.notification-dropdown h6 {
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.notification-dropdown p {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.35rem;
    line-height: 1.4;
}

.notification-dropdown small {
    font-size: 0.7rem;
    color: #999;
    display: flex;
    align-items: center;
}

.notification-dropdown small i {
    margin-right: 0.25rem;
    font-size: 0.65rem;
}

.badge-notifications {
    font-size: 0.6rem !important;
    padding: 0.3em 0.5em !important;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.notification-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.totalCountNew {
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
}

.dropdown-menu-footer .read-all {
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-menu-footer .read-all:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.dropdown-menu-footer .btn-label-primary {
    transition: all 0.3s ease;
}

.dropdown-menu-footer .btn-label-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* Empty State Styles */
.notification-dropdown .empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
}

.notification-dropdown .empty-state i {
    font-size: 3rem;
    color: #e0e0e0;
    margin-bottom: 1rem;
}

.notification-dropdown .empty-state h6 {
    color: #999;
    font-weight: 500;
}

/* Loading State */
.notification-dropdown .spinner-border {
    width: 1.5rem;
    height: 1.5rem;
}

/* Responsive */
@media (max-width: 576px) {
    .notification-dropdown {
        min-width: 320px !important;
        max-width: calc(100vw - 30px);
    }
}

/* Notification Dropdown Scrollable Container */
.dropdown-notifications-list.scrollable-container {
    max-height: 450px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Notification Item Hover Effect */
.dropdown-notifications-item:hover {
    background-color: rgba(67, 89, 113, 0.04);
    cursor: pointer;
}

/* Avatar Styling */
.dropdown-notifications-item .avatar {
    width: 38px;
    height: 38px;
}

.dropdown-notifications-item .avatar-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Notification Actions */
.dropdown-notifications-actions {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dropdown-notifications-actions a {
    color: #a1acb8;
    font-size: 0.875rem;
    text-decoration: none;
}

.dropdown-notifications-actions a:hover {
    color: #697a8d;
}

/* Badge Dot for Bell Icon */
.badge-dot {
    width: 8px;
    height: 8px;
    padding: 0;
}

/* Waves Effect */
.waves-effect {
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Royal Blue Status Styles (for Shipped order status) */
.btn-blue {
    color: #fff !important;
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

.btn-blue:hover,
.btn-blue:focus,
.btn-blue:active,
.btn-blue.show,
.show > .btn-blue.dropdown-toggle {
    color: #fff !important;
    background-color: #0b5ed7 !important;
    border-color: #0a58ca !important;
    box-shadow: 0 0.125rem 0.25rem 0 rgba(13, 110, 253, 0.4) !important;
}

.btn-blue:disabled,
.btn-blue.disabled {
    color: #fff !important;
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    opacity: 0.65;
}

.bg-blue {
    background-color: #0d6efd !important;
    color: #fff !important;
}

.text-blue {
    color: #0d6efd !important;
}

.bg-label-blue {
    background-color: rgba(13, 110, 253, 0.16) !important;
    color: #0d6efd !important;
}