/* style.css - Dark theme for earning site */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #1a1a1a;
}

.header h1 {
    color: #4CAF50;
    font-size: 28px;
}

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

.btn-logout {
    background: #f44336;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-logout:hover {
    background: #d32f2f;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    text-align: center;
}

.stat-box h3 {
    color: #888;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.stat-box p {
    font-size: 24px;
    font-weight: 600;
    color: #4CAF50;
}

.balance {
    color: #FFD700 !important;
    font-size: 32px !important;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
}

.alert.error {
    background: #4a1a1a;
    border: 1px solid #f44336;
    color: #ff8a80;
}

.alert.success {
    background: #1a4a1a;
    border: 1px solid #4CAF50;
    color: #90ee90;
}

.alert.success h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #4CAF50;
    font-size: 22px;
}

.alert.success p {
    margin: 10px 0;
    font-size: 16px;
    color: #90ee90;
}

.alert.info {
    background: #1a2a4a;
    border: 1px solid #2196F3;
    color: #90caf9;
}

/* Sections */
.section {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #2a2a2a;
}

.section h2 {
    margin-bottom: 20px;
    color: #4CAF50;
    font-size: 22px;
}

/* Links Grid */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.link-card {
    background: #0f0f0f;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    transition: transform 0.2s, border-color 0.2s;
}

.link-card:hover {
    transform: translateY(-2px);
    border-color: #4CAF50;
}

.link-card h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #e0e0e0;
}

/* Buttons */
button, .btn-view, .btn-claim, .btn-withdraw, .btn-small {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.3s, transform 0.1s;
    width: 100%;
}

button:hover, .btn-view:hover, .btn-claim:hover, .btn-withdraw:hover {
    background: #45a049;
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

.btn-small {
    padding: 6px 12px;
    font-size: 13px;
    width: auto;
    display: inline-block;
}

.btn-claim {
    width: 100%;
    max-width: 300px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin: 20px auto 0;
    display: block;
    transition: all 0.3s ease;
}

.btn-claim:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.btn-claim:active {
    transform: translateY(0);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: #0f0f0f;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 15px;
}

input:focus, select:focus {
    outline: none;
    border-color: #4CAF50;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #888;
    font-size: 14px;
    font-weight: 500;
}

/* Auth Container */
.auth-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.auth-box {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
}

.auth-box h2 {
    margin-bottom: 25px;
    color: #4CAF50;
}

/* CAPTCHA - Dashboard Claim Form */
.captcha-claim-form {
    margin-top: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

/* CAPTCHA Box */
.captcha-box {
    margin: 20px 0;
    padding: 20px;
    background: #0f0f0f;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    text-align: center;
}

.captcha-box p {
    margin-bottom: 15px;
    color: #888;
    font-size: 14px;
}

.captcha-images {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.captcha-images img {
    width: 80px;
    height: 40px;
    border: 2px solid #2a2a2a;
    border-radius: 6px;
    background: #1a1a1a;
    transition: all 0.3s ease;
}

.captcha-images img:hover {
    border-color: #4CAF50;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.captcha-selects {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.captcha-selects select {
    width: 80px;
    padding: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: 2px solid #2a2a2a;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.captcha-selects select:hover {
    border-color: #4CAF50;
    background: rgba(0, 0, 0, 0.6);
}

.captcha-selects select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.captcha-selects select option {
    background: #2a2a2a;
    color: white;
}

.captcha-math {
    margin: 20px 0;
    text-align: center;
}

.captcha-math label {
    font-size: 20px;
    color: #e0e0e0;
    margin-bottom: 15px;
}

.captcha-math input {
    max-width: 150px;
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

/* Claim Box */
.claim-box {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 12px;
    border: 2px solid #4CAF50;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.claim-box p {
    margin-bottom: 15px;
    font-size: 16px;
}

/* Withdrawal Box */
.withdraw-box {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    max-width: 600px;
    margin: 0 auto 30px;
}

.withdraw-box h2 {
    margin-bottom: 25px;
    color: #4CAF50;
}

/* Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #2a2a2a;
}

.data-table th {
    background: #0f0f0f;
    color: #888;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
}

.data-table td {
    color: #e0e0e0;
}

.status-pending {
    color: #FFA500;
}

.status-completed {
    color: #4CAF50;
}

.status-rejected {
    color: #f44336;
}

/* Links */
a {
    color: #4CAF50;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .captcha-images img {
        width: 70px;
        height: 35px;
    }
    
    .captcha-selects select {
        width: 70px;
        font-size: 16px;
    }
    
    .btn-claim {
        font-size: 16px;
        padding: 12px 20px;
    }
    
    .claim-box,
    .withdraw-box {
        padding: 25px;
    }
    
    .captcha-claim-form {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 20px;
    }
    
    .balance {
        font-size: 24px !important;
    }
    
    .captcha-images {
        gap: 10px;
    }
    
    .captcha-images img {
        width: 60px;
        height: 30px;
    }
    
    .captcha-selects {
        gap: 10px;
    }
    
    .captcha-selects select {
        width: 60px;
        font-size: 16px;
        padding: 8px;
    }
    
    .alert.success h3 {
        font-size: 18px;
    }
    
    .btn-claim {
        font-size: 15px;
        padding: 10px 18px;
    }
}