/* style.css (USER-SIDE - FINAL & COMPLETE) */

/* =================================== */
/* ==== UNIVERSAL & GLOBAL STYLES ==== */
/* =================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f0f4f1;
    transition: background-color 0.3s, color 0.3s;
}

.hidden {
    display: none !important;
}

/* =================================== */
/* ==== LOGIN & SIGNUP PAGE STYLES ==== */
/* =================================== */

.auth-body {
    background: linear-gradient(to bottom, #1a2a20, #5c8d64);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #fff;
    flex-direction: column;
}

.auth-body .container {
    width: 90%;
    max-width: 380px;
    padding: 20px;
    text-align: center;
}

.auth-body .logo-wrapper {
    margin-bottom: 30px;
    text-align: center;
}

.auth-body .logo-wrapper img {
    width: 120px;
    height: auto;
    border-radius: 50%;
    border: 3px solid #b0eab4;
    background-color: #ffffff;
    padding: 5px;
}

.auth-body .input-group {
    position: relative;
    margin-bottom: 35px;
}

.auth-body .input-group i {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
}

.auth-body .input-group input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding: 10px 0 10px 35px;
    font-size: 18px;
    color: #fff;
    outline: none;
}

.auth-body .input-group input:focus {
    border-bottom-color: #fff;
}

