body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
  }

  footer {
    margin-top: auto;
    padding: 1em;
    background-color: #f1f1f1;
    text-align: center;
  }
  
  h1 {
    color: #333;
    margin-bottom: 20px;
  }
  
  form {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
  }
  
  form label {
    margin-right: 10px;
    font-weight: bold;
    color: #555;
  }
  
  form input[type="date"] {
    padding: 8px;
    margin-right: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  
  button, #backButton {
    background-color: #007bff;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
  }
  
  form button:hover {
    background-color: #0056b3;
  }
  
  #chart-container {
    width: 100%;
    max-width: 1200px; /* Increase this value to make the chart wider */
    margin-bottom: 20px;
    height: 300px
  }
  
  canvas {
    width: 100% !important; /* Ensures the canvas takes the full width of the container */
    height:100%;
  }
  
  table {
    width: 100%;
    max-width: 600px;
    background-color: #fff;
    border-collapse: collapse;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  table th, table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
  }
  
  table th {
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
  }

  /* Add styles for sort indicators */
  th.sort-asc::after {
    content: '▲';
    margin-left: 5px;
  }

  th.sort-desc::after {
    content: '▼';
    margin-left: 5px;
  }
    
  /* Center align the "Total Visits" column */
  table td:nth-child(2),
  table th:nth-child(2) {
    text-align: center;
  }
  
  table td.monospace {
    font-family: 'Courier New', Courier, monospace;
  }

  table td.monospace a {
    text-decoration: none;
  }
  
  table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
  }
  
  table tbody tr:hover {
    background-color: #f1f1f1;
  }

  #detailsTable {
    max-width:800px;
  }

  
  