/* Mobile optimizations for entire application */

@media (max-width: 767px) {
    /* Main content container */
    .main-content {
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Remove all container padding */
    .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    /* Cards to take full width */
    .card {
        border-radius: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
        margin-bottom: 0.5rem !important; 
    }
    
    .card-header {
        padding: 0.5rem !important;
    }
    
    .card-body {
        padding: 0.5rem !important;
    }
    
    /* Table adjustments */
    .table-responsive {
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }
    
    /* More compact forms and inputs */
    .input-group-text {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.8rem !important;
    }
    
    .form-select, .form-control {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.8rem !important;
    }
    
    /* Remove row margins */
    .row {
        margin: 0 !important;
    }
    
    /* Remove column padding */
    .col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, 
    .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
    [class*="col-"] {
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }
    
    /* Optimize section headers */
    .section-header {
        padding: 0.25rem !important;
    }
    
    /* Smaller text for better mobile experience */
    .mobile-small-text {
        font-size: 0.8rem !important;
    }
    
    /* Make tabs more compact */
    .nav-tabs .nav-link {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.8rem !important;
    }
    
    /* More compact buttons */
    .btn-sm {
        padding: 0.12rem 0.25rem !important;
        font-size: 0.75rem !important;
    }
}

/* Make sidebar toggle button more visible on mobile */
@media (max-width: 767px) {
    #mobileMenuToggle {
        position: fixed;
        bottom: 1rem;
        right: 1rem;
        z-index: 1040;
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 50%;
        background-color: #0d6efd;
        color: white;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        display: flex;
        align-items: center;
        justify-content: center;
    }
}