* { box-sizing: border-box; margin: 0; padding: 0; }
:root { --primary-color: #4CAF50; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f5; padding: 20px; }
.container { max-width: 500px; margin: 0 auto; background: white; padding: 30px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.admin-container { max-width: 1000px; }
h1 { text-align: center; margin-bottom: 20px; color: #333; }
form { display: flex; flex-direction: column; gap: 15px; }
input, textarea { padding: 12px; border: 2px solid #ddd; border-radius: 8px; font-size: 16px; width: 100%; }
textarea { min-height: 150px; font-family: monospace; }
button, .btn-secondary, .btn-success, .btn-small, .btn-danger { padding: 12px; background: var(--primary-color); color: white; border: none; border-radius: 8px; font-size: 16px; cursor: pointer; margin: 5px; }
button:hover { opacity: 0.9; }
.btn-secondary { background: #f44336; }
.btn-success { background: #2196F3; }
.btn-danger { background: #ff5722; }
.btn-small { padding: 6px 12px; font-size: 14px; }
.card { background: linear-gradient(135deg, var(--primary-color), #45a049); color: white; padding: 30px; border-radius: 12px; text-align: center; }
.card-header h2 { margin-bottom: 20px; }
.points { font-size: 24px; margin: 20px 0; }
.reward, .stats { font-size: 16px; opacity: 0.9; margin: 10px 0; }
.qr-section { margin-top: 30px; background: white; padding: 20px; border-radius: 8px; color: #333; }
.card-actions { display: flex; gap: 10px; justify-content: center; margin-top: 15px; flex-wrap: wrap; }
.staff-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding: 15px; background: #f9f9f9; border-radius: 8px; flex-wrap: wrap; gap: 10px; }
.scanner-section, .manual-section { margin: 30px 0; text-align: center; }
.result { text-align: center; padding: 10px; border-radius: 8px; margin-top: 20px; font-weight: bold; }
.result.success { background: #d4edda; color: #155724; }
.result.error { background: #f8d7da; color: #721c24; }
.tabs { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.tab { flex: 1; padding: 12px; background: #e0e0e0; border: none; border-radius: 8px; cursor: pointer; font-size: 14px; }
.tab.active { background: var(--primary-color); color: white; }
.tab-content { background: #f9f9f9; padding: 20px; border-radius: 8px; }
.search-bar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.search-bar input { flex: 1; min-width: 200px; }
table { width: 100%; border-collapse: collapse; margin-top: 20px; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #ddd; }
th { background: #f1f1f1; font-weight: 600; }
tr:hover { background: #f9f9f9; }
code { background: #f1f1f1; padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.customer-list { max-height: 500px; overflow-y: auto; }
.rewards-section { margin-top: 25px; text-align: left; }
.rewards-section h3 { margin-bottom: 15px; font-size: 18px; }
.rewards-list { display: flex; flex-direction: column; gap: 15px; }
.reward-item { background: rgba(255,255,255,0.15); padding: 15px; border-radius: 8px; border: 2px solid transparent; }
.reward-item.available { background: #fff; color: #333; border-color: #4CAF50; }
.reward-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.reward-desc { font-size: 14px; opacity: 0.9; margin-bottom: 10px; }
.reward-progress { background: rgba(0,0,0,0.2); height: 8px; border-radius: 4px; overflow: hidden; margin-bottom: 10px; }
.progress-bar { background: #4CAF50; height: 100%; transition: width 0.3s; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: white; padding: 20px; border-radius: 12px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.stat-card h3 { font-size: 14px; color: #666; margin-bottom: 10px; }
.stat-value { font-size: 32px; font-weight: bold; color: var(--primary-color); }
.charts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.chart-container { background: white; padding: 20px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.chart-container h3 { margin-bottom: 15px; font-size: 16px; }
@media (max-width: 600px) { .container { padding: 20px; } .staff-info { flex-direction: column; } table { font-size: 14px; } }
