body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: white;
}


.container-custom {
  background-color: #788786;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-top: 56px;
  margin-bottom: 56px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 12px;
}

.header-custom {
  position: relative;
  height: 178px;
  background-color: #878678;
  color: #fff;
  text-align: center;
  border-bottom: 2px solid #68675d;
  z-index: 1;
}

.navbar-custom {
  color: #121e26;
  display: flex;
  width: 100%;
  gap: 0.5rem;
  padding: 10px;
  height: auto;
}

.btn-primary {
  color: #121e26;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: large;
  font-weight: bold;
  background-color: #ffffff;
  border: 5px solid #867887;
  padding: 8px 16px;
  text-decoration: none;
  display: inline-block;
  border-radius: 4px;
  transition: all 0.3s;
}

.btn-primary:hover {
  color: #121e26;
  background-color: #a197a1;
  border-color: #867887;
}

.btn-warning {
  color: #121e26;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: large;
  font-weight: bold;
  background-color: #ffc107;
  border: 5px solid #e0a800;
  padding: 8px 16px;
  text-decoration: none;
  display: inline-block;
  border-radius: 4px;
  transition: all 0.3s;
}

.btn-warning:hover {
  color: #121e26;
  background-color: #e0a800;
  border-color: #d39e00;
}

.nav-link {
  color: white;
  min-width: 60px;
  text-align: center;
  padding: 6px 12px;
  text-decoration: none;
  display: block;
}

.nav-link:hover {
  color: #e5e5e5;
}

.main-custom {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 800px;
  gap: 2rem;
}

.page-section {
  padding: 28px;
  color: white;
}

.page-section.centered {
  text-align: center;
}

.card {
  border: 1px solid #788786;
  background-color: #788786;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-style {
  padding: 20px;
  border-radius: 0;
  background-color: #788786;
}

.card-body {
  padding: 20px;
  color: white;
}

.card-title-style {
  color: black;
  font-weight: lighter;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  margin-bottom: 1rem;
  padding: 4px;
}

.card-text-border {
  color: white;
  font-size: medium;
  padding: 20px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  height: 300px;
  border: 2px solid #ffffff;
  border-radius: 3px;
  word-wrap: break-word;
  overflow-y: auto;
}

.search-form {
  display: flex;
  position: relative;
  margin: 10px;
  padding-top: 80px;
}

.icon-select-wrapper {
  position: relative;
  display: inline-block;
  width: 2.5rem;
  height: 2.5rem;
}

.icon-select-wrapper::after {
  font-size: large;
  content: '⚙️';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background-color: #000;
  color: #000;
}

.icon-select {
  width: 100%;
  height: 100%;
  padding: 3px;
  border: 6px solid #867887;
  cursor: pointer;
  text-shadow: 0 0 0 #000;
  background-color: rgb(0, 0, 0);
  color: #ffffff;
  appearance: none;
}

.left-navigation {
  position: fixed;
  min-width: 212px;
  padding-right: 10px;
  left: 12px;
  top: 32%;
  color: #fff;
  border-right: 3px solid #263223f8;
}

.left-navigation li {
  font-size: large;
  margin-bottom: 2rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
}

.left-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.left-nav-button {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  width: 200px;
  height: 100%;
}

.footer-custom {
  position: relative;
  background-color: #878678;
  color: #fff;
  text-align: center;
  height: 120px;
}

.bottom-navbar {
  color: #121e26;
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding-top: 10px;
  padding-left: 20px;
  padding-right: 20px;
}

.bottom-nav-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.llc-wrapper {
  background-color: #788786;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.llc {
  color: white;
  font-size: small;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  width: fit-content;
  text-align: left;
  padding: 4px;
}

.step-links {
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 0;
}

.step-links a {
  color: white;
  text-decoration: none;
}

.step-links a:hover {
  color: #a8a893;
}

.next-last {
  color: rgb(185, 185, 93);
}

.next-last:hover {
  color: rgb(245, 245, 200);
}



/* Form styles */
.recipe-form {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 20px;
  justify-content: center;
  text-align: center;
}

.field-row { 
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background-color: #788786;
  padding: 10px;
  border-radius: 5px;
  max-width: 280px;
  box-sizing: border-box;
}

.field-row label {
  min-width: 102px;
  margin-right: 10px;
  flex-shrink: 0;
}

.field-row input,
.field-row select,
.field-row textarea {
  color: rgb(0, 0, 0);
  flex: 1 1 auto;
  max-width: 280px;
}

.field-label {
  min-width: 102px;
  margin-right: 10px;
}

.submit-btn {
  justify-content: center;
  text-align: center;
  align-items: center;
  grid-column: span 2;
  width: 300px;
  height: 60px;
  margin: 20px 15%;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 20px;
}

/* Search results table styles */
#search-results-table {
  background-color: #1f2937;
  color: white;
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#search-results-table th {
  color: white;
  background: linear-gradient(135deg, #059669, #10b981);
  text-align: center;
  align-items: center;
  padding: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#search-results-table td {
  text-align: center;
  align-items: center;
  color: #e5e7eb;
  padding: 10px;
  border-bottom: 1px solid #374151;
}

#search-results-table tr:hover {
  background-color: #374151;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

#search-results-table tr:nth-child(even) {
  background-color: #2d3748;
}

.table-responsive {
  overflow-x: hidden;
}

/* Recipe detail page styles */
.recipe-dataframe-positioning {
  padding-left: 56px;
  padding-right: 56px;
  padding-top: 10px;
}

/* chart container styles */
.chart-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem;
  width: auto;
  margin: 0 auto;
  overflow: hidden;
  cursor: grab;
}

