/* Enhanced Responsive Styles for SMMSun */

/* =========================================
   User Dashboard Sidebar Toggle
   ========================================= */
.sidebar-toggle {
    z-index: 1056 !important;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    background-color: #1e3a8a !important;
    border: none;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    background-color: #1e40af !important;
}

.sidebar-toggle i {
    font-size: 20px;
    color: white;
}

.sidebar-toggle-open {
    position: fixed !important;
    top: 12px !important;
    left: 12px !important;
}

.sidebar-toggle-close {
    position: fixed !important;
    top: 12px !important;
    left: 12px !important;
}

/* Mobile Offcanvas Sidebar */
#sidebarOffcanvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 280px !important;
    height: 100vh !important;
    background: linear-gradient(180deg, #1e3a8a, #1e40af) !important;
    z-index: 1055 !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s ease-in-out !important;
    visibility: hidden !important;
}

#sidebarOffcanvas.show {
    transform: translateX(0) !important;
    visibility: visible !important;
}

#sidebarOffcanvas .offcanvas-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#sidebarOffcanvas .offcanvas-title {
    color: white;
    font-weight: bold;
    font-size: 24px;
}

#sidebarOffcanvas .btn-close-white {
    filter: invert(1);
    opacity: 0.8;
}

#sidebarOffcanvas .offcanvas-body {
    padding: 20px;
    overflow-y: auto;
}

/* Offcanvas Backdrop */
.offcanvas-backdrop-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1054;
    display: none;
}

.offcanvas-backdrop-custom.show {
    display: block;
}

.sidebar-content .user-profile .avatar img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border: 4px solid #60a5fa;
}

.sidebar-content .nav-link {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.3s;
    color: white !important;
}

.sidebar-content .nav-link:hover,
.sidebar-content .nav-link.active {
    background-color: rgba(255,255,255,0.15);
}

.sidebar-content .logout-btn {
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 600;
    color: #ef4444 !important;
}

.sidebar-content .logout-btn:hover {
    background-color: rgba(220, 38, 38, 0.15);
}

/* Dashboard Mobile Responsive */
@media (max-width: 991.98px) {
    .sidebar-content .new-badge {
        top: -8px;
        right: calc(50% - 50px);
    }
    
    .sidebar-content .user-profile h5 {
        font-size: 16px;
    }
    
    .sidebar-content .user-profile p {
        font-size: 14px;
    }
    
    /* Dashboard content adjustments */
    .dashboard-section .stat-card {
        margin-bottom: 10px;
    }
    
    /* Show toggle button properly */
    .sidebar-toggle {
        display: flex !important;
    }
    
    .dashboard-section .card_type_3 .card-body {
        padding: 15px;
    }
    
    .dashboard-section .table-responsive {
        font-size: 12px;
    }
    
    .dashboard-section .table th,
    .dashboard-section .table td {
        padding: 8px 5px;
        white-space: nowrap;
    }
    
    /* Orders section */
    .orders-section .page-title h2,
    .tickets-section .page-title h2,
    .add-funds-section .page-title h2 {
        font-size: 1.25rem;
    }
    
    /* Forms */
    .dashboard-section .form-label {
        font-size: 14px;
    }
    
    .dashboard-section .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* xs & sm only (max-width: 767.98px) - OFFCANVAS */
@media (max-width: 767.98px) {
    .sidebar-toggle-open {
        display: flex !important;
    }
    
    .col-lg-2.d-lg-block {
        display: none !important;
    }
}

/* md and above - show static sidebar, hide toggle */
@media (min-width: 768px) {
    .sidebar-toggle-open,
    .sidebar-toggle-close {
        display: none !important;
    }
}

/* Base responsive adjustments */
@media (max-width: 991.98px) {
    .navbar .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .navbar-collapse {
        background: #fff;
        padding: 15px;
        border-radius: 8px;
        margin-top: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .navbar-nav {
        margin-bottom: 10px;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px !important;
        border-radius: 5px;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background: #f8f9fa;
    }
}

@media (max-width: 767.98px) {
    /* Section padding for mobile */
    section {
        padding: 40px 0;
    }
    
    /* Hero section mobile */
    #hero .hero_content {
        text-align: center;
        margin-bottom: 30px;
    }
    
    #hero .hero_image {
        text-align: center !important;
    }
    
    #hero .hero_image img {
        max-width: 80%;
    }
    
    /* Counter section */
    .counter__item {
        text-align: center;
        padding: 20px 10px;
    }
    
    /* Service tabs mobile */
    .home-service-card .card-header {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .home-service-card .nav-pills {
        flex-wrap: nowrap;
        min-width: max-content;
    }
    
    .home-service-card .nav-link {
        white-space: nowrap;
        padding: 10px 15px;
    }
    
    .home-service-card .nav-link .icon img {
        width: 24px;
        height: 24px;
    }
    
    /* Services content wrap mobile */
    .services_content_wrap {
        flex-direction: column;
        text-align: center;
    }
    
    .services_content_wrap .services_content_left {
        order: 2;
        margin-top: 20px;
    }
    
    .services_content_wrap .services_content_right {
        order: 1;
    }
    
    /* Steps section mobile */
    .step-item {
        text-align: center;
        margin-bottom: 30px;
    }
    
    /* Why choose us mobile */
    .why_choose_item {
        text-align: center;
        padding: 20px;
    }
    
    .why_choose_item .icon {
        margin: 0 auto 15px;
    }
    
    /* Testimonials mobile */
    #testimonials .testimonials_image {
        text-align: center;
        margin-bottom: 30px;
    }
    
    #testimonials .testimonial__wraper {
        text-align: center;
    }
    
    /* About section mobile */
    #aboutus .def__title__wrap,
    #aboutus .aboutus_image {
        text-align: center;
    }
    
    #aboutus .aboutus_image {
        margin-top: 30px;
    }
    
    /* Footer mobile */
    footer {
        text-align: center;
    }
    
    footer .footer_main_info {
        margin-bottom: 30px;
    }
    
    footer .social_media_links {
        justify-content: center;
    }
    
    footer .footer_link_wrap {
        margin-bottom: 20px;
    }
    
    footer .contact_wrap .contact_item {
        justify-content: center;
    }
}

/* Extra small devices */
@media (max-width: 575.98px) {
    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    
    /* Buttons */
    .btn {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    /* Form controls */
    .form-control, .form-select {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    /* Cards */
    .card {
        margin-bottom: 15px;
    }
    
    /* Counter section */
    .counter__item h4 {
        font-size: 1.5rem;
    }
    
    /* FAQ accordion */
    .accordion-button {
        font-size: 14px;
        padding: 12px;
    }
    
    .accordion-body {
        font-size: 14px;
    }
    
    /* Payment methods */
    #paymentMethods .def__title__wrap,
    #paymentMethods .ready-social-media {
        text-align: center;
    }
    
    #paymentMethods .ready-social-media {
        margin-top: 25px;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Print styles */
@media print {
    .whatsapp-container,
    .navbar-toggler,
    header button {
        display: none !important;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Better focus states for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Remove focus outline for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

/* Touch-friendly targets (minimum 44px) */
.btn, 
.nav-link, 
.form-control, 
select,
a {
    min-height: 44px;
}

/* Better image handling */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent content overflow */
body {
    overflow-x: hidden;
}

.container-fluid {
    overflow-x: hidden;
}


@media only screen and (max-width: 991px) {
    .hero_content p {
        margin-left: auto;
        margin-right: auto;
    }
}
@media only screen and (max-width: 1199px) {
.footer_main_info .logo-white {
  margin-bottom: 10px;
  width: 200px;
   }
}
