/* Responsive Design Enhancements */

/* Mobile-first responsive design */
@media (max-width: 576px) {
    /* Small mobile phones */
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .card {
        margin-bottom: 16px;
    }
    
    .btn {
        font-size: 14px;
        padding: 8px 16px;
    }
}

@media (max-width: 768px) {
    /* Mobile devices */
    .table-responsive {
        font-size: 14px;
    }
    
    .card-header {
        padding: 12px 16px;
    }
    
    .card-body {
        padding: 16px;
    }
    
    /* Hide less important columns on mobile */
    .d-mobile-none {
        display: none !important;
    }
    
    /* Stack buttons vertically on mobile */
    .btn-group-mobile {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-group-mobile .btn {
        width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    /* Tablet devices */
    .container {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (min-width: 992px) {
    /* Desktop devices */
    .d-mobile-none {
        display: table-cell !important;
    }
    
    .btn-group-mobile {
        flex-direction: row;
        gap: 12px;
    }
    
    .btn-group-mobile .btn {
        width: auto;
    }
}

/* Touch-friendly design */
@media (hover: none) and (pointer: coarse) {
    /* Touch devices */
    .btn, .menu-item, .fab {
        min-height: 44px; /* iOS/Android minimum touch target */
    }
    
    .table td, .table th {
        padding: 12px 8px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .fab {
        box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    }
}

/* Force light mode always */
:root {
    --bs-body-bg: #ffffff !important;
    --bs-body-color: #212529 !important;
    color-scheme: light only;
}

/* Print styles */
@media print {
    .fab-container,
    .bottom-sheet,
    .bottom-sheet-overlay,
    .btn,
    nav {
        display: none !important;
    }
    
    body {
        padding-bottom: 0 !important;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .bottom-sheet {
        max-height: 90vh;
    }
    
    .fab-container {
        bottom: 12px;
        right: 12px;
    }
    
    .fab {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}