html, body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden; /* Prevents scrollbars */
    overflow-x: hidden;
}

body {
    background-color: #f2f2f2;
    font-family: Arial, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    display: flex;
    justify-content: space-between;   
    align-items: flex-start;  
    margin: 0 auto;
    padding: 10px;
    max-width: 1850px;
    height: calc(100vh - 64px); /* Ensures container takes full height minus footer */
    overflow: hidden;
    overflow-x: hidden;
}

.left-column {
    width: 20%;  /* Take 20% of the screen width for sensor data */
    text-align: left;  /* Align text to the left */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;  /* Align the sensor data to the top */
    padding-left: 0px;
    max-height: calc(100vh - 64px); /* Add this line */
    overflow-y: auto; /* Add this line */
    overflow-x: hidden;
}

.right-column {
    width: 80%; /* Takes 80% of the width */
    margin-right: 40px; /* Space on the right */
    margin-left: 20px; /* Space between text and charts */
    margin-top: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Single chart container - replaces the old chart-grid */
.chart-container {
    width: 100%;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

p {
    font-size: 15px;
    padding-left: 82px;
}

/* Style for the single chart */
.chart {
    border: 1px solid #ccc;  /* Optional border for visual structure */
    background-color: #fff;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5); /* Optional shadow for depth */
    border-radius: 10px;  /* Optional rounded corners */
    padding: 10px;
    height: 100%; /* Ensure the chart fits within the defined area */
    width: 100%;
    max-width: 1200px;
}

.status-indicator {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%; /* Makes it a circle */
    margin-left: 10px; /* Space between text and circle */
    vertical-align: middle; /* Align with the text */
    background-color: gray; /* Default color */
    box-shadow: 0 0 5px rgba(128, 128, 128, 0.5); /* Subtle default shadow */
    transition: background-color 0.3s, box-shadow 0.3s; /* Smooth transition */
    vertical-align: -1px;
}

/* Charging (Green LED effect) */
.status-indicator.green {
    background-color: rgba(0, 255, 0, 0.7); /* Softer green */
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.6); /* Softer green glow */
}

/* Discharging (Red LED effect) */
.status-indicator.red {
    background-color: rgba(255, 0, 0, 0.7); /* Softer red */
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.6); /* Softer red glow */
}

/* Idle/Unknown (Gray LED effect) */
.status-indicator.gray {
    background-color: rgba(128, 128, 128, 0.7); /* Softer gray */
    box-shadow: 0 0 8px rgba(128, 128, 128, 0.5); /* Softer gray glow */
}

.logo-image {
    width: 350px;
    height: auto; /* Maintain aspect ratio */
    display: block;
    margin-bottom:130px;
    padding-left: 0px;
    margin-left: 18px;
}

.footer {
    background-color: #333;    /* Dark grey background to match your overall design */
    color: #f9f9f9;            /* Light text color to contrast with the dark background */
    padding: 15px 0;           /* Add padding to give it some breathing space */
    text-align: center;        /* Center-align the text */
    font-size: 18px;           /* Small font size for the footer */
    border-top: 2px solid #ccc; /* Optional: A subtle top border for separation */
}

.footer p {
    margin: 0;                /* Remove any default margin on the paragraph */
    font-family: Arial, sans-serif;  /* Match the font with the rest of the design */
    letter-spacing: 1px;      /* Add some letter spacing for a modern look */
    font-size: 11px;
}

.value {
    padding-left: 10px; /* Adjust this value to control the space between label and value */
    font-weight: bold;
}

.data-box {
    background-color: #fff;
    border: 1px solid #ccc;  /* White background for the box */
    border-radius: 10px;     /* Rounded corners */
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);  /* Subtle shadow for depth */
    padding: 10px;           /* Padding inside the box */
    margin-bottom: 15px;     /* Space below the box */
    width: 90%;             /* Take full width of the left column */
    box-sizing: border-box;
    margin-left: 30px;   /* Ensure padding is included in the element's total width */
    margin-top: 8px;
}

