:root {
    --color-primary: #00a99d;
    --color-secondary: #4e342e;
    --color-accent: #8dc63f;
    --color-bg: #f3f4f6;
    --color-text: #333333;
    --color-danger: #ef4444;
    --color-warning: #f59e0b;
    --color-success: #10b981;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    margin: 0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    align-items: flex-start; /* Better for scrolling */
}

.container {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 450px;
    text-align: center;
    margin: 0 auto;
}

.logo {
    max-width: 200px;
    margin-bottom: 20px;
    height: auto;
}

h1, h2, h3 {
    color: var(--color-secondary);
    font-weight: 700;
}

h1 { margin-top: 0; margin-bottom: 25px; font-size: 1.8em; }
h2 { margin-top: 0; margin-bottom: 20px; font-size: 1.5em; }
h3 { margin-top: 0; margin-bottom: 15px; font-size: 1.2em; }

input, select {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.2s;
}

input:focus, select:focus {
    border-color: var(--color-primary);
    outline: none;
}

button {
    width: 100%;
    padding: 15px;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

button:hover { background-color: #008c81; }
button:active { transform: scale(0.98); }

.btn-secondary { background-color: var(--color-secondary); }
.btn-secondary:hover { background-color: #3e2925; }

.btn-accent { background-color: var(--color-accent); color: var(--color-secondary); }
.btn-accent:hover { background-color: #7ab32e; }

.btn-danger { background-color: var(--color-danger); }
.btn-danger:hover { background-color: #dc2626; }

.btn-sm { padding: 8px 16px; font-size: 0.9em; width: auto; margin: 5px; }

.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
    text-align: left;
    border-left: 5px solid var(--color-primary);
    position: relative;
    transition: transform 0.2s;
}

/* Utilities */
.hidden { display: none !important; }
.flex-column { display: flex; flex-direction: column; gap: 10px; }
.flex-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.text-center { text-align: center; }
.text-muted { color: #6b7280; font-size: 0.9em; }
.mt-4 { margin-top: 20px; }
.mb-4 { margin-bottom: 20px; }
.p-2 { padding: 10px; }

/* Chart Containers */
.chart-container {
    position: relative;
    margin: auto;
    height: 250px;
    width: 100%;
}

canvas { max-width: 100%; margin: 10px 0; }

/* Map Specific */
.saf-marker div {
    transition: transform 0.2s;
}
.saf-marker:hover div {
    transform: scale(1.1);
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.toast.show { opacity: 1; pointer-events: auto; }