/*
 * ----------------------------------------------------------------------
 * GLOBAL STYLESHEET - AGENT PAY SYSTEM
 * ----------------------------------------------------------------------
 * Designed strictly for Mobile-First, Native App aesthetics.
 */

/* =========================================
   1. Reset & Base Styling
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* Remove default tap highlight on touch devices (Android/iOS) */
    -webkit-tap-highlight-color: transparent;
}

body {
    /* Desktop backdrop color */
    background-color: var(--bg-color, #f4f7fb); 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main, #2c3e50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Make links clean */
a {
    text-decoration: none;
    color: inherit;
}

/* =========================================
   2. Cards & Containers
   ========================================= */
.card {
    border-radius: 18px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
    background-color: var(--surface-color, #ffffff);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Add slight click effect to cards meant to be tapped */
a .card:active, 
button .card:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

/* =========================================
   3. Forms & Inputs
   ========================================= */
.form-control, .form-select {
    border-radius: 12px;
    border: 1px solid #e9ecef;
    padding: 0.8rem 1rem;
    font-size: 15px;
    background-color: #f8f9fa;
    color: var(--text-main, #2c3e50);
    transition: all 0.3s ease;
    box-shadow: none !important;
}

/* Input Focus State */
.form-control:focus, .form-select:focus {
    background-color: #ffffff;
    border-color: var(--primary-color, #0d6efd);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15) !important;
    outline: none;
}

/* Floating Label Tweaks */
.form-floating > label {
    color: var(--text-muted, #6c757d);
    padding-left: 1rem;
}
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-color, #0d6efd);
    font-weight: 500;
}

/* =========================================
   4. Buttons
   ========================================= */
.btn {
    border-radius: 12px;
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: var(--primary-color, #0d6efd);
    border-color: var(--primary-color, #0d6efd);
    color: #ffffff;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-color, #0d6efd);
    filter: brightness(0.9);
    border-color: var(--primary-color, #0d6efd);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.btn:active {
    transform: scale(0.96);
}

/* =========================================
   5. Lists & Transactions
   ========================================= */
.list-group-item {
    border: none;
    border-bottom: 1px solid #f1f3f5;
    padding: 1.1rem 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.list-group-item:last-child {
    border-bottom: none;
}

/* Transaction Icon Wrappers */
.trx-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

/* =========================================
   6. Alerts (Flash Messages)
   ========================================= */
.alert {
    border-radius: 12px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    margin-bottom: 20px;
}

/* =========================================
   7. Utilities
   ========================================= */
/* Hide Scrollbar for horizontal scrolling elements */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Smooth fade in animation for page loads */
.fade-in {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Badge Tweaks */
.badge {
    padding: 0.45em 0.8em;
    font-weight: 600;
    border-radius: 8px;
}