/* Mobile-responsive styles (min-width 320px) */

@media (max-width: 768px) {
    /* Navbar */
    .navbar-brand {
        font-size: 1rem;
    }

    .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Cards full width on mobile */
    .card {
        margin-left: -8px;
        margin-right: -8px;
        border-radius: 0;
    }

    /* Single-column forms */
    .row > [class*="col-"] {
        margin-bottom: 8px;
    }

    /* Tables scrollable */
    .table-responsive {
        margin: 0 -1rem;
    }

    /* Stack position cards */
    .list-group-item {
        flex-direction: column !important;
    }

    .list-group-item .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .list-group-item .btn {
        margin-top: 8px;
    }

    /* Profile wizard on mobile */
    .profile-wizard-step .step-label {
        font-size: 0.75rem;
    }

    .profile-wizard-step .step-circle {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .profile-wizard-step:not(:last-child)::after {
        top: 13px;
    }

    /* Buttons full width on small screens */
    @media (max-width: 480px) {
        .btn {
            width: 100%;
            margin-bottom: 4px;
        }

        .btn-group {
            display: flex;
            flex-direction: column;
        }

        .btn-group .btn {
            border-radius: 6px !important;
            margin-bottom: 4px;
        }

        .d-flex.gap-2 {
            flex-direction: column;
        }

        .modal-dialog {
            margin: 0.5rem;
        }
    }

    /* Hide sidebar-like elements on mobile */
    .col-lg-4 {
        margin-top: 1rem;
    }
}

/* Larger touch targets */
@media (pointer: coarse) {
    .btn {
        min-height: 44px;
    }

    .form-control, .form-select {
        min-height: 44px;
    }

    .pagination .page-link {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
