/* Basic Reset */
body, h1, h2, table, th, td {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #f0f0f0;
  color: #333;
  padding: 10px;
  font-size: 16px; /* Set a base font size */
}

/* Container to hold both navbar and content */
.navbar_container {
  display: flex;
  flex-direction: row; /* Allow horizontal alignment */
  height: 100vh; /* Full viewport height */
  flex-wrap: nowrap; /* Prevent wrapping */
}

/* Basic Styling for the Navbar */
.navbar {
  background-color: #333;
  padding: 20px;
  width: 200px;  /* Fixed width for the navbar */
  height: 100%;  /* Full height of the screen */
  position: relative;
}

.navbar a {
  display: block;
  color: #f2f2f2;
  padding: 10px;
  text-decoration: none;
  font-size: 1rem; /* Standard font size for links */
  width: 100%;
}

.navbar a:hover {
  background-color: #ddd;
  color: black;
}

.navbar a.active {
  background-color: #04AA6D;
  color: white;
}

/* Flex container for the content section */
.table_dates_container {
  flex-grow: 1;
  padding: 20px;
  overflow-x: auto; /* Allow horizontal scrolling for content */
}

/* Headings */
h1 {
  color: #004d99;
  border-bottom: 3px solid #004d99;
  padding-bottom: 10px;
  margin-bottom: 30px;
  font-size: 1.5rem; /* Use rem for responsive font size */
}

h2 {
  color: #004d99;
  font-size: 1.25rem; /* Use rem for responsive font size */
  margin-bottom: 20px;
}

/* Table styling */
table {
  width: 100%; /* Full width for small screens */
  margin-bottom: 40px;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  table-layout: auto; /* Allow table to adjust based on content */
}

th, td {
  padding: 8px; /* Slightly larger padding for better touch accuracy */
  text-align: center;
  border-bottom: 1px solid #ddd;
  white-space: nowrap; /* Prevent wrapping in cells */
  font-size: 0.9rem; /* Standard size for table text */
}

th {
  font-weight: bold;
}

thead {
  background-color: #004d99;
  color: #fff;
}

tbody tr:nth-child(odd) {
  background-color: #f9f9f9;
}

tbody tr:nth-child(even) {
  background-color: #ffffff;
}

tbody tr:hover {
  background-color: #f1f1f1;
}

/* Media Query for Smaller Screens */
@media screen and (max-width: 600px) {
  /* Adjust Navbar for mobile view */
  .navbar {
    width: 100%; /* Full width for navbar on mobile */
    height: auto; /* Allow navbar height to adjust */
    position: relative;
    padding: 10px;
  }

  .navbar a {
    display: block;
    text-align: left; /* Align text to the left */
    font-size: 0.9rem; /* Smaller size for mobile */
  }

  /* Stack content vertically on small screens */
  .navbar_container {
    flex-direction: column; /* Stack navbar and content */
  }

  /* Ensure table is scrollable */
  .table_dates_container {
    overflow-x: auto; /* Allow horizontal scrolling for tables */
  }

  table {
    width: 100%; /* Full width on mobile */
  }

  /* Adjust font sizes and padding for smaller screens */
  h1 {
    font-size: 1.5rem; /* Keep it same or slightly smaller */
  }

  h2 {
    font-size: 1.2rem; /* Adjust subheading size */
  }

  th, td {
    padding: 5px; /* Reduce padding for smaller screens */
    font-size: 0.9rem; /* Consistent smaller font size */
  }
}
