/* --- Global Reset & Mobile Shake Fix --- */
* { box-sizing: border-box; }
body {
    background: #0f172a;
    color: #e2e8f0;
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 10px;
    line-height: 1.6;
    overflow-x: hidden; /* Prevents horizontal wobble on mobile */
}

.glass-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
    width: 100%;
    margin-bottom: 20px;
}

/* Animations */
.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn 0.4s ease-out; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Elements */
input, select, textarea {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 12px 15px !important;
    font-size: 16px !important; /* Prevents iOS auto-zoom */
    transition: all 0.3s ease;
    width: 100%;
}

input:focus, select:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: #0dcaf0 !important;
    box-shadow: 0 0 10px rgba(13, 202, 240, 0.2);
    outline: none;
}

/* Fix for Select Arrow Visibility & Dropdown */
select option { background: #1e293b; color: white; }

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    body { padding: 10px 5px; }

    .glass-container {
        padding: 20px 15px;
        border-radius: 12px;
    }

    h2, .h2 { font-size: 1.4rem; }
    h4, .h4 { font-size: 1.1rem; }

    /* The "No Squish" Table Fix */
    .table-responsive {
        border: none;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 10px;
    }
    
    .table-responsive table {
        min-width: 600px; /* Forces swipe instead of squishing text */
    }

    .btn {
        width: 100%;
        display: block;
        margin-bottom: 12px;
        padding: 14px;
        font-weight: 500;
        border-radius: 10px;
    }
}

/* Status Stamp for Receipts */
.status-stamp {
    border: 2px solid;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(-12deg);
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 0.9rem;
    pointer-events: none;
}

/* Small Device Adjustment */
@media (max-width: 480px) {
    .status-stamp {
        position: relative; /* Stacks it so it doesn't cover text on tiny screens */
        display: inline-block;
        transform: none;
        margin-bottom: 15px;
        top: 0;
        right: 0;
    }
}