@media only screen and (min-width: 1201px) and (max-width: 3840px) {
    .sidebar-md {
        display: none;
    }

    .page-topbar .navbar-header {
        justify-content: flex-end;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1200px) {
    .sidebar-md {
        display: none;
    }

    .page-topbar .navbar-header {
        justify-content: flex-end;
    }
}

@media only screen and (min-width: 769px) and (max-width: 991px) {
    .sidebar-lg {
        display: none;
    }

    .main-content {
        margin-left: 0;
    }
}

@media only screen and (min-width: 577px) and (max-width: 768px) {
    .sidebar-lg {
        display: none;
    }

    .main-content {
        margin-left: 0;
    }
}

@media only screen and (max-width: 500px) {
    .g-recaptcha {
        transform: scale(0.77);
        transform-origin: 0 0;
    }
}

@media only screen and (min-width: 375px) and (max-width: 576px) {
    .sidebar-lg {
        display: none;
    }

    .main-content {
        margin-left: 0;
    }

    .register-padding {
        padding: 32px;
    }
}

@media only screen and (min-width: 200px) and (max-width: 425px) {

    .btn-primary.padding,
    .btn-secondary.padding {
        padding: 13px 0px !important;
    }
}

@media only screen and (min-width: 200px) and (max-width: 374px) {
    .sidebar-lg {
        display: none;
    }

    .main-content {
        margin-left: 0;
    }

    .register-padding {
        padding: 32px;
    }

}

@media only screen and (max-width: 1440px) {
    .bg-img {
        bottom: 19%;
    }

    .bg-img2 {
        bottom: 52%;
    }

}

@media only screen and (max-width: 1024px) and (min-width: 576px) {

    .register-padding {
        padding: 32px;
    }
}

@media only screen and (max-width: 768px) {
    .bg-img {
        display: none;
    }

    .bg-img2 {
        display: none;
    }
}

/* New login form  start */
@media (max-width:576px) {
    .paln-img {
        display: none;
    }

    .card-box {
        margin-top: 15px;
        margin-bottom: 15px;
    }
}

@media (max-width:992px) {

    .main-content-rtl {
        margin-right: 0rem !important;
    }

}

@media only screen and (min-width: 200px) and (max-width: 374px) {
    .page-content {
        padding: 12px !important;
        padding-bottom: 100px !important;
    }
}

@media only screen and (min-width: 768px) and (max-width: 3216px) {
    .moveing-img {
        height: 250px;
    }
}

@media only screen and (min-width: 200px) and (max-width: 767px) {
    .moveing-img {
        height: 180px;
    }
}

@media (max-width: 375px) {
    audio {
        width: 100%;
    }
}

/* ============================ pos Dhruvil desai Add =================================== */

@media screen and (min-device-width: 376px) and (max-device-width: 420px) {
    .sidebares {
        top: 65px;
        width: 100%;
        border-right: 0px solid var(--bs-secondary);
        border-bottom: 1px solid var(--bs-secondary) !important;
        padding: 10px 5px !important;
    }

    .imgs {
        height: 200px;
    }
}

@media screen and (min-device-width: 200px) and (max-device-width: 375px) {
    .imgs {
        height: 190px;
    }
}

@media screen and (min-device-width: 576px) and (max-device-width: 767px) {
    .sidebares {
        top: 62px;
        width: 100%;
        border-right: 0px solid var(--bs-secondary);
        border-bottom: 1px solid var(--bs-secondary) !important;
        padding: 10px 10px !important;
    }

    .imgs {
        height: 200px;
    }
}

@media screen and (min-device-width: 425px) and (max-device-width: 768px) {
    .imgs {
        height: 250px;
    }
}

@media screen and (min-device-width: 421px) and (max-device-width: 424px) {
    .imgs {
        height: 200px;
    }
}

@media screen and (min-device-width: 200px) and (max-device-width: 576px) {
    .btn-search {
        width: 30px;
    }

    .offcanvas {
        width: 95% !important;
    }

    .total-pay1 {
        width: 100%;
    }

    .sidebares {
        top: 62px;
        width: 100%;
        border-right: 0px solid var(--bs-secondary);
        border-bottom: 1px solid var(--bs-secondary) !important;
        padding: 10px 10px !important;
    }
}

@media screen and (min-device-width: 200px) and (max-device-width: 767px) {
    .main-product-right {
        margin-top: 130px;
        margin-right: 0px;
    }

    .main-product {
        margin-top: 130px;
        margin-left: 0px;
    }

    .logo-size {
        height: 35px;
    }

    .sidebr-box {
        width: 100px;
        height: 100px;
        margin: 0px;
    }

}


@media screen and (min-device-width: 992px) and (max-device-width: 1199px) {
    .main-product-right {
        margin-right: 130px;
    }

    .main-product {
        margin-left: 130px;
    }
}

@media screen and (min-device-width: 1920px) and (max-device-width: 2560px) {
    .main-product-right {
        margin-right: 130px;
    }

    .main-product {
        margin-left: 130px;
    }

    .sidebr-box {
        width: 110px !important;
        height: 110px !important;
    }
}

@media screen and (min-device-width: 1680px) and (max-device-width: 1920px) {
    .main-product-right {
        margin-right: 140px;
    }

    .main-product {
        margin-left: 140px;
    }

    .sidebr-box {
        width: 110px !important;
        height: 110px !important;
    }
}

@media screen and (min-device-width: 1440px) and (max-device-width: 1680px) {
    .main-product-right {
        margin-right: 120px;
    }

    .main-product {
        margin-left: 120px;
    }
}

@media screen and (min-device-width: 1260px) and (max-device-width: 1440px) {
    .main-product-right {
        margin-right: 130px;
    }

    .main-product {
        margin-left: 130px;
    }
}

@media screen and (min-device-width: 768px) and (max-device-width: 1024px) {
    .main-product-right {
        margin-right: 120px;
    }

    .main-product {
        margin-left: 120px;
    }
}

@media screen and (min-device-width: 767px) and (max-device-width: 768px) {
    .main-product-right {
        margin-right: 115px;
    }

    .main-product {
        margin-left: 115px;
    }
}

@media screen and (min-device-width: 1200px) and (max-device-width: 1399px) {
    .sidebares {
        border-right: 1px solid var(--bs-secondary);
    }

}

@media screen and (min-device-width: 845px) and (max-device-width: 2560px) {
    .sidebares {
        top: 0;
        bottom: 0;
        overflow-y: scroll;
        height: 100%;
        border-right: 1px solid var(--bs-secondary);
        padding: 90px 10px !important;
    }
}

@media screen and (min-device-width: 768px) and (max-device-width: 844px) {
    .sidebares {
        top: 77px;
        width: 100%;
        border-right: 0px solid var(--bs-secondary);
        border-bottom: 1px solid var(--bs-secondary) !important;
        padding: 10px 10px !important;
    }

    .main-product-right {
        margin-top: 18.5%;
        margin-right: 0px;
    }

    .main-product {
        margin-top: 18.5%;
        margin-left: 0px;
    }

    .d-contents-flex {
        display: flex !important;
        flex-direction: row !important;
    }
}

@media (max-width: 768px) {
    .mobile-menu-footer {
        display: block;
    }
}

@media only screen and (min-width: 200px) and (max-width: 575px) {
    .lag-btn .dropdown-menu {
        --bs-dropdown-min-width: 8rem !important;
        padding: 0px 0px !important;
        overflow: hidden !important;
        font-size: 12px !important;
    }
}

/* ============================================================
   MOBILE-FRIENDLY DASHBOARD STYLES
   Added for comprehensive mobile responsiveness
   ============================================================ */

/* Dashboard Stats Grid - Stack on mobile */
@media (max-width: 991.98px) {
    .pro-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .pro-charts-row {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .pro-quick-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 767.98px) {
    .pro-stats-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .pro-quick-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Form columns - full width on mobile */
    .col-md-4,
    .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Filter forms - remove min-width constraints */
    .orders-filter-item,
    .filter-item {
        min-width: 100% !important;
        width: 100% !important;
    }

    /* Card padding reduction */
    .card-body {
        padding: 1rem !important;
    }

    /* Page content padding */
    .page-content {
        padding: 12px !important;
    }

    /* CEZN content area */
    .cezn-content {
        padding: 12px !important;
    }
}

@media (max-width: 575.98px) {
    .pro-quick-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Stat cards - smaller text */
    .pro-stat-value,
    .stat-value {
        font-size: 1.25rem !important;
    }

    /* Card padding - extra small screens */
    .card-body {
        padding: 0.75rem !important;
    }

    /* Modal responsiveness */
    .modal-dialog {
        margin: 0.5rem !important;
        max-width: calc(100% - 1rem) !important;
    }

    .modal-content {
        max-height: calc(100vh - 1rem);
    }

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

    /* Header adjustments */
    .cezn-header {
        padding: 8px 12px !important;
    }

    .cezn-header-actions .btn {
        padding: 6px 10px !important;
    }
}

/* Tables - Horizontal scroll and optimization */
@media (max-width: 991.98px) {
    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
    }

    .table-responsive > .table {
        margin-bottom: 0;
    }

    .table th,
    .table td {
        white-space: nowrap;
        vertical-align: middle;
    }

    /* Action buttons in tables */
    .table .btn-group {
        flex-wrap: nowrap;
    }

    .table .d-flex {
        flex-wrap: nowrap;
        gap: 4px;
    }
}

/* Button touch targets - minimum 44x44px */
@media (max-width: 767.98px) {
    .btn {
        min-height: 44px;
        padding: 10px 16px !important;
    }

    .btn-sm {
        min-height: 40px;
        padding: 8px 12px !important;
    }

    .btn-icon,
    .btn-circle {
        min-width: 44px;
        min-height: 44px;
    }

    /* Action buttons in tables - stack if needed */
    .action-btns,
    .table-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
}

/* Settings page sidebar */
@media (max-width: 991.98px) {
    .card-sticky-top {
        position: relative !important;
        top: auto !important;
    }

    /* Settings sidebar - full width on tablet/mobile */
    .settings-sidebar,
    .col-xl-3.settings-nav {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 1rem;
    }
}

/* DataTables responsiveness */
@media (max-width: 767.98px) {
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        text-align: left !important;
        margin-bottom: 10px;
    }

    .dataTables_wrapper .dataTables_filter input {
        width: 100% !important;
        max-width: 100% !important;
    }

    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        text-align: center !important;
        margin-top: 10px;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button {
        padding: 8px 12px !important;
        margin: 2px !important;
    }
}

