/* css/styles.css */
/* Inspired by https://www.regenerativefarmersofamerica.com/regenerative-businesses: Earthy tones, clean layout, sans-serif fonts */

body {
    font-family: Arial, sans-serif;
    background-color: #f8f4f0;
    color: #1f2937;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    text-align: center;
    background-color: #607556;
    color: white;
    padding: 10px;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.panel {
    background-color: #f2f2f2;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.full-width {
    width: 100%;
}

.middle-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.half-width {
    flex: 1 1 45%;
    min-width: 300px;
}

.lower-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.third-width {
    flex: 1 1 30%;
    min-width: 250px;
}

#qrcode {
    width: 100px;
    height: 100px;
    margin: 10px auto;
    background-color: white; /* Placeholder background */
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

.box-plot {
    height: 20px;
    border: 1px solid #ccc;
}

.scale-container {
    margin-bottom: 10px;
}

.scale {
    width: 100%;
    height: 20px;
    background-color: #eee;
    border-radius: 10px;
    overflow: hidden;
}

.filled {
    height: 100%;
}

#map {
    height: 400px;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .middle-section, .lower-section {
        flex-direction: column;
    }
    
    .half-width, .third-width {
        flex: 1 1 100%;
    }
}

/* Accessibility: High contrast, focus states */
a {
    color: #4CAF50;
    text-decoration: none;
}

a:hover, a:focus {
    text-decoration: underline;
    outline: 2px solid #4CAF50;
}

h1, h2 {
    color: #333;
}

/* SEO: Semantic elements used */
/* Performance: Minimal CSS, no heavy images */