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

body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #f5f6fa; color: #333; }

/* LOGIN */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: #1a1a2e; }
.login-box { background: white; padding: 48px; border-radius: 12px; width: 380px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.login-logo { font-size: 32px; font-weight: 700; color: #e63946; margin-bottom: 8px; }
.login-sub { color: #888; margin-bottom: 32px; font-size: 14px; }
.login-box input { width: 100%; padding: 12px 16px; margin-bottom: 16px; border: 1px solid #ddd; border-radius: 8px; font-size: 15px; outline: none; }
.login-box input:focus { border-color: #e63946; }
.login-box button { width: 100%; padding: 12px; background: #e63946; color: white; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; }
.login-box button:hover { background: #c1121f; }
.error-msg { background: #fee; color: #c1121f; padding: 10px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }

/* HEADER */
header { background: white; padding: 0 24px; height: 60px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #eee; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.header-left { display: flex; align-items: center; gap: 16px; }
.logo { font-size: 20px; font-weight: 700; color: #e63946; }
.header-left select { padding: 6px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; outline: none; cursor: pointer; }
.header-center { display: flex; align-items: center; gap: 8px; }
.header-center input[type="date"] { padding: 6px 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; outline: none; }
.header-center button { padding: 6px 16px; background: #e63946; color: white; border: none; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; }
.header-center button:hover { background: #c1121f; }
.header-right { display: flex; align-items: center; gap: 16px; font-size: 14px; color: #888; }
.header-right a { color: #e63946; text-decoration: none; font-weight: 500; }

/* MAIN */
main { padding: 24px; max-width: 1400px; margin: 0 auto; }

/* STATS */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: white; padding: 24px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.stat-label { font-size: 13px; color: #888; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 28px; font-weight: 700; color: #1a1a2e; }

/* CHARTS */
.charts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { background: white; padding: 24px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.card.wide { grid-column: span 2; }
.card h3 { font-size: 15px; font-weight: 600; color: #1a1a2e; margin-bottom: 16px; }

/* TABLES */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 8px 12px; background: #f5f6fa; color: #888; font-weight: 600; font-size: 12px; text-transform: uppercase; }
td { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fafafa; }

.login-hint { color: #666; font-size: 14px; margin-bottom: 16px; }
.btn-secondary { width: 100%; padding: 10px; background: white; color: #e63946; border: 1px solid #e63946; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-secondary:hover { background: #fff5f5; }
