/* =============================================================================
   MEAL FINDER STYLES
   ============================================================================= */

#meal-finder {
  padding: 3rem 0;
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.05), rgba(76, 175, 80, 0.05));
}

.meal-finder-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  margin: 0 auto;
  max-width: 1000px;
}

.meal-finder-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.meal-finder-header h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.meal-finder-header h2 i {
  color: var(--primary);
}

.meal-finder-tagline {
  font-size: 1.1rem;
  color: #666;
  margin: 0;
}

/* Form Styles */
.meal-finder-form {
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1.5rem;
  align-items: end;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.button-group {
  justify-content: flex-end;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-group label i {
  color: var(--primary);
  width: 16px;
}

.form-group input,
.form-group select {
  padding: 0.8rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  height: 48px;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.find-meals-button {
  background: linear-gradient(135deg, var(--primary), #1976D2);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  min-height: 48px;
}

.find-meals-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #1976D2, #1565C0);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.find-meals-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Loading Styles - App-like 3-dot animation */
.meal-loading {
  text-align: center;
  padding: 3rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loading-icon-container {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.1), rgba(255, 152, 0, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 2px solid rgba(255, 152, 0, 0.2);
}

.loading-icon {
  font-size: 2rem;
  color: var(--primary);
}

.loading-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 1rem;
}

.loading-dots-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  height: 20px;
}

.loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
  animation: jumpingDot 1.8s infinite;
}

.loading-dot:nth-child(1) {
  animation-delay: 0s;
}

.loading-dot:nth-child(2) {
  animation-delay: 0.3s;
}

.loading-dot:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes jumpingDot {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  30% {
    transform: translateY(-12px);
    opacity: 1;
  }
}

.loading-message {
  font-size: 1rem;
  color: var(--text);
  opacity: 0.8;
  max-width: 300px;
  line-height: 1.4;
  transition: opacity 0.3s ease;
}

/* Keep old spinner for backward compatibility */
.meal-loading .loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(33, 150, 243, 0.1);
  border-left-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.meal-loading p {
  color: #666;
  font-size: 1.1rem;
}

/* Results Styles */
.meal-results {
  margin-top: 2rem;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
}

/* Results disclaimer */
.results-disclaimer {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  margin-bottom: 2rem;
}

.results-disclaimer p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.results-disclaimer i {
  color: #999;
}

.results-header {
  text-align: center;
  margin-bottom: 2rem;
}

.results-header h3 {
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.results-header h3 i {
  color: #FFD700;
}

.results-header p {
  color: #666;
  margin: 0;
}

.meals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.meal-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  margin-bottom: 2rem;
}

.meal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

/* Match Score Badge (like app) */
.match-score-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #FF9800;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 4px;
}

.match-score-text {
  font-weight: bold;
}

.match-score-label {
  font-size: 12px;
  opacity: 0.9;
  font-weight: 500;
}

/* Image watermark */
.image-watermark {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 500;
  z-index: 5;
  opacity: 0.8;
}

/* Meal Image */
.meal-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f5f5f5;
  position: relative;
}

.meal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.meal-card:hover .meal-image img {
  transform: scale(1.05);
}

/* Dietary Tags */
.dietary-tags {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
}

