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

/* General Body Styling */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

/* Header Styles */
header {
    background-color: #0A84FF;
    color: white;
    padding: 1rem;
    text-align: center;
}

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

/* Headings */
h2 {
    text-align: center;
}

/* Containers */
.container,
.horizontal-container,
.vertical-container,
.chart-container,
.chart-container-medium,
.chart-container-short,
.tank-container {
    display: flex;
    position: relative;
    width: calc(100% - 2rem);
    /* Full width minus margins */
    max-width: 1200px;
    margin: 0.5rem auto;
    /* Centered horizontally */
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.horizontal-container {
    padding: 1rem;
    justify-content: space-between;
}

.vertical-container {
    padding: 1rem;
    gap: 1rem;
    /* Add spacing between items */
    flex-direction: column;
    /* Stack items vertically */
}

.stats-container {
    display: flex;
    position: relative;
    justify-content: left;
    gap: 1rem;
    /* Add spacing between items */
}

.box {
    width: 50px;
    height: 50px;
    background-color: #0A84FF;
    border-radius: 4px;
    flex-shrink: 0;
    /* Prevent shrinking */
}

/* Text and Subtext */
.tank-container .text,
.subtext {
    font-size: 1rem;
    color: #555;
    text-align: left;
    justify-content: left;
    gap: 1rem;
    /* Add spacing between items */
}

.tank-container {
    padding: 1rem;
    gap: 1rem;
    /* Add spacing between items */
    align-items: center;
    /* Centers vertically */
}

/* Buttons */
button,
.button-container button,
.back-button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    background-color: #0A84FF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    height: 2.5rem;
    /* Ensure consistent button height */
    align-items: center;
    /* Center icon and text vertically */
    justify-content: center;
}

button:hover,
.button-container button:hover,
.back-button:hover {
    background-color: #007bdb;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem auto;
}

.back-button svg {
    fill: white;
    width: 1.5rem;
    height: 1.5rem;
}

/* Right-Aligned Group */
.right-group {
    gap: 0.5rem;
    /* Spacing between label, input, and button */
    justify-content: flex-end;
}

.right-group label {
    white-space: nowrap;
    /* Prevent text wrapping */
}

.right-group input {
    width: 3rem;
    /* Adjusted for better usability */
    padding: 0.25rem;
    font-size: 1rem;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Charts */
.chart-container {
    aspect-ratio: 16 / 9;
    max-height: 80vh;
}

.chart-container-medium {
    height: 200px;
}

.chart-container-short {
    height: 100px;
}

/* Canvas Styling */
canvas {
    display: block;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}