/* =================================================_
   Massusi Responsive Design System
   ================================================= */

/* Medium Devices (Tablets, 768px and down) */
@media screen and (max-width: 768px) {
    /* Layout & Shell Adjustment */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1100;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 1rem;
    }

    /* Table Adjustments */
    .data-table th,
    .data-table td {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    /* Modal Adjustments */
    .modal-dialog {
        max-width: 90%;
        margin: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-footer {
        padding: 0.75rem 1rem;
        flex-direction: column-reverse;
    }

    .modal-footer .btn {
        width: 100%;
    }
}

/* Small Devices (Phones, 480px and down) */
@media screen and (max-width: 480px) {
    /* Form Stack Fixes */
    .form-row, 
    .table-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-icon {
        width: 100%;
        height: 38px;
    }

    /* Typography Adjustments */
    body {
        font-size: 14px;
    }

    .modal-dialog {
        max-width: 95%;
        margin: 0.5rem;
    }
}