* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #34495e;
  background-color: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: linear-gradient(135deg, #2ecc71, #3498db);
  color: #ffffff;
  padding: 2rem 0;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
header p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}
header nav a {
  color: #ffffff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
  border-radius: 25px;
  transition: all 0.3s ease;
}
header nav a:hover, header nav a.active {
  background-color: rgba(255, 255, 255, 0.2);
}
header nav a .source-info {
  background: #e3f2fd;
  color: #1976d2;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}
header nav .ingredients-info {
  margin-top: 0.8rem;
  padding: 0.8rem;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #6c757d;
  border-left: 3px solid #2ecc71;
}
header nav.single-barcode-result {
  border: 2px solid #2ecc71;
  box-shadow: 0 8px 25px rgba(46, 204, 113, 0.2);
}

main {
  padding: 3rem 0;
}

section {
  background: #ffffff;
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}
section h2 {
  color: #34495e;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  border-bottom: 3px solid #2ecc71;
  padding-bottom: 0.5rem;
}

.nash-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border-radius: 15px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}
.nash-banner .banner-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  border: none;
  color: #ffffff;
}
.nash-banner .banner-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}
.nash-banner .banner-content p strong {
  color: #ffeb3b;
  font-weight: 700;
}
.nash-banner .nash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.nash-banner .nash-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.nash-banner .nash-stats .stat .number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #ffeb3b;
  margin-bottom: 0.5rem;
}
.nash-banner .nash-stats .stat .label {
  font-size: 0.9rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.disease-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.disease-card {
  background: linear-gradient(145deg, #ffffff, #ecf0f1);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}
.disease-card:hover:not(.disabled) {
  transform: translateY(-5px);
  border-color: #2ecc71;
  box-shadow: 0 8px 25px rgba(46, 204, 113, 0.3);
}
.disease-card.active {
  border-color: #2ecc71;
  background: linear-gradient(145deg, #e8f8f5, #ecf0f1);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
}
.disease-card.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: linear-gradient(145deg, #f8f9fa, #e9ecef);
}
.disease-card.disabled:hover {
  transform: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.disease-card h3 {
  color: #34495e;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}
.disease-card p {
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}
.disease-card .card-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #2ecc71;
  color: #ffffff;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.disabled .disease-card .card-badge {
  background: #f39c12;
}

.search-box {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}
.search-box input {
  flex: 1;
  padding: 1rem;
  border: 2px solid #ecf0f1;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}
.search-box input:focus {
  outline: none;
  border-color: #2ecc71;
}
.search-box button {
  background: #2ecc71;
  color: #ffffff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}
.search-box button:hover {
  background: rgb(36.616, 162.384, 89.948);
}
.search-box .btn-barcode {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.search-box .btn-barcode:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}
.modal .modal-content {
  background-color: #ffffff;
  margin: 5% auto;
  padding: 0;
  border-radius: 15px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}
.modal .modal-header {
  background: linear-gradient(135deg, #2ecc71, #3498db);
  color: #ffffff;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal .modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
}
.modal .modal-header .close {
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.modal .modal-header .close:hover {
  opacity: 0.7;
}
.modal .modal-body {
  padding: 2rem;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
#barcode-scanner {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 2rem;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
#barcode-scanner #barcode-video {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
#barcode-scanner .scanner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}
#barcode-scanner .scanner-overlay .scanner-line {
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #2ecc71, transparent);
  animation: scannerMove 2s ease-in-out infinite;
}
#barcode-scanner .scanner-overlay .scanner-corners {
  position: absolute;
  top: 20%;
  left: 20%;
  right: 20%;
  bottom: 20%;
}
#barcode-scanner .scanner-overlay .scanner-corners .corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid #2ecc71;
}
#barcode-scanner .scanner-overlay .scanner-corners .corner.top-left {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
}
#barcode-scanner .scanner-overlay .scanner-corners .corner.top-right {
  top: 0;
  right: 0;
  border-left: none;
  border-bottom: none;
}
#barcode-scanner .scanner-overlay .scanner-corners .corner.bottom-left {
  bottom: 0;
  left: 0;
  border-right: none;
  border-top: none;
}
#barcode-scanner .scanner-overlay .scanner-corners .corner.bottom-right {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
}

@keyframes scannerMove {
  0% {
    transform: translateY(-20px);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(20px);
    opacity: 0;
  }
}
.scanner-info {
  text-align: center;
  margin-bottom: 2rem;
  color: #6c757d;
}
.scanner-info p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.scanner-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.modal .form-group {
  margin-bottom: 1.5rem;
}
.modal .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #34495e;
}
.modal .form-group input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #ecf0f1;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}
.modal .form-group input:focus {
  outline: none;
  border-color: #2ecc71;
}
.modal .form-group .test-barcodes {
  margin-top: 1rem;
  padding: 1rem;
  background: #f1f3f4;
  border-radius: 8px;
}
.modal .form-group .test-barcodes p {
  margin: 0 0 0.5rem 0;
  font-size: 0.85rem;
  color: #6c757d;
}
.modal .form-group .test-barcodes .barcode-examples {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.modal .form-group .test-barcodes .barcode-example {
  padding: 0.5rem;
  background: #ffffff;
  border: 1px solid #a8e6cf;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}
.modal .form-group .test-barcodes .barcode-example:hover {
  background: #d4edda;
  border-color: #2ecc71;
}

.search-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.food-item {
  background: #ffffff;
  border: 1px solid #ecf0f1;
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.food-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-color: #2ecc71;
}
.food-item h4 {
  color: #34495e;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.food-item .food-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #6c757d;
}

.barcode-search-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  text-align: center;
}
.barcode-search-header h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
}
.barcode-search-header p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.9rem;
}

.barcode-item {
  border-left: 4px solid #667eea;
}
.barcode-item .barcode-info {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}
.barcode-item .barcode-info .barcode-badge {
  background: #e3f2fd;
  color: #667eea;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}
.barcode-item .barcode-info .brand-info {
  background: #d4edda;
  color: #2ecc71;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.original-name {
  font-size: 0.8rem;
  color: #9ca3af;
  font-style: italic;
  margin-top: 0.3rem;
  opacity: 0.7;
}

.food-list .scored-food {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-left: 4px solid #ecf0f1;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.food-list .scored-food.positive {
  border-left-color: #27ae60;
}
.food-list .scored-food.negative {
  border-left-color: #e74c3c;
}
.food-list .scored-food.neutral {
  border-left-color: #f39c12;
}
.food-list .scored-food .food-info {
  flex: 1;
}
.food-list .scored-food .food-info h4 {
  color: #34495e;
  margin-bottom: 0.3rem;
}
.food-list .scored-food .food-info .nutrients {
  font-size: 0.85rem;
  color: #6c757d;
}
.food-list .scored-food .score {
  font-size: 1.5rem;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  min-width: 80px;
  text-align: center;
}
.food-list .scored-food .score.positive {
  background: #d1f2eb;
  color: #27ae60;
}
.food-list .scored-food .score.negative {
  background: #f8d7da;
  color: #e74c3c;
}
.food-list .scored-food .score.neutral {
  background: #fff3cd;
  color: #f39c12;
}

.nash-analysis {
  margin-top: 1rem;
}
.nash-analysis .score-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  margin-bottom: 1rem;
}
.nash-analysis .score-badge.positive {
  background: #d1f2eb;
  color: #27ae60;
}
.nash-analysis .score-badge.negative {
  background: #f8d7da;
  color: #e74c3c;
}
.nash-analysis .score-badge.neutral {
  background: #fff3cd;
  color: #f39c12;
}
.nash-analysis .nutrients-tags {
  margin: 1rem 0;
}
.nash-analysis .nutrients-tags .nutrient-tag {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  margin: 0.2rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}
.nash-analysis .nutrients-tags .nutrient-tag.positive {
  background: #d1f2eb;
  color: #27ae60;
}
.nash-analysis .nutrients-tags .nutrient-tag.negative {
  background: #f8d7da;
  color: #e74c3c;
}
.nash-analysis .benefits, .nash-analysis .warnings {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 8px;
}
.nash-analysis .benefits h5, .nash-analysis .warnings h5 {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
}
.nash-analysis .benefits ul, .nash-analysis .warnings ul {
  margin: 0;
  padding-left: 1.2rem;
}
.nash-analysis .benefits ul li, .nash-analysis .warnings ul li {
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  line-height: 1.4;
}
.nash-analysis .benefits {
  background: #d1f2eb;
  border: 1px solid #95d5b2;
  color: #155724;
}
.nash-analysis .warnings {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.selected-disease {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  text-align: center;
}
.selected-disease h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}
.selected-disease p {
  opacity: 0.9;
  margin-bottom: 1rem;
}
.selected-disease .nash-tips {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: left;
  margin-top: 1rem;
}
.selected-disease .nash-tips strong {
  color: #ffeb3b;
}

.dynamic-recommendations {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
}
.dynamic-recommendations h2 {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  text-align: center;
}
.dynamic-recommendations .recommendations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}
.dynamic-recommendations .recommendation-column h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}
.dynamic-recommendations .food-recommendations {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.dynamic-recommendations .recommendation-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}
.dynamic-recommendations .recommendation-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
}
.dynamic-recommendations .recommendation-item.good {
  border-left-color: #2ecc71;
}
.dynamic-recommendations .recommendation-item.bad {
  border-left-color: #e74c3c;
}
.dynamic-recommendations .recommendation-item .food-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.dynamic-recommendations .recommendation-item .food-score {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.good .dynamic-recommendations .recommendation-item .food-score {
  color: #2ecc71;
}
.bad .dynamic-recommendations .recommendation-item .food-score {
  color: #e74c3c;
}
.dynamic-recommendations .recommendation-item .food-desc {
  font-size: 0.85rem;
  opacity: 0.8;
  font-style: italic;
}
.dynamic-recommendations .refresh-info {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 1rem;
}
.dynamic-recommendations .refresh-info #refreshCounter {
  font-weight: bold;
  color: #ffeb3b;
}