.time-box {
    background-color: #fff;  /* White background to match the sidebar */
    border: 1px solid #ccc;
    border-radius: 10px;     /* Rounded corners */
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);  /* Same subtle shadow */
    padding: 10px;           /* Padding inside the box */
    margin-bottom: 15px;     /* Space below the time box */
    width: 90%;             /* Same width as the data box */
    box-sizing: border-box;  /* Ensure padding is included in the width */
    margin-left: 30px;       /* Align with data-box */
    text-align: center;      /* Center align the text */
    font-size: 16px;         /* Adjust text size */
    font-weight: bold;       /* Make text bold */
    margin-top: -136px;       /* Move the time box higher above the data-box */ 
}

.time-box p {
    text-align: left;   /* Align text same as the data box */
    padding-left: 30px; /* Keep consistent padding */
    font-weight: normal; /* Ensure the label is not bold */
}

.data-box p {
    text-align: left;        /* Align text to the left inside the box */
    padding-left: 30px;      /* Add padding inside the box to create space from the edges */
}

.data-box h3 {
    margin-top: 5px;
    margin-bottom: 5px;
    text-align: center;
    font-size: 16px;
}

.background-image {
  background: url('/static/bg.jpg') no-repeat center center fixed;
  background-size: cover;
  background-color: #f0f0f0;
}

/* Button styling */
#resetLive {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 5px;
}

#resetLive:hover {
    background-color: #0056b3;
}

/* Main Menu Styles - Add these to your existing style.css */

.main-menu-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 64px); /* Full height minus footer */
    padding: 20px;
    text-align: center;
}

.menu-logo-container {
    margin-bottom: 50px;
}

.menu-logo {
    width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.menu-buttons-container {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #ccc;
    border-radius: 15px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.4);
    padding: 40px;
    margin-top: 20px;
}

.menu-title {
    color: #333;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 40px;
    margin-top: 0;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.menu-button {
    background-color: #007bff;
    color: white;
    text-decoration: none;
    padding: 20px 40px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    min-width: 250px;
    display: inline-block;
    text-align: center;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.menu-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.menu-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


/* Home Button Styling - Add to your style.css */

.home-button-container {
    margin-top: 15px;
    margin-left: 30px;
    width: 90%;
    text-align: center;
}

.home-button {
    background-color: #007bff !important;
    color: white !important;
    text-decoration: none !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    /*font-weight: bold !important;*/
    display: inline-block !important;
    text-align: center !important;
    transition: background-color 0.3s, transform 0.2s !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    min-width: 120px !important;
}

.home-button:hover {
    background-color: #0056b3 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3) !important;
}


/* Main Menu Styles - Add these to the bottom of your style.css file */

.main-menu-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between;
}

.main-menu-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding: 20px;
    text-align: center;
}

.menu-logo-container {
    margin-bottom: 30px;
    display: none;
}

.menu-logo {
    width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.menu-buttons-container {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #ccc;
    border-radius: 15px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.4);
    padding: 40px;
    margin-top: 20px;
}

.menu-title {
    color: #333;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    margin-top: 0;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.menu-button {
    background-color: #007bff;
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    min-width: 200px;
    display: inline-block;
    text-align: center;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.menu-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Logo inside the menu box */
.menu-internal-logo {
    text-align: center;
    margin-bottom: 30px;
}

.menu-internal-logo-img {
    width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.chart-button-container {
    text-align: center;
    margin-top: 15px;
    width: 100%;
}

#resetLive {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 22px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.2s;
}

#resetLive:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.chart-button-container {
    display: flex;
    justify-content: center;
    gap: 15px; /* Space between buttons */
    text-align: center;
    margin-top: 15px;
    width: 100%;
}

#resetAxes {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 22px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.2s;
}

#resetAxes:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Event Log Scrollable Container */
.event-log-container {
    height: 120px; /* Same height as your current 3-line content */
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fafafa;
    padding: 5px;
    margin: 10px 30px 10px 30px; /* Match your existing box padding */
}

.event-entry {
    padding: 3px 8px;
    margin-bottom: 2px;
    background-color: white;
    border-radius: 3px;
    font-size: 14px;
    border-left: 3px solid #007bff;
    line-height: 1.2;
}

.event-entry:hover {
    background-color: #e7f3ff;
}

.event-entry:last-child {
    margin-bottom: 0;
}

/* Custom scrollbar styling */
.event-log-container::-webkit-scrollbar {
    width: 6px;
}

.event-log-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.event-log-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.event-log-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}