/* General Styles */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
    --primary-color: #008000; /* Main Green Color */
    --secondary-color: #4CAF50;
    --light-gray: #f4f4f4;
    --dark-text: #333;
    --light-text: #666;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f9fc;
    color: var(--dark-text);
}

.container {
    padding: 0 15px;
}

/* Auth Pages (Login & Signup) */
.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

.auth-card h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.auth-card p {
    color: var(--light-text);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: var(--light-gray);
    box-sizing: border-box; /* Important for padding */
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px;
    width: 100%;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #006400;
}

.auth-switch {
    margin-top: 20px;
    font-size: 16px;
}

.auth-switch a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}

/* Home Page */
.header {
    background-color: var(--primary-color);
    padding: 20px 15px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    color: white;
}

.user-profile {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f0f0f0;
    margin-right: 10px;
    /* Add user image here */
}

.user-info h3 {
    margin: 0;
    font-size: 18px;
}

.btn-balance {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid white;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.banner {
    width: 100%;
    margin-top: 20px;
    border-radius: 10px;
}

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

.main-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.grid-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.menu-item {
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: var(--dark-text);
}

.menu-item img {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

.menu-item p {
    margin: 0;
    font-weight: 500;
}

.footer-credit {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 15px;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 14px;
}

/* Admin Notice Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.popup-card {
    background-color: white;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.popup-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.popup-header h3 {
    margin: 0;
    font-size: 18px;
}

.popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
}

.popup-body {
    padding: 20px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-text);
}

/* ========== Task Page Styles ========== */

.task-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    position: relative;
    text-align: center;
}

.task-header .back-btn {
    position: absolute;
    left: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.task-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    width: 100%;
}

.task-container {
    padding: 20px;
    text-align: center;
}

.task-counter-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.task-counter-card img {
    width: 30px;
    margin-right: 10px;
}

/* Captcha Task Styles */
.captcha-box {
    background-color: #FF5722; /* Orange color */
    color: white;
    font-size: 36px;
    font-weight: 700;
    padding: 20px;
    border-radius: 10px;
    letter-spacing: 5px;
    margin-bottom: 20px;
}

.task-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: var(--light-gray);
    box-sizing: border-box;
    font-size: 18px;
    text-align: center;
    margin-bottom: 20px;
}

.btn-submit {
    background-color: #E91E63; /* Pink color */
    color: white;
    border: none;
    padding: 15px;
    width: 100%;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #C2185B;
}

/* Ad Notice */
.ad-notice {
    background-color: #f0f0f0;
    border: 1px dashed #ccc;
    padding: 15px;
    border-radius: 8px;
    margin-top: 25px;
    font-size: 14px;
    color: #555;
}


/* ========== Redeem Modal (Popup) Styles ========== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none; /* JS দিয়ে খোলা হবে */
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    color: #aaa;
}

.modal-body {
    padding: 20px;
}

.modal-body .form-group {
    margin-bottom: 15px;
}

.modal-body .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}
/* ইনপুট ফিল্ডের জন্য আগের auth-container এর স্টাইল ব্যবহার করা হবে */
.modal-body .form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: var(--light-gray);
    box-sizing: border-box;
    font-size: 16px;
}

/* ========== Payment History Page ========== */
.history-container {
    padding: 20px 15px;
}

.history-card {
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.history-card-left h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: var(--dark-text);
}
.history-card-left p {
    margin: 0;
    font-size: 14px;
    color: var(--light-text);
}
.history-card-left small {
    font-size: 12px;
    color: #999;
}
.history-card-right {
    text-align: right;
}
.history-card-right h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}
/* স্ট্যাটাস ব্যাজগুলো আমরা আগেই তৈরি করেছি */
.history-card-right .status-badge {
    font-size: 11px;
}

/* ========== How To Work Page ========== */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
    background-color: #000;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.btn-youtube {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #FF0000; /* YouTube Red */
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    font-size: 16px;
}

/* ========== Play Spin Page Styles ========== */
.spin-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.spin-wheel-box {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
}

/* স্পিনারের পয়েন্টার (তীর) */
.spin-pointer {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 30px solid #FF5722; /* Orange Pointer */
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.3));
}

/* স্পিন হুইল */
.spin-wheel {
    width: 100%;
    height: 100%;
    background-image: url('assets/images/spin-wheel.png'); /* আমরা একটি হুইলের ছবি ব্যবহার করবো */
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transition: transform 4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* জাভাস্ক্রিপ্ট দিয়ে এই ক্লাসটি যোগ করা হবে */
.spin-wheel.spinning {
    /* 10 full spins + random amount */
    transform: rotate(calc(3600deg + var(--spin-angle, 0deg)));
}

.btn-spin {
    background-color: #E91E63; /* Pink color */
    color: white;
    border: none;
    padding: 15px 40px;
    margin-top: 30px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-spin:active {
    transform: scale(0.95);
}
.btn-spin:disabled {
    background-color: #999;
    cursor: not-allowed;
}