.dietary-tag {
  background: rgba(76, 175, 80, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

/* Nutrition Section (like app's macro info) */
.nutrition-section {
  padding: 16px;
  background: rgba(33, 150, 243, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nutrition-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px 0;
}

.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.nutrition-item {
  text-align: center;
}

.nutrition-label {
  display: block;
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 4px;
  font-weight: 500;
}

.nutrition-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

/* Meal Details */
.meal-details {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.meal-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.8rem 0;
  color: var(--text);
  line-height: 1.3;
}

.restaurant-info {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.restaurant-info i {
  color: var(--primary);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.restaurant-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.restaurant-name {
  font-weight: 600;
  color: var(--text);
}

.restaurant-address {
  font-size: 0.8rem;
  color: #888;
  line-height: 1.3;
}

.meal-description {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* Why It Fits Your Goals Section */
.why-fits-goals {
  background: rgba(76, 175, 80, 0.05);
  border-left: 3px solid var(--secondary);
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 0 8px 8px 0;
}

.why-fits-goals h6 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.why-fits-goals p {
  font-size: 0.85rem;
  color: #555;
  margin: 0;
  line-height: 1.4;
}

.nutrition-info {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0.8rem;
  background: rgba(33, 150, 243, 0.05);
  border-radius: 8px;
}

.nutrition-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nutrition-label {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.2rem;
}

.nutrition-value {
  font-weight: 600;
  color: var(--primary);
}

.meal-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.meal-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 1rem;
}

.perfect-it-btn,
.get-app-btn {
  flex: 1;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.perfect-it-btn {
  background: linear-gradient(135deg, var(--accent), #F57C00);
  color: white;
}

.perfect-it-btn:hover {
  background: linear-gradient(135deg, #F57C00, #E65100);
  transform: translateY(-1px);
}

.get-app-btn {
  background: linear-gradient(135deg, var(--secondary), #388E3C);
  color: white;
}

.get-app-btn:hover {
  background: linear-gradient(135deg, #388E3C, #2E7D32);
  transform: translateY(-1px);
}

/* Results Footer */
.results-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.upgrade-prompt {
  text-align: center;
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.05), rgba(76, 175, 80, 0.05));
  padding: 2rem;
  border-radius: 12px;
}

.upgrade-prompt h4 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.upgrade-prompt h4 i {
  color: var(--accent);
}

.upgrade-prompt p {
  color: #666;
  margin-bottom: 1.5rem;
}

.app-download-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.app-download-buttons .app-store-button img {
  height: 50px;
  transition: transform 0.3s ease;
}

.app-download-buttons .app-store-button:hover img {
  transform: scale(1.05);
}

/* Perfect It Modal */
.perfect-it-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  padding: 1rem;
  box-sizing: border-box;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.perfect-it-modal .modal-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.perfect-it-modal .modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.perfect-it-modal .modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.perfect-it-modal .modal-header h3 i {
  color: var(--accent);
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #999;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: #f0f0f0;
  color: #666;
}

.perfect-it-modal .modal-body {
  padding: 1.5rem;
}

.perfect-it-suggestions {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.perfect-it-suggestions li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 0;
  color: #555;
}

.perfect-it-suggestions li i {
  color: var(--secondary);
  font-size: 0.9rem;
}

.modal-cta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}

.modal-cta p {
  margin-bottom: 1rem;
  color: #666;
}

.modal-cta .get-app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto;
}

/* Error Styles */
.meal-finder-error {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.3);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #d32f2f;
}

.meal-finder-error i {
  color: #f44336;
}

/* Perfect It Loading */
.perfect-it-loading {
  text-align: center;
  padding: 2rem 1rem;
}

.perfect-it-loading h4 {
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.perfect-it-loading .loading-message {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Perfect It Sections */
.perfect-it-section {
  margin-bottom: 1.5rem;
}

.perfect-it-section h4 {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}

.perfect-it-section h4 i {
  color: var(--primary);
}

.perfect-it-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}

.perfect-it-benefits li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text);
  line-height: 1.4;
}

.perfect-it-benefits li:last-child {
  border-bottom: none;
}

.perfect-it-benefits li i {
  color: #2196F3;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

/* Perfect It Note */
.perfect-it-note {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}

/* Before/After Nutrition Comparison */
.perfect-it-modal .nutrition-before-after {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.perfect-it-modal .nutrition-column {
  flex: 1;
}

.perfect-it-modal .nutrition-column h5 {
  margin: 0 0 0.75rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  text-align: center;
}

.perfect-it-modal .nutrition-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.perfect-it-modal .nutrition-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #28a745;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.perfect-it-modal .nutrition-value.before {
  color: #6c757d;
}

.perfect-it-modal .nutrition-value.after {
  color: #28a745;
  font-weight: 600;
}

/* Nutrition Comparison */
.nutrition-comparison {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
}

.nutrition-comparison .nutrition-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nutrition-comparison .nutrition-label {
  font-weight: 500;
  color: var(--text);
}

.nutrition-comparison .nutrition-value {
  font-weight: bold;
  color: #1976D2;
}

@media (min-width: 480px) {
  .nutrition-comparison {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Utility Classes */
.hidden {
  display: none !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .meal-finder-card {
    padding: 1.5rem;
    margin: 0 1rem;
  }
  
  .meal-finder-header h2 {
    font-size: 1.8rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .find-meals-button {
    width: 100%;
    justify-content: center;
    margin-top: 0;
  }
  
  .meals-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .nutrition-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .nutrition-item {
    margin-bottom: 8px;
  }
  
  .meal-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .app-download-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .perfect-it-modal .modal-content {
    width: 95%;
    margin: 1rem auto; /* Center the modal horizontally */
  }
  
  /* Mobile responsive for before/after nutrition */
  .perfect-it-modal .nutrition-before-after {
    flex-direction: column;
    gap: 1rem;
  }
  
  .perfect-it-modal .nutrition-arrow {
    transform: rotate(90deg);
  }
  
  .match-score-badge {
    /* Keep as overlay on all screen sizes like the app */
    font-size: 16px;
    padding: 10px 18px;
    border-radius: 24px;
  }
  
  .dietary-tags {
    position: static;
    margin-bottom: 8px;
  }
}

@media (max-width: 480px) {
  .meal-finder-header h2 {
    font-size: 1.6rem;
    flex-direction: column;
    gap: 0.3rem;
  }
  
  .results-header h3 {
    font-size: 1.5rem;
    flex-direction: column;
    gap: 0.3rem;
  }
  
  .nutrition-info {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .nutrition-item {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Health Benefits */
.health-benefits {
  margin: 16px 0;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #4CAF50;
}

.health-benefits h6 {
  margin: 0 0 12px 0;
  color: #4CAF50;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.health-benefits ul {
  margin: 0;
  padding-left: 20px;
  list-style-type: disc;
}

.health-benefits li {
  margin: 6px 0;
  color: #555;
  line-height: 1.4;
}

/* Ingredients Section */
.ingredients-section {
  margin: 16px 0;
}

.ingredients-section h6 {
  margin: 0 0 12px 0;
  color: #333;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ingredients-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ingredient-tag {
  background: #e3f2fd;
  color: #1976d2;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #bbdefb;
}

/* Meal Price */
.meal-price {
  background: #4CAF50;
  color: white;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
  margin-left: auto;
}

/* === RESPONSIVE MEAL CARDS LAYOUT === */

/* Meal Container - holds all cards for one meal */
.meal-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* Responsive breakpoints */
@media (min-width: 768px) {
  .meal-container {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .meal-container {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
  }
}

/* Base Card Styles - Applied to all cards */
.image-card,
.nutrition-card,
.title-card,
.benefits-card,
.goals-card,
.ingredients-card,
.actions-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  overflow: hidden;
}

/* Image Card */
.image-card {
  position: relative;
}

.meal-image-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}

.meal-image-placeholder i {
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.6;
}

.meal-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* Nutrition Card */
.nutrition-card {
  padding: 1rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--text);
  margin: 0;
  text-align: left;
  flex: 1;
}

/* Center the nutrition card title specifically */
.nutrition-card .card-title {
  text-align: center;
}

.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.nutrition-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.nutrition-value {
  white-space: nowrap; /* Prevent wrapping of value + unit */
  font-weight: bold;
  color: #1976D2;
}

.nutrition-label {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

/* Keep 2x2 grid on all screen sizes for better balance */
@media (min-width: 480px) {
  .nutrition-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
  }
}
  
  .card-title {
    font-size: 1.2rem;
  }

@media (min-width: 768px) {
  .nutrition-card {
    padding: 1.5rem;
  }
}

.nutrition-item {
  text-align: center;
}

.nutrition-label {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
  font-weight: 500;
}

.nutrition-value {
  display: block;
  font-size: 18px;
  font-weight: bold;
  color: #1976D2;
}

/* Title Card */
.title-card {
  padding: 1rem;
}

.meal-name {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--text);
  margin: 0 0 0.8rem 0;
  line-height: 1.3;
  text-align: center;
}

/* Responsive title sizing */
@media (min-width: 480px) {
  .meal-name {
    font-size: 1.5rem;
  }
}

@media (min-width: 768px) {
  .title-card {
    padding: 1.5rem;
  }
  
  .meal-name {
    font-size: 1.6rem;
  }
}

.restaurant-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.restaurant-info i {
  color: var(--primary);
}

.restaurant-name {
  font-weight: 500;
}

.restaurant-address {
  color: #888;
  font-size: 14px;
  margin-left: 4px;
}

.meal-price {
  background: #4CAF50;
  color: white;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  margin: 8px 0;
}

.meal-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  margin: 12px 0 0 0;
}

/* Colored Cards - Benefits, Goals, Ingredients */
.benefits-card,
.goals-card,
.ingredients-card {
  padding: 1rem;
}

.benefits-card {
  background: rgba(76, 175, 80, 0.05);
  border: 1px solid rgba(76, 175, 80, 0.2);
  border-left: 4px solid #4CAF50;
}

/* Responsive colored card padding */
@media (min-width: 768px) {
  .benefits-card,
  .goals-card,
  .ingredients-card {
    padding: 1.5rem;
  }
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  margin-left: 0;
  padding-left: 0;
  justify-content: flex-start;
  width: 100%;
}

.card-icon {
  font-size: 18px;
}

.benefits-card .card-icon {
  color: #4CAF50;
}

.card-content {
  margin-left: 0;
  padding-left: 0;
}

.benefit-item {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 8px;
  margin-left: 0;
  padding-left: 0;
}

.goals-card {
  background: rgba(33, 150, 243, 0.05);
  border: 1px solid rgba(33, 150, 243, 0.2);
  border-left: 4px solid #2196F3;
}

.goals-card .card-icon {
  color: #2196F3;
}

.goals-card .card-content {
  margin-left: 0;
  padding-left: 0;
}

.goals-card .card-header {
  margin-left: 0;
  padding-left: 0;
  justify-content: flex-start;
  text-align: left;
}

.goals-card .card-title {
  text-align: left;
  margin: 0;
}

.goals-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
  margin-left: 0;
  padding-left: 0;
}

.ingredients-card {
  background: rgba(156, 39, 176, 0.05);
  border: 1px solid rgba(156, 39, 176, 0.2);
  border-left: 4px solid #9C27B0;
}

.ingredients-card .card-icon {
  color: #9C27B0;
}

.ingredients-card .card-content {
  margin-left: 0;
  padding-left: 0;
}

.ingredients-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: 0;
  padding-left: 0;
}

.ingredient-tag {
  background: #e3f2fd;
  color: #1976d2;
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #bbdefb;
}

/* Actions Card */
.actions-card {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* Keep actions stacked on all screen sizes like mobile app */

@media (min-width: 768px) {
  .actions-card {
    padding: 1.5rem;
  }
}

.perfect-it-btn,
.get-app-btn {
  flex: 1;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px; /* Touch-friendly minimum */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0; /* Allow flex items to shrink */
}

/* Responsive button sizing - keep full width like mobile */
@media (min-width: 480px) {
  .perfect-it-btn,
  .get-app-btn {
    font-size: 0.95rem;
    padding: 0.9rem 1rem;
  }
}

@media (min-width: 768px) {
  .perfect-it-btn,
  .get-app-btn {
    font-size: 1rem;
    padding: 1rem 1.2rem;
  }
}

.perfect-it-btn {
  background: linear-gradient(135deg, #FF9800, #F57C00);
  color: white;
}

.perfect-it-btn:hover {
  background: linear-gradient(135deg, #F57C00, #E65100);
  transform: translateY(-1px);
}

.get-app-btn {
  background: linear-gradient(135deg, #4CAF50, #388E3C);
  color: white;
}

.get-app-btn:hover {
  background: linear-gradient(135deg, #388E3C, #2E7D32);
  transform: translateY(-1px);
}

/* ZIP Not Found Styles */
.zip-not-found-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  padding: 20px;
}

.zip-not-found-card,
.zip-processing-card,
.zip-success-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 100%;
  text-align: center;
}

.zip-not-found-header,
.zip-processing-header,
.zip-success-header {
  margin-bottom: 20px;
}

.zip-not-found-header i,
.zip-processing-header i,
.zip-success-header i {
  font-size: 48px;
  color: #007bff;
  margin-bottom: 15px;
  display: block;
}

.zip-processing-header i {
  color: #ffc107;
}

.zip-success-header i {
  color: #28a745;
}

.zip-not-found-header h3,
.zip-processing-header h3,
.zip-success-header h3 {
  margin: 0;
  color: #333;
  font-size: 24px;
  font-weight: 600;
}

.zip-not-found-content,
.zip-processing-content,
.zip-success-content {
  margin-bottom: 25px;
  color: #666;
  line-height: 1.6;
}

.zip-not-found-content p,
.zip-processing-content p,
.zip-success-content p {
  margin: 10px 0;
}

.zip-not-found-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

.add-zip-btn,
.continue-without-email-btn,
.submit-email-btn,
.try-again-btn,
.back-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.add-zip-btn {
  background: #007bff;
  color: white;
}

.add-zip-btn:hover {
  background: #0056b3;
  transform: translateY(-1px);
}

.continue-without-email-btn {
  background: #28a745;
  color: white;
}

.continue-without-email-btn:hover {
  background: #1e7e34;
  transform: translateY(-1px);
}

.try-again-btn {
  background: #007bff;
  color: white;
}

.try-again-btn:hover {
  background: #0056b3;
  transform: translateY(-1px);
}

.back-btn {
  background: #6c757d;
  color: white;
}

.back-btn:hover {
  background: #545b62;
}

/* Nearby ZIP Codes Section */
.nearby-zips-section {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid #e9ecef;
}

.nearby-zips-section h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nearby-zips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin-top: 20px;
  justify-content: center;
}

/* Manual ZIP Input Styles */
.manual-zip-input {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.manual-zip-input input {
  flex: 1;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.manual-zip-input input:focus {
  outline: none;
  border-color: var(--primary);
}

.search-manual-zip-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.3s ease;
}

.search-manual-zip-btn:hover {
  background: var(--primary-dark);
}

.back-btn {
  background: #6c757d;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.3s ease;
}

.back-btn:hover {
  background: #5a6268;
}

.nearby-zip-btn {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 16px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.nearby-zip-btn:hover {
  background: #e9ecef;
  border-color: #007bff;
  transform: translateY(-1px);
}

.zip-code {
  display: block;
  font-weight: 600;
  color: #007bff;
  font-size: 16px;
}

.zip-city {
  display: block;
  font-size: 12px;
  color: #6c757d;
  margin-top: 4px;
}

/* Email Collection Expanded */
.email-collection-expanded {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.email-input-section {
  text-align: left;
}

.email-input-section label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #333;
  font-weight: 500;
}

.email-input-group {
  display: flex;
  gap: 10px;
}

.email-input {
  flex: 1;
  padding: 12px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.email-input:focus {
  outline: none;
  border-color: #007bff;
}

.submit-email-btn {
  background: #007bff;
  color: white;
  white-space: nowrap;
}

.submit-email-btn:hover {
  background: #0056b3;
}

.email-collection-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Processing Progress */
.processing-progress {
  margin: 20px 0;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #007bff, #0056b3);
  width: 0%;
  animation: progressFill 3s ease-in-out infinite;
}

@keyframes progressFill {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

.progress-text {
  color: #6c757d;
  font-size: 14px;
  margin: 0;
}

.email-confirmation {
  background: rgba(33, 150, 243, 0.1);
  color: #2196f3;
  padding: 10px;
  border-radius: 6px;
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Mobile Responsive for ZIP Not Found */
@media (max-width: 480px) {
  .zip-not-found-container {
    padding: 15px;
    min-height: 300px;
  }
  
  .zip-not-found-card,
  .zip-processing-card,
  .zip-success-card {
    padding: 20px;
  }
  
  .zip-not-found-header h3,
  .zip-processing-header h3,
  .zip-success-header h3 {
    font-size: 20px;
  }
  
  .nearby-zips-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .email-input-group {
    flex-direction: column;
  }
  
  .submit-email-btn {
    width: 100%;
  }
}

/* Processing Status Styles */
.zip-processing-status {
  padding: 2rem 0;
}

.processing-status-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin: 0 auto;
  max-width: 600px;
}

.processing-status-header {
  text-align: center;
  margin-bottom: 2rem;
}

.processing-status-header i {
  color: #2196F3;
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.processing-status-header h3 {
  color: #333;
  font-size: 1.5rem;
  margin: 0;
}

.processing-status-content p {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.processing-progress-detailed {
  margin-bottom: 2rem;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.progress-text {
  color: #333;
  font-weight: 500;
}

.progress-percentage {
  color: #2196F3;
  font-weight: 600;
  font-size: 1.1rem;
}

.progress-bar-container {
  width: 100%;
  height: 12px;
  background: #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #2196F3);
  border-radius: 6px;
  transition: width 0.3s ease;
}

.time-remaining {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #666;
  font-size: 1rem;
}

.time-remaining i {
  color: #FF9800;
}

.processing-status-actions {
  text-align: center;
  margin-top: 2rem;
}

.refresh-status-btn {
  background: linear-gradient(135deg, #2196F3, #1976D2);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.refresh-status-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
}

/* Partial Results Banner */
.partial-results-banner {
  margin-bottom: 2rem;
}

/* Expansion Offer Banner */
.expansion-offer-banner {
  margin-bottom: 2rem;
}

.expansion-banner-content {
  background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
  border: 1px solid #FF9800;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.expansion-banner-content i {
  color: #FF9800;
  font-size: 1.2rem;
  margin-right: 0.75rem;
}

.expansion-banner-text {
  flex: 1;
}

.expansion-banner-text strong {
  display: block;
  color: #E65100;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.expansion-banner-text span {
  color: #BF360C;
  font-size: 0.95rem;
}

.nearby-zip-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.nearby-zip-btn {
  background: linear-gradient(135deg, #FF9800, #F57C00);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.nearby-zip-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
  background: linear-gradient(135deg, #F57C00, #E65100);
}

/* Immediate Expansion Banner */
.immediate-expansion-banner {
  margin-bottom: 2rem;
  transition: opacity 0.3s ease;
}

.immediate-expansion-banner .expansion-banner-content {
  background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
  border: 1px solid #2196F3;
}

.immediate-expansion-banner .expansion-banner-content i {
  color: #2196F3;
}

.immediate-expansion-banner .expansion-banner-text strong {
  color: #1565C0;
}

.immediate-expansion-banner .expansion-banner-text span {
  color: #1976D2;
}

.immediate-zip-btn {
  background: linear-gradient(135deg, #2196F3, #1976D2);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.immediate-zip-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
  background: linear-gradient(135deg, #1976D2, #1565C0);
}

.immediate-zip-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Future Expansion Banner - reuse existing ZIP selection styles */

.future-expansion-banner .expansion-banner-content i {
  color: #4CAF50;
}

.future-expansion-banner .expansion-banner-text strong {
  color: #2E7D32;
}

.future-expansion-banner .expansion-banner-text span {
  color: #388E3C;
}

.future-zip-btn {
  background: linear-gradient(135deg, #4CAF50, #388E3C);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.future-zip-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
  background: linear-gradient(135deg, #388E3C, #2E7D32);
}

.future-zip-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.dismiss-expansion-btn {
  background: transparent;
  color: #666;
  border: 1px solid #ddd;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  align-self: flex-start;
}

.dismiss-expansion-btn:hover {
  background: #f5f5f5;
  border-color: #999;
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10000;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 400px;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification.success {
  border-left: 4px solid #4CAF50;
}

.notification.success i {
  color: #4CAF50;
}

.notification.error {
  border-left: 4px solid #f44336;
}

.notification.error i {
  color: #f44336;
}

.notification.info {
  border-left: 4px solid #2196f3;
}

.notification.info i {
  color: #2196f3;
}

/* ZIP Selection Interface - Individual Cards */
.zip-selection-section {
  margin-top: 1.5rem;
}

.zip-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.zip-checkbox-item {
  background: white;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zip-checkbox-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.zip-checkbox-item.checked {
  border-color: #2196f3;
  background: linear-gradient(135deg, #f3f9ff, #e8f4fd);
}

.zip-checkbox-item.disabled {
  opacity: 0.5;
  background: #f8f9fa;
  border-color: #e9ecef;
  cursor: not-allowed;
}

.zip-checkbox-item.disabled:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.zip-checkbox-item.disabled input[type="checkbox"] {
  cursor: not-allowed;
}

.zip-checkbox-item.disabled label,
.zip-checkbox-item label.disabled-label {
  cursor: not-allowed;
  color: #6c757d;
}

.zip-checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2196f3;
  cursor: pointer;
  margin-right: 0.75rem;
}

.zip-checkbox-item label {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  flex: 1;
  margin: 0;
  gap: 0.5rem;
}

.zip-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.zip-code {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 0.95rem;
}

.zip-city {
  color: #666;
  font-size: 0.8rem;
}

.zip-count {
  background: linear-gradient(135deg, #2196f3, #1976d2);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  align-self: flex-start;
}

.zip-selection-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
}

.select-all-btn {
  background: white;
  color: #666;
  border: 2px solid #e0e0e0;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.select-all-btn:hover {
  border-color: #2196f3;
  color: #2196f3;
  transform: translateY(-1px);
}

.add-selected-btn {
  background: linear-gradient(135deg, #2196f3, #1976d2);
  color: white;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.add-selected-btn:hover {
  background: linear-gradient(135deg, #1976d2, #1565c0);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.add-selected-btn:disabled {
  background: #e0e0e0;
  color: #999;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Multiple ZIP Addition Styles */
.selected-zips-summary {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 0.75rem;
  margin: 0.75rem 0;
  font-size: 0.9rem;
  color: #495057;
}

.processing-zips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
  justify-content: center;
}

.processing-zip-badge {
  background: linear-gradient(135deg, #2196f3, #1976d2);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.zip-processing-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  padding: 2rem;
}

.zip-processing-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 500px;
  width: 100%;
}

.zip-processing-header h3 {
  color: #2c3e50;
  margin: 1rem 0 0.5rem 0;
  font-size: 1.5rem;
}

.processing-icon {
  font-size: 3rem;
  color: #2196f3;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.search-different-btn {
  background: linear-gradient(135deg, #2196f3, #1976d2);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
  margin-top: 1.5rem;
}

.search-different-btn:hover {
  background: linear-gradient(135deg, #1976d2, #1565c0);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.partial-banner-content {
  background: linear-gradient(135deg, #FFF3CD, #FCF4A3);
  border: 1px solid #FFC107;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

.partial-banner-content i {
  color: #FF8F00;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.partial-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.partial-banner-text strong {
  color: #E65100;
  font-size: 1.1rem;
}

.partial-banner-text span {
  color: #BF360C;
  font-size: 0.95rem;
}

.refresh-for-more-btn {
  background: linear-gradient(135deg, #FF9800, #F57C00);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.refresh-for-more-btn i,
.refresh-for-more-btn .refresh-icon {
  margin-right: 0.5rem;
}

.refresh-for-more-btn .refresh-icon {
  display: inline-block;
  font-size: 1em;
}

/* Force Font Awesome font on the icon with Unicode fallback */
.refresh-for-more-btn .fas {
  font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free' !important;
  font-weight: 900 !important;
}

/* Alternative: Use Unicode character directly if Font Awesome fails */
.refresh-for-more-btn .fas.fa-sync-alt::before {
  content: "\f2f1" !important;
  font-family: 'Font Awesome 6 Free' !important;
  font-weight: 900 !important;
}

.refresh-for-more-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

@media (max-width: 768px) {
  .partial-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .refresh-for-more-btn {
    align-self: center;
  }
}

/* Desktop modal centering */
@media (min-width: 769px) {
  .perfect-it-modal {
    align-items: center;
    justify-content: center;
  }
  
  .perfect-it-modal .modal-content {
    width: 80%;
    max-width: 600px;
    margin: 0;
  }
}

.zip-success-header h3 {
  color: #333;
  margin: 0;
  font-size: 1.5rem;
}

.zip-success-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.zip-success-content p {
  color: #555;
  font-size: 1.1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Mobile-friendly email display */
.email-address {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 10px 0;
  font-family: 'Courier New', monospace;
  color: #495057;
  text-align: center;
}

.email-address strong {
  word-break: break-all;
  font-weight: 600;
  color: #2196f3;
}

@media (max-width: 768px) {
  .zip-success-content p {
    font-size: 1rem;
    line-height: 1.5;
    padding: 0 10px;
  }
  
  .zip-success-content p strong {
    font-size: 0.95rem;
  }
  
  /* Better mobile spacing for ZIP processing screens */
  .zip-processing-content,
  .zip-success-content {
    padding: 0 15px;
  }
  
  .processing-zips-list {
    margin: 1rem 0;
  }
  
  .processing-zip-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
  }
  
  /* Mobile email address styling */
  .email-address {
    margin: 15px 10px;
    padding: 10px 12px;
    font-size: 0.9rem;
  }
}