.local-food-item {
  background: linear-gradient(135deg, #ffffff, #d4edda);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.local-food-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(46, 204, 113, 0.2);
  border-color: #2ecc71;
}
.local-food-item.excellent {
  border-left: 4px solid #27ae60;
}
.local-food-item.excellent:hover {
  box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
}
.local-food-item.recommended {
  border-left: 4px solid #2ecc71;
}
.local-food-item.recommended:hover {
  box-shadow: 0 8px 25px rgba(46, 204, 113, 0.3);
}
.local-food-item.caution {
  border-left: 4px solid #f39c12;
}
.local-food-item.caution:hover {
  box-shadow: 0 8px 25px rgba(243, 156, 18, 0.3);
}
.local-food-item.avoid {
  border-left: 4px solid #e74c3c;
}
.local-food-item.avoid:hover {
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}
.local-food-item .food-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}
.local-food-item .food-header h4 {
  color: #34495e;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}
.local-food-item .food-header .nash-badge {
  font-size: 1rem;
  font-weight: bold;
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
}
.local-food-item .food-header .nash-badge.excellent {
  background: #d1f2eb;
  color: #27ae60;
}
.local-food-item .food-header .nash-badge.recommended {
  background: #d4edda;
  color: #2ecc71;
}
.local-food-item .food-header .nash-badge.caution {
  background: #fff3cd;
  color: #f39c12;
}
.local-food-item .food-header .nash-badge.avoid {
  background: #f8d7da;
  color: #e74c3c;
}
.local-food-item .food-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}
.local-food-item .food-description {
  font-size: 0.85rem;
  color: #6c757d;
  font-style: italic;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 6px;
}