.auth-body .input-group input::placeholder {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.auth-body .btn-login {
    width: 60%;
    height: 50px;
    background: #fff;
    color: #333;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.auth-body .forgot-password-link {
    margin-top: 20px;
    font-size: 14px;
}

.auth-body .forgot-password-link a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.auth-body .switch-form-link {
    margin-top: 25px;
    font-size: 16px;
}

.auth-body .switch-form-link a {
    color: #fff;
    font-weight: 500;
    text-decoration: none;
}

/* =================================== */
/* ==== DASHBOARD PAGE STYLES ==== */
/* =================================== */

.dashboard-body.green-theme {
    background-color: #f0f4f1;
    color: #333;
    padding-bottom: 80px;
}

.dashboard-header {
    background-color: #1a2a20;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.dashboard-header h1 {
    font-size: 20px;
    font-weight: 600;
    text-transform: capitalize;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-btn, .logout-btn {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
}

.dashboard-main {
    padding: 20px 15px;
}

.actions-grid { display: flex; gap: 15px; margin-bottom: 20px; }
.action-buttons { display: flex; flex-direction: column; gap: 15px; flex: 1; }
.action-btn { padding: 15px; border-radius: 12px; color: white; text-align: center; text-decoration: none; font-weight: 500; }
.action-btn i { font-size: 24px; display: block; margin-bottom: 8px; }
.deposit-btn { background-color: #007bff; }
.withdrawal-btn { background-color: #dc3545; }

.bp-card { background-color: #ffffff; border-radius: 12px; padding: 15px; flex: 1.5; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.bp-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.bp-logo { width: 35px; height: 35px; background-color: #d3f8d6; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; color: #5c8d64; }
.copy-icon { color: #5c8d64; font-size: 18px; }
.bp-card p { font-size: 12px; color: #555; line-height: 1.6; }

.support-btn { width: 100%; padding: 15px; border-radius: 12px; border: none; color: white; font-size: 16px; font-weight: 600; cursor: pointer; margin-bottom: 10px; text-align: center; text-decoration: none; display: block; }
.whatsapp-support { background-color: #5c8d64; }
.notification-bar { background-color: #5c8d64; color: white; padding: 10px; border-radius: 8px; font-size: 12px; text-align: center; margin-bottom: 25px; }

.footer-nav { position: fixed; bottom: 10px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 400px; background-color: #ffffff; border-radius: 20px; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); display: flex; justify-content: space-around; padding: 10px 0; }
.nav-item { text-decoration: none; color: #888; text-align: center; font-size: 12px; }
.nav-item i { font-size: 22px; display: block; margin-bottom: 4px; }
.nav-item.active { color: #5c8d64; }

.placeholder-glow { background: #e0e0e0; color: transparent; border-radius: 4px; animation: placeholder-glow 1.5s ease-in-out infinite; }
@keyframes placeholder-glow { 50% { opacity: 0.6; } }

/* ========================================= */
/* ==== DEPOSIT & WITHDRAWAL PAGE STYLES ==== */
/* ========================================= */
.deposit-body-v2 { background-color: #5c8d64; }
.content-container { padding: 20px 15px; }
.card-v2 { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 20px; color: #333; transition: background-color 0.3s; }
.back-card { display: flex; align-items: center; font-size: 20px; font-weight: 600; cursor: pointer; background-color: transparent; color: #fff; padding: 10px 0; }
.back-card i { margin-right: 15px; }
.main-card h2, .instructions-card h2, .card-v2 h2 { color: #5c8d64; font-size: 18px; font-weight: 600; margin-bottom: 15px; }
.account-selector { border: 1px solid #ddd; border-radius: 8px; padding: 15px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background-color: #f9f9f9; transition: background-color 0.3s, border-color 0.3s; }
.account-list { list-style: none; padding: 0; border: 1px solid #ddd; border-radius: 8px; margin-top: 5px; display: none; }
.account-item { padding: 15px; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; cursor: pointer; }
.account-item:last-child { border-bottom: none; }
.account-item:hover { background-color: #f0f4f1; }
.account-item i { font-size: 22px; color: #5c8d64; margin-right: 15px; width: 25px; }
.account-details p { font-weight: 500; color: #333; margin: 0; }
.account-details span { font-size: 14px; color: #666; }
.instructions-card ul { list-style: none; padding-left: 5px; }
.instructions-card li { margin-bottom: 10px; color: #555; font-size: 14px; }
.input-field-v2 { width: 100%; padding: 15px; font-size: 16px; border: 1px solid #ccc; border-radius: 8px; margin-bottom: 20px; box-sizing: border-box; background-color: #fff; color: #333; }
.btn-action-v2 { width: 100%; padding: 15px; font-size: 18px; font-weight: 600; border: none; border-radius: 8px; cursor: pointer; background-color: #ccc; color: #fff; }
.btn-action-v2:not(:disabled) { background-color: #2b2b2b; }

/* ========================================= */
/* ==== TEAM PAGE STYLES ==== */
/* ========================================= */
.team-container { padding: 20px 15px; }
.referral-box h2, .team-members-box h2 { color: #5c8d64; font-size: 18px; font-weight: 600; margin-bottom: 15px; }
.referral-input-group { display: flex; margin-bottom: 10px; }
.referral-input-group input { flex-grow: 1; border: 1px solid #ddd; border-radius: 8px 0 0 8px; padding: 10px; font-size: 14px; background: #f0f4f1; color: #555; outline: none; }
.copy-btn { border: none; background: #5c8d64; color: white; padding: 0 15px; border-radius: 0 8px 8px 0; cursor: pointer; }
.referral-info { font-size: 12px; color: #888; }
.tabs { display: flex; border-bottom: 1px solid #eee; margin-bottom: 15px; }
.tab-btn { flex: 1; padding: 12px; background: none; border: none; font-size: 16px; font-weight: 500; color: #888; cursor: pointer; border-bottom: 3px solid transparent; }
.tab-btn.active { color: #5c8d64; border-bottom-color: #5c8d64; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.member-list { list-style: none; padding: 0; }
.member-item { display: flex; align-items: center; padding: 12px 5px; border-bottom: 1px solid #f0f0f1; }
.member-item i { font-size: 20px; color: #5c8d64; margin-right: 15px; }
.empty-list-msg { text-align: center; color: #888; padding: 20px; }

/* ========================================= */
/* ==== PAGE LOADER STYLES ==== */
/* ========================================= */
.loader-wrapper { display: flex; justify-content: center; align-items: center; height: 100vh; width: 100%; position: fixed; top: 0; left: 0; background-color: #f0f4f1; z-index: 9999; }
.loader { border: 5px solid #f3f3f3; border-top: 5px solid #5c8d64; border-radius: 50%; width: 50px; height: 50px; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ========================================= */
/* ==== SCROLLING NOTIFICATION BAR ==== */
/* ========================================= */
.scrolling-notification-bar { background: linear-gradient(90deg, #2c3e50, #4a6fa5); padding: 10px 0; overflow: hidden; white-space: nowrap; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); }
.notification-content { display: flex; width: fit-content; animation: scroll-left 200s linear infinite; }
.notification-track { display: flex; white-space: nowrap; }
.notification-item { display: inline-block; color: #ffffff; margin: 0 25px; font-size: 14px; }
.notification-item strong { color: #2ecc71; font-weight: 600; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ======================================================== */
/* ==== RECENT TRANSACTIONS (ATTRACTIVE DESIGN) ==== */
/* ======================================================== */
.transactions h2 { font-size: 20px; color: #333; margin-bottom: 15px; font-weight: 600; text-align: left; }
.transaction-list { list-style: none; padding: 0; margin: 0; }
.transaction-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 10px; background-color: #fff; border-radius: 8px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.transaction-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.transaction-details-group { display: flex; align-items: center; gap: 15px; }
.transaction-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; flex-shrink: 0; }
.transaction-icon.deposit { background-color: #2ecc71; }
.transaction-icon.withdrawal { background-color: #e74c3c; }
.transaction-info { display: flex; flex-direction: column; }
.transaction-type { font-weight: 600; font-size: 16px; color: #333; text-transform: capitalize; }
.transaction-date { font-size: 12px; color: #888; }
.transaction-value { text-align: right; }
.transaction-amount { font-weight: 700; font-size: 16px; display: block; }
.transaction-amount.deposit { color: #27ae60; }
.transaction-amount.withdrawal { color: #c0392b; }
.transaction-status { font-size: 12px; font-weight: 500; padding: 3px 8px; border-radius: 10px; color: #fff; text-transform: capitalize; }
.status-approved { background-color: #2ecc71; }
.status-pending { background-color: #f39c12; }
.status-rejected { background-color: #e74c3c; }

/* ========================================= */
/* ==== DARK MODE STYLES ==== */
/* ========================================= */
body.dark-mode { background-color: #121212; color: #e0e0e0; }
body.dark-mode .dashboard-body.green-theme { background-color: #121212; }
body.dark-mode .dashboard-main { background-color: #1e1e1e; }
body.dark-mode .deposit-body-v2 { background-color: #1a2a20; }
body.dark-mode .card-v2, body.dark-mode .bp-card, body.dark-mode .footer-nav { background-color: #2b2b2b; color: #e0e0e0; }
body.dark-mode .transactions h2 { color: #e0e0e0; }
body.dark-mode .account-selector { background-color: #333; border-color: #555; }
body.dark-mode #selected-account-text, body.dark-mode .no-transactions p { color: #bbb; }
body.dark-mode .input-field-v2 { background-color: #333; border-color: #555; color: #e0e0e0; }
body.dark-mode .btn-action-v2:not(:disabled) { background-color: #5c8d64; }
body.dark-mode .main-card h2, body.dark-mode .card-v2 h2 { color: #7fbf85; }
body.dark-mode .back-card { color: #e0e0e0; }
body.dark-mode .nav-item { color: #888; }
body.dark-mode .nav-item.active { color: #7fbf85; }
body.dark-mode .bp-card p { color: #bbb; }
body.dark-mode .loader-wrapper { background-color: #121212; }
body.dark-mode .loader { border-top-color: #7fbf85; }
body.dark-mode .transaction-item { background-color: #2b2b2b; }
body.dark-mode .transaction-type { color: #e0e0e0; }
body.dark-mode .transaction-date { color: #888; }