/* Charts container */
@media (max-width: 767.98px) {
    .chart-container,
    .apexcharts-canvas {
        width: 100% !important;
        min-height: 250px !important;
    }
}

/* Dropdown menus */
@media (max-width: 575.98px) {
    .dropdown-menu {
        max-width: calc(100vw - 20px);
        overflow-x: auto;
    }

    .dropdown-menu.show {
        position: fixed !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
    }
}

/* Form groups and inputs */
@media (max-width: 767.98px) {
    .form-group,
    .mb-3 {
        margin-bottom: 1rem !important;
    }

    .form-control,
    .form-select {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }

    .input-group {
        flex-wrap: wrap;
    }

    .input-group > .form-control,
    .input-group > .form-select {
        flex: 1 1 100%;
        margin-bottom: 8px;
    }

    .input-group > .btn,
    .input-group > .input-group-text {
        flex: 1 1 100%;
    }
}

/* Flex utilities for mobile stacking */
@media (max-width: 767.98px) {
    .d-flex.flex-wrap-mobile {
        flex-wrap: wrap !important;
    }

    .d-flex.flex-wrap-mobile > * {
        flex: 0 0 100% !important;
        margin-bottom: 8px;
    }

    .gap-3 {
        gap: 0.75rem !important;
    }

    .gap-4 {
        gap: 1rem !important;
    }
}

/* Badge and status indicators */
@media (max-width: 575.98px) {
    .badge {
        font-size: 0.7rem !important;
        padding: 4px 8px !important;
    }
}

/* Navigation tabs */
@media (max-width: 767.98px) {
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-tabs .nav-link {
        white-space: nowrap;
        padding: 10px 16px;
    }
}

/* Image thumbnails in tables */
@media (max-width: 575.98px) {
    .hw-50,
    .table img.thumbnail {
        width: 40px !important;
        height: 40px !important;
    }

    .hw-80 {
        width: 60px !important;
        height: 60px !important;
    }
}

/* Breadcrumb */
@media (max-width: 575.98px) {
    .breadcrumb {
        font-size: 0.8rem;
    }

    .breadcrumb-item + .breadcrumb-item::before {
        padding: 0 4px;
    }
}

/* Alert boxes */
@media (max-width: 767.98px) {
    .alert {
        padding: 12px !important;
        font-size: 0.875rem;
    }
}

/* Print styles - hide mobile elements */
@media print {
    .mobile-menu-footer,
    .wix-sidebar-overlay,
    .mobile-toggle {
        display: none !important;
    }
}