body {
    font-family: Arial, sans-serif;
    margin: 5px;
    padding: 5px;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background: lighgray;
    color: #0000FF;
    padding: 1em 0;
    text-align: center;
}

h1, h2 {
    color: #0000FF; /* Deep Blue */
    text-align: center;
}

#product-table th[data-column="manufacturer"],
#product-table td:nth-child(4){
    max-width: 150px; /* Adjust as needed */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main Content */
.container {
    background-color: #FFFFFF; /* White background for main content */
    color: #212529; /* Dark Gray text */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 10px; /* Reduced gap between navbar and content */
}

/* Custom CSS for high-contrast blue nav buttons */
      .navbar-light .navbar-nav .nav-link {
        color: #0056b3; /* High-contrast blue for text */
        transition: background-color 0.3s ease; /* Added transition */
        padding: 5px;
      }

      .navbar-light .navbar-nav .nav-link:hover,
      .navbar-light .navbar-nav .nav-link:focus {
        background-color: #0056b3; /* High-contrast blue for hover/focus */
        color: white; /* white text on hover/focus */
      }

       .navbar-toggler {
          border-color: #0056b3;
       }
       .navbar-toggler-icon{
          background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 86, 179, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");

       }

        @media (max-width: 991.98px) {
            .navbar-nav {
                text-align: center;
            }
        }

/* Buttons */
button, .button {
    display: inline-block;
    padding: 10px 15px;
    font-size: 14px;
    color: #FFFFFF; /* White text */
    background-color: #0000FF; /* Deep Blue */
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
}

button:hover, .button:hover {
    background-color: #002752; /* Darker Blue for hover state */
}


.filter-form {
  padding: 20px;
  background: white;
  margin: 20px auto;
  max-width: 800px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#filter-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: flex-start;

}
.form-row {
    margin-bottom: 10px;
    display: flex;
     flex-direction: column;
}

.form-row label {
    margin-bottom: 5px;
}
.form-row input,
.form-row select {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#filter-button {
  background-color: #5cb85c;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 20px;
}

#filter-button:hover {
  background-color: #4cae4c;
}

.table-container {
    padding: 20px;
    margin: 20px auto;
    max-width: 90%;
    overflow-x: auto; /* Enable horizontal scrolling on small screens */

}

#product-table {
    width: 100%;
    border-collapse: collapse;
    margin: auto;
}

#product-table th,
#product-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#product-table th {
    background-color: #f2f2f2;
}

#product-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

#product-table a {
    color: #0000FF;
    text-decoration: none;
}

#product-table a:hover {
    text-decoration: underline;
}

/* Navbar link buttons */
.navbar-dark .navbar-nav .nav-link {
    background-color: #0000FF; /* Blue background for non-hover state */
    color: #ffffff; /* White text for contrast */
    padding: 10px 15px; /* Button-like padding */
    border-radius: 5px; /* Rounded corners for button appearance */
    margin-right: 5px; /* Spacing between buttons */
    text-align: center;
}

/* Hover and focus states */
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    background-color: #002752; /* Darker blue for hover state */
    color: #FFC107; /* Yellow text for hover */
    text-decoration: none; /* Remove underline */
}

/* New rule to target site name color in navbar */
.navbar-brand .display-5 {
  color: #0000FF;
  font-size: 1.25rem;
  display: inline-block;
}
@media (min-width: 768px) {
    .form-row {
      width: 20%;
    }
    #filter-form{
        flex-direction: row;
    }
    
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f8f8f8;
    padding: 15px;
    text-align: center;
    border-top: 1px solid #ddd;
    z-index: 1000; /* Ensure it's above other elements */
    display: none; /* initially hide the popup */
}

.cookie-popup button {
    background-color: #5cb85c;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}