.chart-container.dragging {
  cursor: grabbing;
}

.chart-wrapper {
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.9), rgba(17, 24, 39, 0.9));
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  width: 800px;
  height: 500px;
}

.chart-title {
  color: #e5e7eb;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chart-wrapper canvas {
  border-radius: 8px;
}


/* Legacy chart image styles (keeping for compatibility) */
.chart-img {
  padding-left: 60px;
  padding-right: 60px;
  padding-top: 20px;
}

#ingredient-info-table {
  background-color: #1f2937;
  color: white;
  width: 100%;
  font-size: 16px;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#ingredient-info-table th {
  color: white;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  text-align: center;
  align-items: center;
  padding: 12px;
  font-weight: bold;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#ingredient-info-table td {
  text-align: center;
  align-items: center;
  color: #e5e7eb;
  padding: 10px;
  font-size: 16px;
  min-width: 100px;
  border-bottom: 1px solid #374151;
}

#ingredient-info-table tr:hover {
  background-color: #374151;
  transition: background-color 0.2s ease;
}

#ingredient-info-table tr:nth-child(even) {
  background-color: #2d3748;
}

/* Utility classes */
.hidden {
  display: none;
}

.flex {
  display: flex;
}

.block {
  display: block;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.p-0 {
  padding: 0;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-5 {
  margin-top: 1.25rem;
}

.p-7 {
  padding: 1.75rem;
}

.w-5\/12 {
  width: 41.666667%;
}

.w-7\/12 {
  width: 58.333333%;
}

.max-w-full {
  max-width: 100%;
}

.h-36 {
  height: 9rem;
}

.pointer-events-none {
  pointer-events: none;
}

.object-cover {
  object-fit: cover;
}

.rounded-md {
  border-radius: 0.375rem;
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.border {
  border-width: 1px;
}

.z-50 {
  z-index: 50;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.right-0 {
  right: 0px;
}

.mt-2 {
  margin-top: 0.5rem;
}

.bg-white {
  background-color: rgb(255 255 255);
}

.min-w-48 {
  min-width: 12rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.text-gray-800 {
  color: rgb(31 41 55);
}

.hover\:bg-gray-100:hover {
  background-color: rgb(243 244 246);
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.sm\:mb-0 {
  margin-bottom: 0;
}

.w-35 {
  width: 8.75rem;
}

.sm\:w-auto {
  width: auto;
}

.mr-2 {
  margin-right: 0.5rem;
}

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.flex-col {
  flex-direction: column;
}

.sm\:flex-row {
  flex-direction: row;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.flex-none {
  flex: none;
}

.w-1\/12 {
  width: 8.333333%;
}

.w-2\/12 {
  width: 16.666667%;
}

.w-4\/12 {
  width: 33.333333%;
}

.w-3\/12 {
  width: 25%;
}

.w-30 {
  width: 7.5rem;
}

.pt-25 {
  padding-top: 6.25rem;
}


/* Mobile responsive styles */
@media (max-width: 1000px) {
  body {
    margin-top: 236px;
  }

  .main-custom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    min-height: 800px;
    gap: 2rem;
    width: 100vw;
    margin-top: 220px;
  }

  .card {
    width: 346px;
    padding: 2px;
    margin: 2px;
  }

  .container-custom {
    background-color: #788786;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 56px;
    margin-bottom: 56px;
    margin-left: 4px;
    margin-right: 4px;
    width: 365px;
  }

  .header-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 220px;
    background-color: #878678;
    color: #fff;
    text-align: center;
    border-bottom: 1px solid #0F140E;
    z-index: 1;
  }

  .left-navigation.mobile {
    position: sticky;
    bottom: 0;
    left: 0;
    height: 120px;
    width: 100%;
    min-width: auto;
    margin-top: auto;
    padding: 0.5rem 0;
    border-right: none;
    border-top: 2px solid #68675d;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #a2a192;
    z-index: 1000;
  }

  .left-navigation.mobile ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: auto;
    margin: 0 auto;
    padding: 0;
  }

  .left-navigation.mobile li {
    list-style: none;
  }

  .left-navigation.mobile .left-nav-button {
    font-size: small;
    padding: 2px;
    width: 80px;
    border-radius: 5px;
  }

  .recipe-form {
    grid-template-columns: 1fr;
  }

  .field-row { 
    max-width: 280px;
    flex-direction: column;
    align-items: stretch;
  }

  .field-row label {
    min-width: auto;
    margin-right: 0;
    margin-bottom: 6px;
  }

  .submit-btn {
    grid-column: 1;
    width: 100%;
    margin: 20px 0;
  }

  .grid-container {
    grid-template-columns: 1fr;
  }

  /* Recipe detail page styles */
  .recipe-dataframe-positioning {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 10px;
  }

  .chart-container {
    overflow-x: scroll;
  }

  .chart-wrapper {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.9), rgba(17, 24, 39, 0.9));
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    width: 600px;
  }


}

@media (min-width: 640px) {
  .sm\:mb-0 {
    margin-bottom: 0px;
  }

  .sm\:w-auto {
    width: auto;
  }

  .sm\:flex-row {
    flex-direction: row;
  }

}

/* Responsive grid for larger screens */
@media (min-width: 768px) {
  .chart-container {
    grid-template-columns: 1fr 1fr;
  }

  .chart-wrapper:last-child {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (min-width: 1001px) {
  .mobile-only {
    display: none;
  }

  .desktop-hidden {
    display: none;
  }

}

@media (min-width: 1024px) {
  .lg\:flex {
    display: flex;
  }

  .lg\:hidden {
    display: none;
  }

  .lg\:block {
    display: block;
  }

}