/* ===== [1] WALLET BALANCE ===== */
.wallet-balance-container {
    width: 100%;
    max-width: 100%;
    margin: 25px 0;
    margin-bottom: 10px;
    padding: 0 15px;
    box-sizing: border-box;
}

.wallet-balance-inner {
    background: linear-gradient(to bottom right, rgba(38, 100, 146, 0.1), rgba(38, 100, 146, 0.05));
    border: 1px solid rgba(38, 100, 146, 0.15);
    padding: 25px;
    border-radius: 8px;
    margin: 50px 15px;
    box-sizing: border-box;
}

.wallet-balance-heading {
    color: rgba(38, 100, 146, 0.9);
    font-size: 1.5em;
    margin-bottom: 15px;
}

/* ===== [2] WALLET SUMMARY ===== */
.wallet-summary-card {
    width: 100%;
    max-width: 100%;
    background: linear-gradient(to bottom right, rgba(38, 100, 146, 0.1), rgba(38, 100, 146, 0.05));
    border: 1px solid rgba(38, 100, 146, 0.15);
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    box-sizing: border-box;
}

/* ===== [3] WALLET TRANSACTIONS ===== */
.wallet-transactions {
    width: 100%;
    max-width: 100%;
    margin: 25px 0;
    overflow-x: auto;
    box-sizing: border-box;
}

.wallet-transactions table {
    width: 100%;
    border-collapse: collapse;
    background: linear-gradient(to right, rgba(38, 100, 146, 0.05), rgba(38, 100, 146, 0.02));
    min-width: 600px;
}

.wallet-transactions th {
    background: rgba(38, 100, 146, 0.1);
    color: rgba(38, 100, 146, 0.9);
    padding: 12px 15px;
    white-space: nowrap;
}

.wallet-transactions td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(38, 100, 146, 0.1);
}

/* ===== [4] WALLET TOPUP FORM ===== */
.wallet-topup-form {
    width: 100%;
    max-width: 100%;
    background: linear-gradient(to bottom right, rgba(38, 100, 146, 0.05), rgba(38, 100, 146, 0.02));
    border: 1px solid rgba(38, 100, 146, 0.15);
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    box-sizing: border-box;
}

.wallet-topup-form input,
.wallet-topup-form textarea {
    border: 1px solid rgba(38, 100, 146, 0.2);
    background: rgba(255, 255, 255, 0.8);
    box-sizing: border-box;
}

/* ===== [5] WALLET TRANSFER FORM ===== */
.wallet-transfer-form {
    width: 100%;
    max-width: 100%;
    background: linear-gradient(to bottom right, rgba(38, 100, 146, 0.05), rgba(38, 100, 146, 0.02));
    border: 1px solid rgba(38, 100, 146, 0.15);
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    box-sizing: border-box;
}

/* ===== [6] WALLET EXTERNAL TRANSFER ===== */
.wallet-external-form {
    width: 100%;
    max-width: 100%;
    background: linear-gradient(to bottom right, rgba(38, 100, 146, 0.05), rgba(38, 100, 146, 0.02));
    border: 1px solid rgba(38, 100, 146, 0.15);
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    box-sizing: border-box;
}

/* === COMMON STYLES === */
/* Buttons */
.wallet-topup-form input[type="submit"],
.wallet-transfer-form input[type="submit"], 
.wallet-external-form input[type="submit"] {
    background: #00a7b4;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    width: auto;
    min-width: 120px;
}

/* Input Fields */
.wallet-topup-form input,
.wallet-transfer-form input,
.wallet-external-form input,
.wallet-transfer-form select,
.wallet-topup-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(38, 100, 146, 0.2);
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px; /* Prevents zoom on iOS */
}

/* Labels for better mobile experience */
.wallet-topup-form label,
.wallet-transfer-form label,
.wallet-external-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: rgba(38, 100, 146, 0.9);
}

/* ===== SAFE WALLET SHORTCODE UPDATE ===== */
/* 1. Width Fix (No !important) */
.wallet-balance-container,
.wallet-summary-card,
.wallet-transactions {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* 2. Basic Blue Theme (Light Touch) */
.wallet-balance-inner {
    background: rgba(38, 100, 146, 0.05);
    border: 1px solid rgba(38, 100, 146, 0.1);
}

/* 3. Text Colors (Safe) */
.wallet-balance-heading {
    color: #266492; /* Fallback hex */
}

/* 4. Forms (Basic Styling) */
.wallet-topup-form input[type="number"] {
    border: 1px solid rgba(38, 100, 146, 0.2);
    padding: 12px;
}

button, .button, .btn, input[type="submit"] {
    background-color: #00a7b4;
    color: #ffffff;
    padding: 14px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

/* Hover states */
button:hover, .button:hover, .btn:hover, input[type="submit"]:hover {
    background-color: #005177;
    color: #ffffff;
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */
@media (max-width: 1200px) {
    .wallet-balance-inner {
        margin: 40px 10px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .wallet-balance-container {
        margin: 15px 0;
    }
    
    .wallet-balance-inner {
        margin: 30px 5px;
        padding: 20px;
    }
    
    .wallet-balance-heading {
        font-size: 1.3em;
        text-align: center;
    }
    
    .wallet-summary-card,
    .wallet-topup-form,
    .wallet-transfer-form,
    .wallet-external-form {
        padding: 20px;
        margin: 20px 0;
    }
    
    .wallet-transactions {
        margin: 20px 0;
    }
    
    .wallet-transactions th,
    .wallet-transactions td {
        padding: 10px;
        font-size: 14px;
    }
    
    button, .button, .btn, input[type="submit"] {
        padding: 12px 18px;
        font-size: 15px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .wallet-balance-inner {
        margin: 20px 0;
        padding: 15px;
    }
    
    .wallet-balance-heading {
        font-size: 1.2em;
    }
    
    .wallet-summary-card,
    .wallet-topup-form,
    .wallet-transfer-form,
    .wallet-external-form {
        padding: 15px;
        margin: 15px 0;
    }
    
    .wallet-transactions th,
    .wallet-transactions td {
        padding: 8px;
        font-size: 13px;
    }
    
    .wallet-topup-form input,
    .wallet-transfer-form input,
    .wallet-external-form input,
    .wallet-transfer-form select,
    .wallet-topup-form textarea {
        padding: 10px;
        font-size: 14px;
    }
    
    button, .button, .btn, input[type="submit"] {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Mobile-specific adjustments */
@media (max-width: 360px) {
    .wallet-balance-heading {
        font-size: 1.1em;
    }
    
    .wallet-summary-card,
    .wallet-topup-form,
    .wallet-transfer-form,
    .wallet-external-form {
        padding: 12px;
    }
    
    .wallet-transactions th,
    .wallet-transactions td {
        padding: 6px;
        font-size: 12px;
    }
}

/* Print styles */
@media print {
    .wallet-balance-inner,
    .wallet-summary-card,
    .wallet-topup-form,
    .wallet-transfer-form,
    .wallet-external-form {
        border: 1px solid #000;
        background: #fff !important;
    }
    
    button, .button, .btn, input[type="submit"] {
        background: #fff !important;
        color: #000 !important;
        border: 1px solid #000;
    }
}