/* ===== Global Styles & Variables ===== */
:root {
    /* Light mode (default) variables */
    --bg-color: #f5f5f5;
    --text-color: #333;
    --button-bg: #008080;
    --button-text: white;
    --chart-bg-light: #f5f5f5;
    --chart-bg-dark: #333;
    --footer-bg: #2b2b2b;
    --tab-active-bg: #f0f0f0;
    --tab-active-text: #222;
    --accent-color: #ff6f00;
}

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

html, body {
    height: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: Arial, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(0, 128, 128, 0.05);
    border-radius: 12px;
    text-align: center;
}

input:focus, button:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(0, 128, 128, 0.8);
    border: 1px solid var(--button-bg);
}

.hidden {
    display: none;
}

.error {
    color: red;
    font-size: 0.85rem;
    display: block;
    margin-top: 0.25rem;
}

.loading-message,
.no-data-message,
.error-message {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 16px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin: 10px;
    background-color: #f9f9f9;
}

.error-message {
    color: #d32f2f;
    background-color: #ffebee;
}

.loading-message {
    color: #1976d2;
    background-color: #e3f2fd;
}

.info {
    text-align: justify;
    padding: 20px;
    margin: 0 auto;
    width: 80%;
    max-width: 600px;
}

.info h3 {
    color: #ff6f00;
    margin-bottom: 10px;
}

.info p {
    color: var(--secondary-text);
}