/* Reset defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Modernized site styling */
  body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #f3f3f3;
    margin: 0;
    padding: 0;
    color: #333;
  }
  
  /* Header styling */
  header {
    text-align: center;
    padding: 20px;
    background-color: #fff;
  }
  
  /* Logo container */
  .logo-container img {
    max-width: 200px;
  }
  
  /* Container for navigation and main content */
  .container {
    display: flex;
    min-height: calc(100vh - 160px); /* Adjust height based on header and footer */
  }
  
  /* Vertical Navigation Bar */
  nav {
    width: 80px;
    background-color: #fff;
    padding: 20px;
    border-right: 2px solid #eee;
  }
  
  .nav-list {
    list-style: none;
  }
  
  .nav-list li {
    margin-bottom: 20px;
  }
  
  .nav-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s;
  }
  
  .nav-icon:hover {
    transform: scale(1.1);
  }

  .nav-text {
    display: inline-block;
    margin-left: 1px;
    vertical-align: middle;
    font-size: 0.8em;
    color: #333;
}
  
  /* Main content area styling */
  main {
    flex-grow: 1;
    padding: 20px;
    background-color: #fff;
  }
  
  /* Footer styling */
  footer {
    background-color: #fff;
    text-align: center;
    padding: 10px;
    border-top: 2px solid #eee;
  }
  
  .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-logo {
    width: 50px;
    margin-bottom: 10px;
  }
  
  /* Blue and yellow accent styles for links */
  a {
    color: #007BFF; /* Blue accent */
    text-decoration: none;
  }
  
  a:hover {
    color: #FFC107; /* Yellow accent */
  }
  
  /* Responsive design for tablets and smaller screens */
  @media screen and (max-width: 768px) {
    .container {
      flex-direction: column;
    }
    nav {
      width: 100%;
      display: flex;
      justify-content: center;
      border-right: none;
      border-bottom: 2px solid #eee;
    }
    .nav-list {
      display: flex;
    }
    .nav-list li {
      margin: 0 10px;
    }
  }

  /* Import Page Styles */

/* Container for table display with scroll */
.table-container {
  max-height: 400px;
  overflow-y: scroll;
  border: 1px solid #ccc;
  margin-top: 20px;
}

/* Table styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
}
th, td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
}
th {
  background-color: #0078d4;
  color: #fff;
}

/* Form styling */
form {
  margin-bottom: 20px;
}
label {
  font-weight: bold;
}
input[type="text"],
input[type="file"] {
  margin: 5px 0 15px 0;
}


/* ============================= */
/*      Import Page Styles      */
/* ============================= */

