:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent-color: #d4af37; /* Gold */
    --accent-hover: #b59226;
    --error-color: #ff4d4d;
    --success-color: #00b894;
    --font-family: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

/* Login Card */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.auth-card {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.auth-header h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--accent-color);
}

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

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px;
    background-color: #2c2c2c;
    border: 1px solid #333;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background-color: var(--accent-color);
    color: #121212;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.qr-section {
    margin-top: 30px;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.qr-section p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 10px;
}

/* Dashboard Layout */
.dashboard-container {
    padding: 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--accent-color);
    margin-top: 10px;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #333;
}

th {
    color: var(--text-secondary);
    font-weight: 500;
}

.badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.badge-earn { background-color: rgba(0, 184, 148, 0.2); color: #00b894; }
.badge-redeem { background-color: rgba(255, 77, 77, 0.2); color: #ff4d4d; }

/* Responsive */
@media (max-width: 768px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }
}