.local-food-info {
  margin: 1rem 0;
}
.local-food-info .info-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  margin: 0.2rem;
  background: #d4edda;
  color: #2ecc71;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.food-management .add-food-form {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: 2px solid #2ecc71;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}
.food-management .add-food-form h3 {
  margin: 0 0 1.5rem 0;
  color: #2ecc71;
  border: none;
  font-size: 1.5rem;
}
.food-management .add-food-form .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  align-items: end;
}
.food-management .add-food-form .form-group.full-width {
  grid-column: 1/-1;
}
.food-management .add-food-form .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #34495e;
}
.food-management .add-food-form .form-group input, .food-management .add-food-form .form-group select, .food-management .add-food-form .form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #ecf0f1;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}
.food-management .add-food-form .form-group input:focus, .food-management .add-food-form .form-group select:focus, .food-management .add-food-form .form-group textarea:focus {
  outline: none;
  border-color: #2ecc71;
}
.food-management .add-food-form .form-group textarea {
  resize: vertical;
  min-height: 80px;
}
.food-management .add-food-form .form-group input[type=range] {
  padding: 0;
  height: 8px;
  background: #ecf0f1;
  border-radius: 5px;
  outline: none;
}
.food-management .add-food-form .form-group input[type=range]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2ecc71;
  cursor: pointer;
}
.food-management .add-food-form .form-group input[type=range]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2ecc71;
  cursor: pointer;
  border: none;
}
.food-management .add-food-form .score-display {
  margin-top: 0.5rem;
  text-align: center;
}
.food-management .add-food-form .score-display #nashScoreValue {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  display: block;
  color: #2ecc71;
}
.food-management .add-food-form .score-display #nashScoreCategory {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  text-align: center;
}
.food-management .add-food-form .score-display #nashScoreCategory.category-excellent {
  background: #d1f2eb;
  color: #27ae60;
}
.food-management .add-food-form .score-display #nashScoreCategory.category-recommended {
  background: #d4edda;
  color: #2ecc71;
}
.food-management .add-food-form .score-display #nashScoreCategory.category-caution {
  background: #fff3cd;
  color: #f39c12;
}
.food-management .add-food-form .score-display #nashScoreCategory.category-avoid {
  background: #f8d7da;
  color: #e74c3c;
}
.food-management .add-food-form .btn-primary {
  justify-self: end;
  min-width: 150px;
}
.food-management .existing-foods h3 {
  margin-bottom: 1.5rem;
  color: #34495e;
}
.food-management .existing-foods .food-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}
.food-management .existing-foods .food-filters input, .food-management .existing-foods .food-filters select {
  padding: 0.8rem;
  border: 2px solid #ecf0f1;
  border-radius: 8px;
  font-size: 1rem;
}
.food-management .existing-foods .food-filters input:focus, .food-management .existing-foods .food-filters select:focus {
  outline: none;
  border-color: #2ecc71;
}
.food-management .existing-foods .food-filters input {
  flex: 1;
}
.food-management .existing-foods .foods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1.5rem;
}
.food-management .existing-foods .food-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #ecf0f1;
  transition: all 0.3s ease;
}
.food-management .existing-foods .food-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.food-management .existing-foods .food-card.excellent {
  border-left-color: #27ae60;
}
.food-management .existing-foods .food-card.recommended {
  border-left-color: #2ecc71;
}
.food-management .existing-foods .food-card.caution {
  border-left-color: #f39c12;
}
.food-management .existing-foods .food-card.avoid {
  border-left-color: #e74c3c;
}
.food-management .existing-foods .food-card .food-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.food-management .existing-foods .food-card .food-header h4 {
  margin: 0;
  color: #34495e;
  font-size: 1.2rem;
}
.food-management .existing-foods .food-card .food-header .nash-score {
  font-size: 1.3rem;
  font-weight: bold;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
}
.food-management .existing-foods .food-card .food-header .nash-score.excellent {
  background: #d1f2eb;
  color: #27ae60;
}
.food-management .existing-foods .food-card .food-header .nash-score.recommended {
  background: #d4edda;
  color: #2ecc71;
}
.food-management .existing-foods .food-card .food-header .nash-score.caution {
  background: #fff3cd;
  color: #f39c12;
}
.food-management .existing-foods .food-card .food-header .nash-score.avoid {
  background: #f8d7da;
  color: #e74c3c;
}
.food-management .existing-foods .food-card .food-details {
  margin-bottom: 1rem;
}
.food-management .existing-foods .food-card .food-details p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: #6c757d;
}
.food-management .existing-foods .food-card .food-details p strong {
  color: #34495e;
}
.food-management .existing-foods .food-card .food-actions {
  text-align: right;
}

