/* ================================================
   MAMA FUA LAUNDRY - COMPREHENSIVE RESPONSIVE DESIGN
   ================================================ */

/* ======================
   GLOBAL RESPONSIVE STYLES
   ====================== */

/* Base responsive typography */
html {
    font-size: 16px;
}

@media (max-width: 1200px) {
    html { font-size: 15px; }
}

@media (max-width: 992px) {
    html { font-size: 14px; }
}

@media (max-width: 768px) {
    html { font-size: 13px; }
}

@media (max-width: 576px) {
    html { font-size: 12px; }
}

/* Container responsive adjustments */
.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

@media (max-width: 576px) {
    .container,
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* ======================
   NAVIGATION RESPONSIVE
   ====================== */

/* Mobile navigation improvements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-radius: 12px;
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        margin-bottom: 0.25rem;
        transition: all 0.3s ease;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: rgba(13, 110, 253, 0.1);
        color: #0d6efd;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.5rem;
        border-radius: 8px;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
}

/* ======================
   HERO SECTION RESPONSIVE
   ====================== */

@media (max-width: 1199.98px) {
    .hero-section {
        padding: 4rem 0 3rem;
    }
    
    .hero-section h1 {
        font-size: 2.8rem;
        line-height: 1.2;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        padding: 3rem 0 2rem;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.4rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-section .btn-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-section .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 2rem 0 1.5rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-section .lead {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-section .badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero-section .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* ======================
   CARDS & FEATURES RESPONSIVE
   ====================== */

@media (max-width: 991.98px) {
    .feature-box,
    .service-card {
        margin-bottom: 2rem;
    }
    
    .feature-box {
        padding: 2rem;
    }
    
    .feature-box .icon-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 1.25rem;
    }
    
    .feature-box .icon-wrapper i {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .feature-box {
        padding: 1.5rem;
        text-align: center;
    }
    
    .feature-box h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-box p {
        font-size: 0.9rem;
    }
    
    .service-card {
        text-align: center;
    }
    
    .service-card .card-body {
        padding: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .feature-box {
        padding: 1.25rem;
    }
    
    .feature-box .icon-wrapper {
        width: 60px;
        height: 60px;
        margin: 0 auto 1rem;
    }
    
    .feature-box .icon-wrapper i {
        font-size: 1.75rem;
    }
}

/* ======================
   DASHBOARD RESPONSIVE
   ====================== */

@media (max-width: 991.98px) {
    .dashboard-sidebar {
        position: static;
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .dashboard-content {
        margin-left: 0;
    }
    
    .dashboard-nav {
        display: flex;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .dashboard-nav .nav-link {
        white-space: nowrap;
        margin-right: 0.5rem;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        background: #f8f9fa;
        border: 1px solid #dee2e6;
    }
    
    .dashboard-nav .nav-link.active {
        background: #0d6efd;
        color: white;
        border-color: #0d6efd;
    }
}

@media (max-width: 767.98px) {
    .dashboard-stats {
        margin-bottom: 1.5rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .stat-card h3 {
        font-size: 1.5rem;
    }
    
    .stat-card p {
        font-size: 0.9rem;
    }
    
    .table-responsive {
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }
}

/* ======================
   FORMS RESPONSIVE
   ====================== */

@media (max-width: 767.98px) {
    .form-floating {
        margin-bottom: 1rem;
    }
    
    .form-floating > label {
        font-size: 0.875rem;
    }
    
    .form-control {
        padding: 0.875rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .form-floating > .form-control {
        padding: 0.75rem;
    }
    
    .form-floating > label {
        font-size: 0.8rem;
        padding: 0.75rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        border-radius: 0.375rem !important;
        margin-bottom: 0.5rem;
    }
}

/* ======================
   CHECKOUT RESPONSIVE
   ====================== */

@media (max-width: 991.98px) {
    .checkout-container .row {
        flex-direction: column-reverse;
    }
    
    .order-summary {
        position: static !important;
        margin-bottom: 2rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 767.98px) {
    .checkout-container {
        padding: 1rem 0;
    }
    
    .checkout-container h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .checkout-container .lead {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .service-card h5 {
        font-size: 1.1rem;
    }
    
    .service-card .price {
        font-size: 1.25rem;
    }
    
    .cart-item {
        padding: 1rem;
        border-radius: 8px;
        margin-bottom: 1rem;
    }
    
    .cart-item-details {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-item-actions {
        margin-top: 1rem;
        justify-content: center;
    }
}

/* ======================
   ADMIN PANEL RESPONSIVE
   ====================== */

@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .admin-sidebar.show {
        transform: translateX(0);
    }
    
    .admin-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .admin-header {
        padding: 1rem;
    }
    
    .admin-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 767.98px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .data-table {
        font-size: 0.875rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .action-buttons .btn {
        font-size: 0.8rem;
        padding: 0.375rem 0.75rem;
    }
}

/* ======================
   MODAL RESPONSIVE
   ====================== */

@media (max-width: 767.98px) {
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .modal-content {
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 1rem;
        border-bottom: 1px solid #dee2e6;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 1rem;
        border-top: 1px solid #dee2e6;
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .modal-footer .btn:last-child {
        margin-bottom: 0;
    }
}

/* ======================
   UTILITIES RESPONSIVE
   ====================== */

/* Responsive spacing utilities */
@media (max-width: 767.98px) {
    .py-5 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
    .py-4 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    .my-5 { margin-top: 2.5rem !important; margin-bottom: 2.5rem !important; }
    .my-4 { margin-top: 2rem !important; margin-bottom: 2rem !important; }
}

@media (max-width: 575.98px) {
    .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    .py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
    .my-5 { margin-top: 2rem !important; margin-bottom: 2rem !important; }
    .my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
}

/* Responsive text utilities */
@media (max-width: 767.98px) {
    .display-1 { font-size: 3rem; }
    .display-2 { font-size: 2.5rem; }
    .display-3 { font-size: 2rem; }
    .display-4 { font-size: 1.75rem; }
    .display-5 { font-size: 1.5rem; }
    .display-6 { font-size: 1.25rem; }
    
    .lead { font-size: 1rem; }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1.1rem; }
    h6 { font-size: 1rem; }
}

/* Responsive visibility utilities */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

@media (max-width: 767.98px) {
    .mobile-only {
        display: block;
    }
    
    .desktop-only {
        display: none;
    }
    
    .mobile-hidden {
        display: none !important;
    }
    
    .mobile-center {
        text-align: center !important;
    }
    
    .mobile-full-width {
        width: 100% !important;
    }
}

/* ======================
   TOUCH OPTIMIZATIONS
   ====================== */

/* Larger touch targets for mobile */
@media (max-width: 767.98px) {
    .btn,
    .form-control,
    .form-select,
    .nav-link,
    .dropdown-item {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn-sm {
        min-height: 36px;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        min-height: 52px;
        padding: 1rem 2rem;
        font-size: 1.125rem;
    }
}

/* ======================
   PERFORMANCE OPTIMIZATIONS
   ====================== */

/* Reduce animations on mobile for better performance */
@media (max-width: 767.98px) {
    *,
    *::before,
    *::after {
        animation-duration: 0.3s !important;
        animation-delay: 0s !important;
        transition-duration: 0.3s !important;
        transition-delay: 0s !important;
    }
    
    .aos-animate {
        animation-duration: 0.3s !important;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ======================
   PRINT STYLES
   ====================== */

@media print {
    .no-print,
    .navbar,
    .footer,
    .btn,
    .modal,
    .dropdown-menu {
        display: none !important;
    }
    
    .container {
        max-width: none !important;
        padding: 0 !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
    
    body {
        font-size: 12pt !important;
        line-height: 1.4 !important;
        color: #000 !important;
        background: #fff !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000 !important;
        page-break-after: avoid;
    }
    
    .table {
        border-collapse: collapse !important;
    }
    
    .table th,
    .table td {
        border: 1px solid #000 !important;
        padding: 0.5rem !important;
    }
}
