* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f3f4f6; min-height: 100vh; }
.container { max-width: 1200px; margin: 0 auto; padding: 1rem; }
h1 { font-size: 1.5rem; color: #1f2937; margin-bottom: 1rem; }
h2 { font-size: 1.15rem; color: #374151; margin-bottom: 0.75rem; }
h3 { font-size: 1rem; color: #4b5563; margin-bottom: 0.5rem; }

/* Login */
.login-container { max-width: 400px; margin: 4rem auto; padding: 2rem; background: white; border-radius: 1rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.login-container h1 { text-align: center; }
.field-group { margin-bottom: 1rem; }
.field-group label { display: block; font-size: 0.875rem; color: #374151; margin-bottom: 0.25rem; font-weight: 600; }
.field-group input { width: 100%; padding: 0.75rem; border: 1px solid #d1d5db; border-radius: 0.5rem; font-size: 1rem; outline: none; }
.field-group input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.hint { font-size: 0.8rem; color: #6b7280; margin-top: 0.25rem; }
.btn { display: inline-block; padding: 0.75rem 1.5rem; border: none; border-radius: 0.5rem; font-size: 1rem; cursor: pointer; width: 100%; text-align: center; }
.btn-primary { background: #3b82f6; color: white; }
.btn-primary:hover { background: #2563eb; }
.btn-success { background: #10b981; color: white; }
.btn-success:hover { background: #059669; }
.btn-outline { background: white; color: #374151; border: 1px solid #d1d5db; }
.btn-outline:hover { background: #f9fafb; }

.card { background: white; border-radius: 0.75rem; padding: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 1rem; }

/* Filter bar */
.filter-bar { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.filter-bar select, .filter-bar input { padding: 0.5rem; border: 1px solid #d1d5db; border-radius: 0.5rem; font-size: 0.9rem; outline: none; }
.filter-bar select:focus, .filter-bar input:focus { border-color: #3b82f6; }
.filter-bar .btn { width: auto; padding: 0.5rem 1rem; }

/* Charts */
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 768px) { .chart-grid { grid-template-columns: 1fr; } }
.chart-box { background: white; border-radius: 0.75rem; padding: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.chart-box canvas { max-height: 300px; }

/* Summary cards */
.summary-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 768px) { .summary-cards { grid-template-columns: 1fr; } }
.summary-card { background: white; border-radius: 0.75rem; padding: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); text-align: center; }
.summary-card .number { font-size: 2rem; font-weight: 700; color: #1f2937; }
.summary-card .label { font-size: 0.875rem; color: #6b7280; margin-top: 0.25rem; }

.screen { display: none; }
.screen.active { display: block; }

.error-text { color: #ef4444; font-size: 0.875rem; margin-top: 0.5rem; display: none; }
.error-text.show { display: block; }

.notification { position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); background: #1f2937; color: white; padding: 0.75rem 1.5rem; border-radius: 0.5rem; font-size: 0.9rem; z-index: 200; display: none; }
.notification.show { display: block; }
.notification.error { background: #ef4444; }