.admin-form .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  align-items: end;
}
.admin-form .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #34495e;
}
.admin-form .form-group input, .admin-form .form-group select, .admin-form .form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #ecf0f1;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}
.admin-form .form-group input:focus, .admin-form .form-group select:focus, .admin-form .form-group textarea:focus {
  outline: none;
  border-color: #2ecc71;
}
.admin-form .form-group textarea {
  resize: vertical;
  min-height: 80px;
}
.admin-form .score-display {
  margin-top: 0.5rem;
  text-align: center;
}
.admin-form .score-display #scoreValue {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  display: block;
}
.admin-form .score-display #scoreValue.score-positive {
  color: #27ae60;
}
.admin-form .score-display #scoreValue.score-negative {
  color: #e74c3c;
}
.admin-form .score-display #scoreValue.score-neutral {
  color: #f39c12;
}
.admin-form .score-display .score-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #6c757d;
}
.admin-form .score-display .score-labels .negative {
  color: #e74c3c;
}
.admin-form .score-display .score-labels .positive {
  color: #27ae60;
}
.admin-form .score-display .score-labels .neutral {
  color: #f39c12;
}

.effects-list .filter-section {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}
.effects-list .filter-section input, .effects-list .filter-section select {
  padding: 0.8rem;
  border: 2px solid #ecf0f1;
  border-radius: 8px;
  font-size: 1rem;
}
.effects-list .filter-section input:focus, .effects-list .filter-section select:focus {
  outline: none;
  border-color: #2ecc71;
}
.effects-list .filter-section input {
  flex: 1;
}
.effects-list .effects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}
.effects-list .effect-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #ecf0f1;
  transition: all 0.3s ease;
}
.effects-list .effect-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.effects-list .effect-card.positive {
  border-left-color: #27ae60;
}
.effects-list .effect-card.negative {
  border-left-color: #e74c3c;
}
.effects-list .effect-card.neutral {
  border-left-color: #f39c12;
}
.effects-list .effect-card .effect-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.effects-list .effect-card .effect-header h4 {
  margin: 0;
  color: #34495e;
  font-size: 1.1rem;
}
.effects-list .effect-card .effect-header .effect-score {
  font-size: 1.2rem;
  font-weight: bold;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
}
.effects-list .effect-card .effect-header .effect-score.positive {
  background: #d1f2eb;
  color: #27ae60;
}
.effects-list .effect-card .effect-header .effect-score.negative {
  background: #f8d7da;
  color: #e74c3c;
}
.effects-list .effect-card .effect-header .effect-score.neutral {
  background: #fff3cd;
  color: #f39c12;
}
.effects-list .effect-card .effect-details {
  margin-bottom: 1rem;
}
.effects-list .effect-card .effect-details p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: #6c757d;
}
.effects-list .effect-card .effect-details p strong {
  color: #34495e;
}
.effects-list .effect-card .effect-actions {
  text-align: right;
}
.effects-list .empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 3rem;
  color: #6c757d;
}
.effects-list .empty-state p {
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

.nash-info {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: 2px solid #2ecc71;
}
.nash-info .info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.nash-info .info-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.nash-info .info-card.positive {
  border-top: 3px solid #27ae60;
}
.nash-info .info-card.negative {
  border-top: 3px solid #e74c3c;
}
.nash-info .info-card h4 {
  margin-top: 0;
  margin-bottom: 1rem;
}
.nash-info .info-card ul {
  margin: 0;
  padding-left: 1.2rem;
}
.nash-info .info-card ul li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.food-analysis .test-section {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}
.food-analysis .test-section input {
  flex: 1;
  padding: 1rem;
  border: 2px solid #ecf0f1;
  border-radius: 8px;
  font-size: 1rem;
}
.food-analysis .test-section input:focus {
  outline: none;
  border-color: #2ecc71;
}
.food-analysis .test-section button {
  background: #3498db;
  color: #ffffff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}
.food-analysis .test-section button:hover {
  background: rgb(33.1380753138, 125.1882845188, 186.8619246862);
}
.food-analysis .food-analysis-result {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.food-analysis .food-analysis-result .analyzed-food {
  text-align: center;
  margin-bottom: 2rem;
}
.food-analysis .food-analysis-result .analyzed-food h3 {
  margin-bottom: 1rem;
  color: #34495e;
}
.food-analysis .food-analysis-result .analyzed-food .nash-score {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 12px;
}
.food-analysis .food-analysis-result .analyzed-food .nash-score .score-number {
  font-size: 2rem;
  font-weight: bold;
  display: block;
}
.food-analysis .food-analysis-result .analyzed-food .nash-score .score-text {
  font-size: 1rem;
}
.food-analysis .food-analysis-result .analyzed-food .nash-score.positive {
  background: #d1f2eb;
  color: #27ae60;
}
.food-analysis .food-analysis-result .analyzed-food .nash-score.negative {
  background: #f8d7da;
  color: #e74c3c;
}
.food-analysis .food-analysis-result .analyzed-food .nash-score.neutral {
  background: #fff3cd;
  color: #f39c12;
}
.food-analysis .food-analysis-result .analysis-details h4 {
  margin-bottom: 1rem;
  color: #34495e;
}
.food-analysis .food-analysis-result .analysis-details ul {
  margin: 0;
  padding-left: 1.5rem;
}
.food-analysis .food-analysis-result .analysis-details ul li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.btn-primary {
  background: #2ecc71;
  color: #ffffff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background: rgb(36.616, 162.384, 89.948);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #ecf0f1;
  color: #34495e;
  border: 2px solid #34495e;
  padding: 1rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  background: #34495e;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-small {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-small.btn-danger {
  background: #e74c3c;
  color: #ffffff;
}
.btn-small.btn-danger:hover {
  background: rgb(213.698630137, 43.8356164384, 26.301369863);
}
.btn-small.btn-primary {
  background: #2ecc71;
  color: #ffffff;
}
.btn-small.btn-primary:hover {
  background: rgb(36.616, 162.384, 89.948);
}

.loading {
  text-align: center;
  padding: 2rem;
  color: #6c757d;
}

.message {
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}
.message.success {
  background: #d1f2eb;
  color: #27ae60;
}
.message.error {
  background: #f8d7da;
  color: #e74c3c;
}
.message.info {
  background: #d1ecf1;
  color: #3498db;
}

footer {
  background: #34495e;
  color: #ffffff;
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
}
footer p {
  opacity: 0.8;
}

@media screen and (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  header h1 {
    font-size: 2rem;
  }
  .disease-cards {
    grid-template-columns: 1fr;
  }
  .search-box {
    flex-direction: column;
  }
  .search-box .btn-barcode {
    order: -1;
  }
  .search-results {
    grid-template-columns: 1fr;
  }
  .modal .modal-content {
    width: 95%;
    margin: 2% auto;
  }
  .modal-body {
    padding: 1rem;
  }
  #barcode-scanner #barcode-video {
    height: 250px;
  }
  .scanner-controls {
    flex-direction: column;
  }
  .modal-actions {
    flex-direction: column;
  }
  .barcode-info {
    justify-content: center;
  }
  .admin-form .form-grid {
    grid-template-columns: 1fr;
  }
  .food-management .add-food-form .form-grid {
    grid-template-columns: 1fr;
  }
  .effects-grid {
    grid-template-columns: 1fr;
  }
  .foods-grid {
    grid-template-columns: 1fr;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .filter-section {
    flex-direction: column;
  }
  .food-filters {
    flex-direction: column;
  }
  .test-section {
    flex-direction: column;
  }
  .nash-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .dynamic-recommendations .recommendations-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .scored-food {
    flex-direction: column;
    text-align: center;
  }
  .scored-food .score {
    margin-top: 1rem;
  }
}

/*# sourceMappingURL=style.css.map */