/* Container for the import page */
.import-container {
  max-width: 800px;
  margin: 30px auto;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Header */
.import-container h1 {
  text-align: center;
  margin-bottom: 25px;
  color: #333;
}

/* Message styling */
.import-message {
  text-align: center;
  font-size: 1.1rem;
  color: #28a745;
  font-weight: bold;
  margin-bottom: 20px;
}

/* Form Styling */
.import-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.import-form .form-group {
  display: flex;
  flex-direction: column;
}

.import-form label {
  margin-bottom: 8px;
  font-weight: 600;
  color: #555;
}

.import-form input[type="text"],
.import-form input[type="file"] {
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: border-color 0.3s ease;
}

.import-form input[type="text"]:focus,
.import-form input[type="file"]:focus {
  border-color: #007BFF;
  outline: none;
}

.import-form input[type="submit"] {
  background-color: #007BFF;
  color: #fff;
  border: none;
  padding: 14px 25px;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.import-form input[type="submit"]:hover {
  background-color: #0056b3;
}

/* Table container styling */
.table-container {
  max-height: 750px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-top: 30px;
}

/* Table styling */
.table-container table {
  width: 100%;
  border-collapse: collapse;
}

.table-container th,
.table-container td {
  padding: 12px 15px;
  border: 1px solid #ddd;
  text-align: left;
}

.table-container th {
  background-color: #f8f9fa;
  font-weight: 600;
}

/* ============================= */
/*      Integrate Page Styles   */
/* ============================= */

/* Container for the integrate page */
.integrate-container {
  max-width: 900px;
  margin: 30px auto;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Header */
.integrate-container h1 {
  text-align: center;
  margin-bottom: 25px;
  color: #333;
}

/* Message styling */
.error, .success {
  text-align: center;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 20px;
}
.error {
  color: #dc3545;
}
.success {
  color: #28a745;
}

/* Table container styling */
.table-container {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

/* Table styling */
.table-container table {
  width: 100%;
  border-collapse: collapse;
}
.table-container th,
.table-container td {
  padding: 12px 15px;
  border: 1px solid #ddd;
  text-align: left;
}
.table-container th {
  background-color: #f8f9fa;
  font-weight: 600;
}

/* Input fields in table cells */
.table-container input[type="text"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Form group styling */
.form-group {
  margin: 15px 0;
  text-align: center;
}

/* Modern Button Styles */
button, input[type="submit"] {
  display: inline-block;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background-color: #007bff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
  margin: 5px;
}

button:hover, input[type="submit"]:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

button:active, input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: none;
}


/* ============================= */
/*        Produce Page Styles   */
/* ============================= */

/* Modern & Sleek Produce Page Styles */
.produce-container {
  margin: 30px 20px 30px 20px;  /* Top, right, bottom, left */
  max-width: 1200px;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.produce-table {
  width: 100%;
  border-spacing: 0;
  background-color: #fff;
  overflow: hidden;
  border-radius: 8px;
}

.produce-table th,
.produce-table td {
  padding: 16px;
  text-align: left;
}

.produce-table th {
  background: linear-gradient(135deg, #0078d4, #005f99);
  color: #fff;
  font-weight: 600;
  border: none;
}

/* Row styling with alternating colors */
.produce-table tbody tr {
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s ease-in-out;
}

/* Odd rows (default white) */
.produce-table tbody tr:nth-child(odd) {
  background-color: #fff;
}

/* Even rows */
.produce-table tbody tr:nth-child(even) {
  background-color: #f8f9fb;
}

/* Focus styling to navigate through rows (requires adding tabindex="0" to rows) */
.produce-table tbody tr:focus {
  background-color: #d0eaff;
  outline: none;
}

.produce-table tbody tr:last-child {
  border-bottom: none;
}

.group-header {
  background-color: #e0efff;
  cursor: pointer;
  font-size: 1.2em;
  transition: background-color 0.2s ease-in-out;
}

.group-header:hover,
.group-header:focus {
  background-color: #b3dcff;
}

.collapse-toggle {
  float: right;
  font-weight: 700;
  color: #005f99;
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #005f99;
}

/* Alternating colors for group-child rows */
.group-child.odd {
  background-color: #b8d1f7da;
}

.group-child.even {
  background-color: #84abf8;
}

/* Focus styling (will override alternating colors when focused) */
.produce-table tbody tr:focus {
  background-color: #8ff3b5;
  outline: none;
}

.produce-table tr.produced {
    background-color: #c8f7c5; /* light green background for produced items */
}

/* ============================= */
/*          Home Page Styles    */
/* ============================= */

.home-container {
  max-width: 800px;
  margin: 30px auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.home-container h1 {
  margin-bottom: 20px;
  color: #333;
}

canvas {
  max-width: 100%;
}

/* ============================= */
/*        Search Filter Styles  */
/* ============================= */

.search-filter {
    background-color: #fff;
    border: 1px solid #eee;
    padding: 10px 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.search-filter label {
    font-weight: 600;
    color: #333;
}

.search-filter select,
.search-filter input {
    font-size: 1.5em;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-filter select:focus,
.search-filter input:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 3px rgba(0, 120, 212, 0.5);
}

.search-filter button {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #caf57b;
    color: #000;  /* font color updated to black */
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.search-filter button:hover {
    background-color: #14ccfa;
}

/* ============================= */
/*        Settings Page Styles  */
/* ============================= */

/* Container for settings page */
.settings-container {
    max-width: 1000px;
    margin: 40px auto;
    background: #fff;
    padding: 20px 40px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Headings */
h1, h2 {
    color: #0078d4;
    margin-bottom: 20px;
}

/* Form elements */
select, input[type="text"] {
    padding: 6px;
    font-size: 0.95em;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Button Styles */
button, .add-row, .remove-row {
    font-size: 0.95em;
    padding: 8px 12px;
    margin: 4px 2px;
    color: #fff;
    background-color: #0078d4;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
button:hover,
.add-row:hover,
.remove-row:hover {
    opacity: 0.9;
}
.add-row, .remove-row {
    background-color: transparent;
    color: #0078d4;
    text-decoration: none;
}

/* Message Styles */
.message {
    color: green;
    font-size: 1em;
    margin-bottom: 15px;
}





