/* ===== BASIC RESET ===== */
body, html {
    margin: 0;
    padding: 0;
    background: #f6f6f6;
    font-family: Arial, sans-serif;
}

.app-container {
    padding-bottom: 70px; /* space for bottom nav */
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: #fff;
    border-top: 1px solid #dcdcdc;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
}

.bottom-nav a {
    text-decoration: none;
    color: #0d2c54;
    font-size: 11px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 3px;
    opacity: 0.85;
}

.bottom-nav a.active {
    font-weight: 600;
    opacity: 1 !important;
}

.bottom-nav img {
    width: 24px;
    height: 24px;
    opacity: 0.85;
}

.bottom-nav a.active img {
    opacity: 1;
}


/* ===== GENERIC CONTAINERS ===== */
.page-section {
    padding: 20px;
}

.card {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}


/* ===================================================== */
/* ========== FIX ONLY FOR POINTS HISTORY PAGE ========= */
/* ===================================================== */

.points-history {
    padding: 15px;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: #f6f6f6;
    min-height: calc(100vh - 90px);  /* Ensure bottom nav visible */
    overflow-x: hidden;               /* Fix hidden icon issue */
}

.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filters a {
    padding: 6px 12px;
    border-radius: 8px;
    background: #e6e6e6;
    text-decoration: none;
    color: #333;
}

.filters a.active {
    background: #0d6efd;
    color: #fff;
}

.transaction-list {
    margin: 0;
    padding: 0 0 25px 0; /* Prevent overlap with bottom nav */
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.transaction-item .left .type {
    font-weight: bold;
}

.transaction-item .left .desc {
    font-size: 13px;
    color: #666;
}

.transaction-item .right {
    font-size: 18px;
    font-weight: bold;
    align-self: center;
}

.transaction-item .right.green {
    color: #2a9d45;
}

.transaction-item .right.red {
    color: #d62828;
}

.no-data {
    text-align: center;
    color: #888;
    padding: 30px 0 0;
    font-size: 14px;
    margin: 0;
}
.coupons-page {
    padding: 15px;
}

.coupon-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.coupon-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 10px;
}

.coupon-card h3 {
    margin: 5px 0;
}

.coupon-card .desc {
    font-size: 13px;
    color: #666;
}

.coupon-card .cost {
    margin-top: 10px;
    font-size: 15px;
}

.staff-msg {
    font-size: 12px;
    color: #d62828;
    margin-top: 5px;
}

.redeem-btn {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #0d6efd;
    color: #fff;
    font-size: 16px;
}

.redeem-btn.disabled {
    background: #b4b4b4;
    color: #666;
}
.actions-page {
    padding: 15px;
}

.action-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.action-card h3 {
    margin: 0 0 5px;
}

.action-card p {
    font-size: 14px;
    color: #666;
    margin: 0 0 10px;
}

.action-btn {
    width: 100%;
    padding: 12px;
    background: #0d6efd;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    margin-top: 8px;
}

.action-btn.disabled {
    background: #b3b3b3;
    color: #666;
}

.referral-box {
    padding: 10px;
    background: #e6e6e6;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    letter-spacing: 1px;
}

.promo-form input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
}
