/* OutMart Wallet - User Styles */

:root {
    --out-blue: #004aad;
    --out-orange: #ff7b00;
    --bg: #f5f7fb;
    --card: #ffffff;
    --border: #e0e3ec;
    --text: #222;
    --muted: #777;
    --success: #28a745;
    --error: #e63946;
}

body {
    margin: 0;
    font-family: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

.wallet-app {
    max-width: 960px;
    margin: 20px auto 40px;
    padding: 10px;
}

.wallet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #fdfbff, #edf2ff);
    border-radius: 16px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    margin-bottom: 16px;
}

.wallet-brand {
    font-weight: 700;
    font-size: 22px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.wallet-brand .out {
    color: var(--out-blue);
}

.wallet-brand .mart {
    color: var(--out-orange);
}

.wallet-brand .wallet-label {
    font-size: 14px;
    color: var(--muted);
    border-radius: 999px;
    border: 1px solid var(--border);
    padding: 3px 10px;
    background: #fff;
}

.wallet-user {
    font-size: 14px;
    color: var(--muted);
}

.wallet-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.summary-card {
    background: var(--card);
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid var(--border);
}

.summary-card.main {
    border: 2px solid rgba(0,74,173,0.18);
    box-shadow: 0 8px 18px rgba(0,0,0,0.04);
}

.summary-card h3,
.summary-card h4 {
    margin: 0 0 6px;
    font-size: 14px;
    color: var(--muted);
}

.summary-card p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.summary-card.main .amount {
    font-size: 22px;
}

.summary-card.main .amount span {
    font-size: 12px;
    margin-right: 4px;
}

/* Alerts */
.wallet-alert {
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 14px;
}

.wallet-alert.success {
    background: #e3f7ec;
    color: #145c2f;
    border: 1px solid #c1ebd3;
}

.wallet-alert.error {
    background: #fde4e4;
    color: #7e1c1c;
    border: 1px solid #f5b5b5;
}

/* Tabs */
.wallet-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
}

.wallet-tabs .tab-btn {
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    padding: 8px 14px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.wallet-tabs .tab-btn.active {
    background: linear-gradient(135deg, var(--out-blue), var(--out-orange));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

/* Tab panels */
.wallet-tab-content .tab-panel {
    display: none;
    background: var(--card);
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 14px 14px 16px;
}

.wallet-tab-content .tab-panel.active {
    display: block;
}

/* Forms */
.wallet-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-row label {
    font-size: 13px;
    color: var(--muted);
}

.form-row input,
.form-row select,
.form-row textarea {
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 7px 10px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: var(--out-blue);
    box-shadow: 0 0 0 2px rgba(0,74,173,0.1);
}

/* Buttons */
.btn {
    border-radius: 999px;
    padding: 9px 18px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
}

.btn.primary {
    background: linear-gradient(135deg, var(--out-blue), var(--out-orange));
    color: #fff;
}

.btn.secondary {
    background: #fff;
    color: var(--out-blue);
    border: 1px solid rgba(0,74,173,0.3);
}

/* History table */
.history-table {
    overflow-x: auto;
}

.history-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.history-table th,
.history-table td {
    border-bottom: 1px solid var(--border);
    padding: 6px 8px;
    text-align: center;
}

.history-table th {
    background: #f6f7fb;
    color: #555;
}

.status {
    font-weight: 600;
    font-size: 12px;
}

.status-pending {
    color: #d9822b;
}

.status-approved {
    color: var(--success);
}

.status-rejected {
    color: var(--error);
}

.empty {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 600px) {
    .wallet-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}
