body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #020617;
    color: #e5e7eb;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

header {
    text-align: center;
    margin-bottom: 1.5rem;
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
}

header p {
    margin-top: 0.3rem;
    color: #9ca3af;
}

.card {
    background: #020617;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    border: 1px solid #1f2937;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.kpi h3 {
    margin: 0;
    font-size: 0.9rem;
    color: #9ca3af;
}

.kpi p {
    margin: 0.3rem 0 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.tabs {
    display: flex;
    gap: 0.5rem;
}

.tab-button {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #374151;
    background: #020617;
    color: #e5e7eb;
    cursor: pointer;
    font-weight: 500;
}

.tab-button.active {
    background: #2563eb;
    border-color: #2563eb;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

form .form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.7rem;
}

form label {
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
    color: #9ca3af;
}

input, select, textarea, button {
    font-family: inherit;
    font-size: 0.95rem;
}

input, select, textarea {
    padding: 0.4rem 0.5rem;
    border-radius: 0.4rem;
    border: 1px solid #374151;
    background: #020617;
    color: #e5e7eb;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #60a5fa;
}

button {
    margin-top: 0.3rem;
    padding: 0.5rem 0.9rem;
    border-radius: 0.5rem;
    border: none;
    background: #2563eb;
    color: white;
    cursor: pointer;
    font-weight: 500;
}

button:hover {
    background: #1d4ed8;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th, td {
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid #1f2937;
}

th {
    text-align: left;
    color: #9ca3af;
    font-weight: 500;
}

tr:nth-child(even) td {
    background: #030712;
}

.form-message {
    margin-top: 0.4rem;
    font-size: 0.85rem;
}

.form-message.error {
    color: #f87171;
}

.form-message.success {
    color: #4ade80;
}

.hint {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #9ca3af;
}

.projection-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.projection-controls label {
    font-size: 0.85rem;
    color: #9ca3af;
}
