/* Layout & Overflow Containment for Mobile Screens (300px to 500px) */
html,
body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

/* Micro Typography for 300px - 400px Viewports */
.text-3xs {
    font-size: 0.65rem
        /* 10.4px */
    ;
    line-height: 0.875rem
        /* 14px */
    ;
}

.text-2xs {
    font-size: 0.72rem
        /* 11.5px */
    ;
    line-height: 0.95rem;
}

@media (min-width: 380px) {
    .xs\:text-xs {
        font-size: 0.75rem;
        line-height: 1rem;
    }

    .xs\:text-sm {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }

    .xs\:text-base {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    .xs\:text-lg {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }

    .xs\:text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }

    .xs\:p-3 {
        padding: 0.75rem;
    }

    .xs\:p-4 {
        padding: 1rem;
    }

    .xs\:p-6 {
        padding: 1.5rem;
    }
}

/* Card Transitions */
.custom-card {
    transition: all 0.25s ease-in-out;
    width: 100%;
    max-width: 100%;
}

/* Buttons & Touch Target Rules */
button {
    transition: transform 0.1s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    touch-action: manipulation;
}

button:active {
    transform: scale(0.97);
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #f59e0b !important;
    /* 999moneysave Gold Highlight */
    outline-offset: 1px;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #4B5563;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6B7280;
}

/* =========================================================================
   SWEETALERT2 MOBILE RESPONSIVE & HIGH CONTRAST DARK STYLING
   ========================================================================= */

/* Top-Center Container Position for Mobile Screens */
div.swal2-container.swal2-top,
div.swal2-container.swal2-center {
    padding: 0.5rem !important;
}

/* SweetAlert Popup Box Styling */
.swal-mobile-size {
    width: 92% !important;
    max-width: 380px !important;
    padding: 1rem 1.1rem !important;
    border-radius: 12px !important;
    background-color: #0f172a !important;
    /* Deep Dark Background */
    color: #ffffff !important;
    /* Pure White High-Contrast Text */
    border: 1px solid #334155 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.7), 0 8px 10px -6px rgba(0, 0, 0, 0.7) !important;
    margin: 0 auto !important;
}

/* Title Styling */
.swal2-title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #f8fafc !important;
    /* Crystal White Title */
    margin-bottom: 0.5rem !important;
    line-height: 1.3 !important;
}

/* Body / HTML Content Text */
.swal2-content,
.swal2-html-container {
    font-size: 0.82rem !important;
    color: #f1f5f9 !important;
    /* High-contrast off-white text */
    line-height: 1.4 !important;
    margin: 0.4rem 0 !important;
}

/* SweetAlert Input Fields */
.swal2-input {
    height: 2.4rem !important;
    font-size: 0.88rem !important;
    background-color: #1e293b !important;
    color: #ffffff !important;
    border: 1px solid #475569 !important;
    border-radius: 6px !important;
    margin: 0.6rem auto !important;
    padding: 0 0.6rem !important;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.2) !important;
}

.swal2-input:focus {
    border-color: #f59e0b !important;
    /* 999moneysave Gold Accent */
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3) !important;
}

/* SweetAlert Action Buttons */
.swal2-actions {
    margin-top: 0.8rem !important;
    gap: 0.5rem !important;
}

.swal2-styled.swal2-confirm {
    background-color: #2563eb !important;
    /* 999moneysave Primary Blue */
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 0.45rem 1rem !important;
    font-size: 0.8rem !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.swal2-styled.swal2-confirm:hover {
    background-color: #1d4ed8 !important;
}

.swal2-styled.swal2-cancel {
    background-color: #334155 !important;
    color: #cbd5e1 !important;
    padding: 0.45rem 0.8rem !important;
    font-size: 0.8rem !important;
    border-radius: 6px !important;
}

/* Toast Notifications Positioned at Top Center */
.swal2-toast {
    background-color: #0f172a !important;
    border: 1px solid #f59e0b !important;
    /* Gold Border */
    color: #ffffff !important;
}


.fade-out {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out !important;
}


