/* Mobile-first base styles */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    background-color: #f5f5f5;
}

/* Responsive typography */
@@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* Card improvements */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.3s ease;
}

    .card:hover {
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    }

.card-header {
    border-bottom: none;
    border-radius: 0.5rem 0.5rem 0 0 !important;
    font-weight: 600;
}

/* Table improvements */
.table {
    vertical-align: middle;
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
}

/* Button improvements */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s;
}

    .btn:active {
        transform: scale(0.98);
    }

/* Form improvements */
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Alert improvements */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Mobile-specific utilities */
@@media (max-width: 575.98px) {
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .card-body {
        padding: 0.75rem;
    }

    .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }

    .input-group {
        flex-wrap: nowrap;
    }
}

/* Touch-friendly improvements */
@@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }

    .btn:active {
        transform: scale(0.95);
    }
}

/* Dark mode support */
@@media (prefers-color-scheme: dark) {
    body {
        background-color: #212529;
        color: #dee2e6;
    }

    .card {
        background-color: #2c3034;
        color: #dee2e6;
    }

    .table {
        color: #dee2e6;
    }
}
