/* Admin Mobile Optimizations */
/* Hide headers on mobile to save space and create cleaner UI */

@media (max-width: 768px) {
    /* Hide main page headers */
    .d-flex.justify-content-between.flex-wrap.flex-md-nowrap.align-items-center.pt-3.pb-2.mb-3.border-bottom {
        display: none !important;
    }
    
    /* Adjust main content padding */
    .main-content {
        padding-top: 10px !important;
        padding-bottom: 100px !important; /* Space for mobile navbar */
    }
    
    /* Optimize container margins */
    .container-fluid {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    
    /* Hide desktop-only buttons and elements */
    .d-none.d-lg-block,
    .d-none.d-md-block {
        display: none !important;
    }
    
    /* Show mobile-only elements */
    .d-lg-none {
        display: block !important;
    }
    
    /* Optimize card margins */
    .card {
        margin-bottom: 10px !important;
    }
    
    /* Optimize table responsiveness */
    .table-responsive {
        font-size: 0.8rem;
    }
    
    /* Optimize button sizes */
    .btn {
        font-size: 0.8rem;
        padding: 0.375rem 0.75rem;
    }
    
    /* Optimize form controls */
    .form-control,
    .form-select {
        font-size: 0.9rem;
    }
    
    /* Optimize modal sizes */
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    /* Optimize sidebar for mobile */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
}

/* Additional mobile optimizations for specific admin pages */
@media (max-width: 768px) {
    /* Hide breadcrumbs on mobile */
    .breadcrumb {
        display: none !important;
    }
    
    /* Optimize page titles */
    .h1, .h2, .h3, .h4, .h5, .h6 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    /* Optimize spacing */
    .pt-3, .pb-2, .mb-3 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Optimize border bottom */
    .border-bottom {
        border-bottom: 1px solid #dee2e6 !important;
        margin-bottom: 0.5rem !important;
    }
}
