/* Fuente Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

/* Variables CSS */
:root {
  --primary-green: #4a7c59;
  --secondary-green: #6b9b7a;
  --light-green: #a8d5ba;
  --accent-orange: #f4a261;
  --warm-beige: #f4f1e8;
  --soft-cream: #faf8f3;
  --text-dark: #2d3436;
  --text-light: #636e72;
  --success: #00b894;
  --warning: #fdcb6e;
  --danger: #e17055;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
  --border-radius: 16px;
  --border-radius-small: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Responsive variables */
  --container-max-width: 1200px;
  --sidebar-width: 280px;
  --header-height: 70px;
}

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, var(--soft-cream) 0%, var(--warm-beige) 100%);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
}

/* Container responsivo */
.container-responsive {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Landing Page Styles */
.landing-page {
  background: linear-gradient(135deg, #a8e6cf 0%, #dcedc1 50%, #ffd3a5 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.landing-container {
  max-width: 500px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 40px 30px;
  box-shadow: var(--shadow-heavy);
  backdrop-filter: blur(10px);
}

.robot-container {
  margin-bottom: 30px;
}

.robot-avatar {
  width: 80px;
  height: 80px;
  background: var(--primary-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  animation: float 3s ease-in-out infinite;
}

.robot-avatar i {
  font-size: 40px;
  color: white;
}

.farmer-hat {
  position: absolute;
  top: -10px;
  font-size: 24px;
  animation: bounce 2s ease-in-out infinite;
}

.hero-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.brand-name {
  color: var(--primary-green);
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 8px;
}

.hero-description {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 30px;
}

.cta-section {
  margin-bottom: 30px;
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  color: white;
  padding: 16px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
  border: none;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
  color: white;
}

.features-preview {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(74, 124, 89, 0.1);
  border-radius: var(--border-radius-small);
  font-size: 14px;
  color: var(--text-dark);
}

.feature-item i {
  color: var(--primary-green);
  font-size: 18px;
}

/* Floating elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cloud,
.sun {
  position: absolute;
  font-size: 24px;
  animation: float 4s ease-in-out infinite;
}

.cloud-1 {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}
.cloud-2 {
  top: 20%;
  right: 15%;
  animation-delay: 1s;
}
.cloud-3 {
  bottom: 30%;
  left: 20%;
  animation-delay: 2s;
}
.sun {
  top: 15%;
  right: 10%;
  animation-delay: 0.5s;
}

/* Chat Page Styles */
.chat-page {
  background: var(--soft-cream);
  min-height: 100vh;
}

.chat-container-modern {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  margin: 0 auto;
  background: white;
}

.chat-header {
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.back-btn {
  background: rgba(60, 66, 64, 0.2);
  border: none;
  color: #624c4c;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

.bot-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bot-avatar {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.bot-avatar i {
  font-size: 20px;
}

.status-indicator {
  width: 12px;
  height: 12px;
  background: var(--success);
  border-radius: 50%;
  position: absolute;
  bottom: 2px;
  right: 2px;
  border: 2px solid white;
}

.bot-details h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.bot-details .status {
  font-size: 12px;
  opacity: 0.8;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.action-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: var(--soft-cream);
  max-height: calc(100vh - 200px);
}

.message-wrapper {
  display: flex;
  margin-bottom: 20px;
  align-items: flex-end;
  gap: 10px;
  max-width: 100%;
}

.message-wrapper.user-message {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.message-wrapper.bot-message .message-avatar {
  background: var(--primary-green);
  color: white;
}

.message-wrapper.user-message .message-avatar {
  background: var(--accent-orange);
  color: white;
}

.user-avatar {
  background: var(--accent-orange);
  color: white;
}

.message-content {
  max-width: 70%;
  word-wrap: break-word;
}

.message-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
  animation: messageSlide 0.3s ease-out;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.bot-message .message-bubble {
  background: white;
  color: var(--text-dark);
  border-bottom-left-radius: 6px;
  box-shadow: var(--shadow-light);
}

.user-message .message-bubble {
  background: var(--primary-green);
  color: white;
  border-bottom-right-radius: 6px;
}

.message-time {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
  text-align: center;
}

.typing-indicator {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 20px;
}

.typing-dots {
  background: white;
  padding: 12px 16px;
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  box-shadow: var(--shadow-light);
  display: flex;
  gap: 4px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  background: var(--text-light);
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

.quick-actions {
  padding: 15px 20px;
  background: white;
  border-top: 1px solid #eee;
}

.action-chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
  justify-content: center;
  flex-wrap: wrap;
}

.chip {
  background: var(--light-green);
  color: var(--primary-green);
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.chip:hover {
  background: var(--primary-green);
  color: white;
}

.chat-input-area {
  background: white;
  padding: 20px;
  border-top: 1px solid #eee;
  position: sticky;
  bottom: 0;
}

.input-form {
  margin-bottom: 10px;
}

.input-container {
  display: flex;
  align-items: center;
  background: var(--soft-cream);
  border-radius: 25px;
  padding: 8px;
  gap: 10px;
  max-width: 100%;
}

.attachment-btn,
.send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.attachment-btn {
  background: transparent;
  color: var(--text-light);
}

.send-btn {
  background: var(--primary-green);
  color: white;
}

.send-btn:hover {
  background: var(--secondary-green);
}

.message-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px;
  font-size: 14px;
  outline: none;
  min-width: 0;
}

.input-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.voice-btn,
.clear-btn {
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 18px;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition);
}

.voice-btn:hover,
.clear-btn:hover {
  color: var(--primary-green);
  background: var(--light-green);
}

/* Page Layout - Responsive */
.page-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
  padding: 20px;
  max-width: var(--container-max-width);
  margin: 0 auto;
  width: 100%;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 15px;
}

.page-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.refresh-btn,
.filter-btn,
.settings-btn,
.search-btn {
  background: rgba(255, 255, 255, 0.8);
  border: none;
  color: var(--text-dark);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-light);
}

.refresh-btn:hover,
.filter-btn:hover,
.settings-btn:hover,
.search-btn:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Grid Layouts - Responsive */
.grid-responsive {
  display: grid;
  gap: 20px;
  margin-bottom: 30px;
}

.grid-1 {
  grid-template-columns: 1fr;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Cards - Responsive */
.card-responsive {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  height: fit-content;
}

.card-responsive:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Weather Page Styles */
.weather-page {
  background: linear-gradient(135deg, #87ceeb 0%, #98fb98 100%);
  min-height: 100vh;
}

.weather-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 20px;
}

.weather-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 30px;
}

.weather-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius);
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-medium);
  backdrop-filter: blur(10px);
}

.current-weather {
  text-align: center;
  grid-column: 1 / -1;
}

.weather-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 14px;
}

.weather-icon {
  font-size: 40px;
  color: var(--accent-orange);
}

.temperature {
  font-size: 64px;
  font-weight: 300;
  color: var(--text-dark);
  margin: 20px 0;
}

.temp-value {
  font-weight: 700;
}

.temp-unit {
  font-size: 24px;
  color: var(--text-light);
}

.weather-description p {
  margin: 5px 0;
  color: var(--text-dark);
}

.feels-like {
  color: var(--text-light);
  font-size: 14px;
}

.weather-details {
  display: grid;
  gap: 15px;
  margin-bottom: 30px;
}

.detail-item {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--shadow-light);
}

.detail-icon {
  width: 40px;
  height: 40px;
  background: var(--light-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  flex-shrink: 0;
}

.detail-info {
  flex: 1;
  min-width: 0;
}

.detail-label {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.detail-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
}

.agro-recommendations {
  margin-bottom: 30px;
}

.agro-recommendations h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.recommendation-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.recommendation-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.recommendation-card.positive {
  border-left: 4px solid var(--success);
}

.recommendation-card.warning {
  border-left: 4px solid var(--warning);
}

.recommendation-card.featured {
  border: 2px solid var(--accent-orange);
  background: rgba(255, 255, 255, 1);
}

.rec-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.positive .rec-icon {
  background: rgba(0, 184, 148, 0.1);
  color: var(--success);
}

.warning .rec-icon {
  background: rgba(253, 203, 110, 0.1);
  color: var(--warning);
}

.rec-content {
  flex: 1;
}

.rec-content h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-dark);
}

.rec-content p {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
}

.forecast-section {
  margin-bottom: 30px;
}

.forecast-section h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.forecast-list {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--shadow-light);
}

.forecast-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.forecast-item:last-child {
  border-bottom: none;
}

.forecast-item .day {
  font-weight: 500;
  color: var(--text-dark);
  min-width: 80px;
}

.forecast-item .weather-icon {
  font-size: 20px;
  color: var(--accent-orange);
}

.temp-range {
  font-weight: 500;
  color: var(--text-dark);
}

/* Recommendations Page Styles */
.recommendations-page {
  background: linear-gradient(135deg, #ffe5b4 0%, #ffcc70 100%);
  min-height: 100vh;
}

.recommendations-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 20px;
}

.filters-section {
  margin-bottom: 20px;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.filters-section.active {
  max-height: 200px;
}

.filter-chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-chip {
  background: rgba(255, 255, 255, 0.7);
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
  color: var(--text-dark);
}

.filter-chip.active,
.filter-chip:hover {
  background: var(--primary-green);
  color: white;
}

.season-banner {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-light);
}

.season-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.season-info i {
  font-size: 24px;
  color: var(--primary-green);
}

.season-info h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-dark);
}

.season-info p {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
}

.recommendations-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 30px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.crop-icon {
  font-size: 40px;
}

.priority-badge {
  background: var(--accent-orange);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.card-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.crop-description {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 15px;
}

.crop-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dark);
}

.detail i {
  color: var(--primary-green);
  width: 16px;
  flex-shrink: 0;
}

.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-outline-modern {
  flex: 1;
  min-width: 120px;
  padding: 12px;
  border: 2px solid var(--primary-green);
  background: transparent;
  color: var(--primary-green);
  border-radius: var(--border-radius-small);
  font-weight: 500;
  transition: var(--transition);
  text-align: center;
}

.btn-outline-modern:hover {
  background: var(--primary-green);
  color: white;
}

.fertilizer-section,
.rotation-section {
  margin-bottom: 30px;
}

.fertilizer-section h3,
.rotation-section h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.fertilizer-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.fertilizer-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--shadow-light);
}

.fertilizer-icon {
  width: 50px;
  height: 50px;
  background: var(--light-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  font-size: 20px;
  flex-shrink: 0;
}

.fertilizer-info {
  flex: 1;
}

.fertilizer-info h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-dark);
}

.fertilizer-info p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 5px;
}

.application-rate {
  font-size: 12px;
  color: var(--primary-green);
  font-weight: 500;
}

.rotation-timeline {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--shadow-light);
  overflow-x: auto;
}

.rotation-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 120px;
}

.step-number {
  width: 30px;
  height: 30px;
  background: var(--primary-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 10px;
}

.step-content h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-dark);
}

.step-content p {
  font-size: 12px;
  color: var(--text-light);
  margin: 0;
}

.rotation-arrow {
  font-size: 20px;
  color: var(--primary-green);
  font-weight: bold;
}

/* Crop Status Page Styles */
.crop-status-page {
  background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
  min-height: 100vh;
}

.crop-status-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 20px;
}

.overview-cards {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.overview-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--shadow-light);
  position: relative;
}

.overview-card.healthy {
  border-left: 4px solid var(--success);
}

.overview-card.warning {
  border-left: 4px solid var(--warning);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.healthy .card-icon {
  background: rgba(0, 184, 148, 0.1);
  color: var(--success);
}

.warning .card-icon {
  background: rgba(253, 203, 110, 0.1);
  color: var(--warning);
}

.card-info {
  flex: 1;
}

.card-info h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text-dark);
}

.card-info p {
  font-size: 12px;
  color: var(--text-light);
  margin: 0;
}

.card-status {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 16px;
}

.healthy .card-status {
  color: var(--success);
}

.warning .card-status {
  color: var(--warning);
}

.metrics-section {
  margin-bottom: 30px;
}

.metrics-section h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.metric-item {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: var(--shadow-light);
}

.metric-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.metric-icon {
  width: 40px;
  height: 40px;
  background: var(--light-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  flex-shrink: 0;
}

.metric-info {
  flex: 1;
}

.metric-info h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text-dark);
}

.metric-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-green);
}

.progress-container {
  margin-bottom: 10px;
}

.progress-bar-modern {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease-out;
  transform-origin: left;
  transform: scaleX(0);
}

.progress-fill[data-color="success"] {
  background: linear-gradient(90deg, var(--success), #00d2a0);
}

.progress-fill[data-color="warning"] {
  background: linear-gradient(90deg, var(--warning), #ffeaa7);
}

.progress-fill[data-color="danger"] {
  background: linear-gradient(90deg, var(--danger), #ff7675);
}

.metric-description {
  font-size: 13px;
  color: var(--text-light);
  margin: 0;
}

.ai-analysis {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-light);
}

.analysis-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.ai-avatar {
  width: 40px;
  height: 40px;
  background: var(--primary-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}

.analysis-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.analysis-content p {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 15px;
}

.analysis-recommendations h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.analysis-recommendations ul {
  margin: 0;
  padding-left: 20px;
}

.analysis-recommendations li {
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.historical-section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--shadow-light);
}

.historical-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.chart-placeholder {
  height: 150px;
  position: relative;
}

.chart-bars {
  display: flex;
  align-items: end;
  justify-content: space-between;
  height: 120px;
  padding: 0 10px;
}

.bar {
  width: 20px;
  background: linear-gradient(to top, var(--primary-green), var(--light-green));
  border-radius: 4px 4px 0 0;
  transition: height 1s ease-out;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding: 0 10px;
}

.chart-labels span {
  font-size: 12px;
  color: var(--text-light);
}

/* Support Page Styles */
.support-page {
  background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
  min-height: 100vh;
}

.support-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 20px;
}

.quick-help-section {
  margin-bottom: 30px;
}

.quick-help-section h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.help-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.help-option {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  cursor: pointer;
}

.help-option:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.option-icon {
  width: 50px;
  height: 50px;
  background: var(--light-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  font-size: 20px;
  flex-shrink: 0;
}

.option-content {
  flex: 1;
}

.option-content h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-dark);
}

.option-content p {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
}

.option-action {
  color: var(--text-light);
  font-size: 16px;
}

.faq-section {
  margin-bottom: 30px;
}

.faq-section h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

.faq-question {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover {
  background: rgba(74, 124, 89, 0.05);
}

.faq-question span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
}

.faq-question i {
  color: var(--primary-green);
  transition: var(--transition);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer p {
  padding: 0 20px 20px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.contact-methods {
  margin-bottom: 30px;
}

.contact-methods h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--shadow-light);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--light-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  font-size: 20px;
  flex-shrink: 0;
}

.contact-info {
  flex: 1;
}

.contact-info h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-dark);
}

.contact-info p {
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.availability {
  font-size: 12px;
  color: var(--text-light);
}

.emergency-support {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-light);
  border-left: 4px solid var(--danger);
}

.emergency-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.emergency-header i {
  font-size: 24px;
  color: var(--danger);
}

.emergency-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.emergency-support p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 15px;
}

.emergency-btn {
  background: var(--danger);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: var(--border-radius);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  width: 100%;
  justify-content: center;
}

.emergency-btn:hover {
  background: #d63031;
  transform: translateY(-2px);
}

.feedback-section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--shadow-light);
}

.feedback-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.feedback-section p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.rating-stars {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.rating-stars i {
  font-size: 24px;
  color: #ddd;
  cursor: pointer;
  transition: var(--transition);
}

.rating-stars i:hover,
.rating-stars i.active {
  color: var(--accent-orange);
}

.feedback-text {
  width: 100%;
  min-height: 100px;
  padding: 15px;
  border: 2px solid #eee;
  border-radius: var(--border-radius-small);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  margin-bottom: 20px;
  transition: var(--transition);
}

.feedback-text:focus {
  outline: none;
  border-color: var(--primary-green);
}

/* Action Buttons - Responsive */
.action-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.action-buttons-grid {
  display: grid;
  gap: 15px;
  margin-bottom: 30px;
}

.btn-secondary-modern,
.btn-primary-modern {
  flex: 1;
  min-width: 150px;
  padding: 15px;
  border-radius: var(--border-radius);
  border: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  text-decoration: none;
}

.btn-secondary-modern {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-dark);
  box-shadow: var(--shadow-light);
}

.btn-primary-modern {
  background: var(--primary-green);
  color: white;
  box-shadow: var(--shadow-medium);
}

.btn-secondary-modern:hover {
  background: white;
  transform: translateY(-2px);
  color: var(--text-dark);
}

.btn-primary-modern:hover {
  background: var(--secondary-green);
  transform: translateY(-2px);
  color: white;
}

.action-btn {
  padding: 15px;
  border-radius: var(--border-radius);
  border: none;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  text-decoration: none;
  min-width: 120px;
}

.action-btn.primary {
  background: var(--primary-green);
  color: white;
  box-shadow: var(--shadow-medium);
}

.action-btn.secondary {
  background: var(--accent-orange);
  color: white;
  box-shadow: var(--shadow-medium);
}

.action-btn.outline {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-dark);
  border: 2px solid var(--primary-green);
  box-shadow: var(--shadow-light);
}

.action-btn:hover {
  transform: translateY(-2px);
}

.action-btn.primary:hover {
  background: var(--secondary-green);
  color: white;
}

.action-btn.secondary:hover {
  background: #e09043;
  color: white;
}

.action-btn.outline:hover {
  background: var(--primary-green);
  color: white;
}

.action-btn i {
  font-size: 20px;
}

.action-btn span {
  font-size: 12px;
  text-align: center;
}

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.menu-content {
  position: absolute;
  top: 80px;
  right: 20px;
  background: white;
  border-radius: var(--border-radius);
  padding: 10px;
  box-shadow: var(--shadow-heavy);
  min-width: 200px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-radius: var(--border-radius-small);
  cursor: pointer;
  transition: var(--transition);
}

.menu-item:hover {
  background: var(--soft-cream);
}

.menu-item i {
  color: var(--primary-green);
  width: 20px;
}

.menu-item span {
  font-size: 14px;
  color: var(--text-dark);
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typing {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-10px);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Breakpoints */

/* Extra Large Screens (1400px and up) */
@media (min-width: 1400px) {
  :root {
    --container-max-width: 1320px;
  }

  .landing-container {
    max-width: 600px;
  }

  .hero-section {
    padding: 50px 40px;
  }

  .hero-title {
    font-size: 32px;
  }

  .chat-container-modern {
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: var(--shadow-heavy);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .weather-grid {
    grid-template-columns: 2fr 1fr;
  }

  .weather-details {
    grid-template-columns: repeat(4, 1fr);
  }

  .recommendations-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .action-buttons-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .fertilizer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .overview-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large Screens (1200px to 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
  .chat-container-modern {
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--shadow-heavy);
  }

  .weather-grid {
    grid-template-columns: 2fr 1fr;
  }

  .weather-details {
    grid-template-columns: repeat(3, 1fr);
  }

  .recommendations-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .action-buttons-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .fertilizer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .overview-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Medium Screens (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .chat-container-modern {
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-heavy);
  }

  .weather-details {
    grid-template-columns: repeat(2, 1fr);
  }

  .recommendations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .action-buttons-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .message-content {
    max-width: 75%;
  }

  .fertilizer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .overview-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small Screens (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .chat-container-modern {
    max-width: 700px;
    margin: 0 auto;
    box-shadow: var(--shadow-medium);
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .header-actions {
    align-self: flex-end;
  }

  .weather-details {
    grid-template-columns: repeat(2, 1fr);
  }

  .recommendations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .action-buttons-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .action-chips {
    justify-content: flex-start;
  }

  .filter-chips {
    justify-content: flex-start;
  }

  .card-actions {
    flex-direction: column;
  }

  .btn-outline-modern {
    min-width: auto;
  }

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

  .overview-cards {
    flex-direction: column;
  }

  .rotation-timeline {
    flex-direction: column;
    gap: 20px;
  }

  .rotation-arrow {
    transform: rotate(90deg);
  }
}

/* Extra Small Screens (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .container-responsive {
    padding: 0 15px;
  }

  .chat-container-modern {
    max-width: 100%;
    box-shadow: none;
  }

  .page-content {
    padding: 15px;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
  }

  .page-header h2 {
    font-size: 22px;
  }

  .weather-details,
  .recommendations-grid,
  .action-buttons-grid,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .action-buttons {
    flex-direction: column;
  }

  .card-actions {
    flex-direction: column;
  }

  .message-content {
    max-width: 85%;
  }

  .temperature {
    font-size: 48px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-section {
    padding: 30px 20px;
  }

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

  .overview-cards {
    flex-direction: column;
  }

  .rotation-timeline {
    flex-direction: column;
    gap: 20px;
  }

  .rotation-arrow {
    transform: rotate(90deg);
  }

  .contact-grid {
    gap: 10px;
  }
}

/* Mobile Screens (up to 575px) */
@media (max-width: 575px) {
  .container-responsive {
    padding: 0 10px;
  }

  .landing-container {
    width: 95%;
  }

  .hero-section {
    padding: 25px 15px;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .chat-container-modern {
    height: 100vh;
    max-width: 100%;
    box-shadow: none;
  }

  .chat-header {
    padding: 15px;
  }

  .chat-messages {
    padding: 15px;
    max-height: calc(100vh - 180px);
  }

  .chat-input-area {
    padding: 15px;
  }

  .page-content {
    padding: 10px;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    margin-bottom: 20px;
  }

  .page-header h2 {
    font-size: 20px;
  }

  .weather-details,
  .recommendations-grid,
  .action-buttons-grid,
  .grid-1,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .action-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .card-responsive {
    padding: 15px;
  }

  .card-actions {
    flex-direction: column;
    gap: 8px;
  }

  .message-content {
    max-width: 90%;
  }

  .message-bubble {
    padding: 10px 14px;
    font-size: 13px;
  }

  .temperature {
    font-size: 40px;
  }

  .detail-item {
    padding: 15px;
  }

  .recommendation-card {
    padding: 15px;
  }

  .crop-details {
    gap: 6px;
  }

  .detail {
    font-size: 12px;
  }

  .action-chips {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .filter-chips {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .menu-content {
    right: 10px;
    left: 10px;
    min-width: auto;
  }

  .input-container {
    padding: 6px;
  }

  .message-input {
    padding: 10px;
    font-size: 13px;
  }

  .attachment-btn,
  .send-btn {
    width: 35px;
    height: 35px;
  }

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

  .overview-cards {
    flex-direction: column;
  }

  .rotation-timeline {
    flex-direction: column;
    gap: 20px;
  }

  .rotation-arrow {
    transform: rotate(90deg);
  }

  .contact-grid {
    gap: 10px;
  }

  .weather-card {
    padding: 20px;
  }

  .forecast-item {
    padding: 10px 0;
  }

  .forecast-item .day {
    min-width: 60px;
    font-size: 12px;
  }

  .help-option {
    padding: 15px;
  }

  .faq-question {
    padding: 15px;
  }

  .faq-question span {
    font-size: 14px;
  }

  .contact-card {
    padding: 15px;
  }

  .emergency-support {
    padding: 15px;
  }

  .feedback-section {
    padding: 15px;
  }

  .metric-item {
    padding: 15px;
  }

  .ai-analysis {
    padding: 15px;
  }

  .historical-section {
    padding: 15px;
  }
}

/* Landscape Mobile */
@media (max-width: 767px) and (orientation: landscape) {
  .chat-messages {
    max-height: calc(100vh - 160px);
  }

  .landing-page {
    padding: 10px;
  }

  .hero-section {
    padding: 20px 15px;
  }

  .features-preview {
    margin-top: 20px;
  }

  .page-content {
    padding: 15px 10px;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .robot-avatar,
  .bot-avatar,
  .message-avatar {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }

  .weather-icon,
  .crop-icon {
    image-rendering: auto;
  }
}

/* Print Styles */
@media print {
  .chat-header,
  .quick-actions,
  .chat-input-area,
  .page-header,
  .action-buttons,
  .action-buttons-grid,
  .header-actions,
  .floating-elements,
  .input-actions,
  .menu-overlay {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .chat-messages,
  .weather-container,
  .recommendations-container,
  .crop-status-container,
  .support-container {
    box-shadow: none !important;
    background: white !important;
    max-height: none !important;
  }

  .card-responsive {
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
  }

  .message-bubble {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }

  .recommendation-card,
  .weather-card,
  .help-option,
  .contact-card {
    border: 1px solid #ddd !important;
    box-shadow: none !important;
  }

  .page-content {
    padding: 0 !important;
  }

  .landing-container {
    box-shadow: none !important;
  }

  .hero-section {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
  }
}

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

.d-block {
  display: block !important;
}

.d-flex {
  display: flex !important;
}

.d-inline {
  display: inline !important;
}

.d-inline-block {
  display: inline-block !important;
}

.text-center {
  text-align: center !important;
}

.text-left {
  text-align: left !important;
}

.text-right {
  text-align: right !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: 0.25rem !important;
}

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

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.mt-1 {
  margin-top: 0.25rem !important;
}

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

.mt-3 {
  margin-top: 1rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.mt-5 {
  margin-top: 3rem !important;
}

.p-0 {
  padding: 0 !important;
}

.p-1 {
  padding: 0.25rem !important;
}

.p-2 {
  padding: 0.5rem !important;
}

.p-3 {
  padding: 1rem !important;
}

.p-4 {
  padding: 1.5rem !important;
}

.p-5 {
  padding: 3rem !important;
}

.fw-light {
  font-weight: 300 !important;
}

.fw-normal {
  font-weight: 400 !important;
}

.fw-medium {
  font-weight: 500 !important;
}

.fw-semibold {
  font-weight: 600 !important;
}

.fw-bold {
  font-weight: 700 !important;
}

.text-muted {
  color: var(--text-light) !important;
}

.text-primary {
  color: var(--primary-green) !important;
}

.text-success {
  color: var(--success) !important;
}

.text-warning {
  color: var(--warning) !important;
}

.text-danger {
  color: var(--danger) !important;
}

.bg-primary {
  background-color: var(--primary-green) !important;
}

.bg-success {
  background-color: var(--success) !important;
}

.bg-warning {
  background-color: var(--warning) !important;
}

.bg-danger {
  background-color: var(--danger) !important;
}

.border-0 {
  border: 0 !important;
}

.border-1 {
  border: 1px solid #dee2e6 !important;
}

.border-primary {
  border-color: var(--primary-green) !important;
}

.rounded {
  border-radius: var(--border-radius-small) !important;
}

.rounded-lg {
  border-radius: var(--border-radius) !important;
}

.rounded-pill {
  border-radius: 50rem !important;
}

.shadow-sm {
  box-shadow: var(--shadow-light) !important;
}

.shadow {
  box-shadow: var(--shadow-medium) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-heavy) !important;
}

.w-25 {
  width: 25% !important;
}

.w-50 {
  width: 50% !important;
}

.w-75 {
  width: 75% !important;
}

.w-100 {
  width: 100% !important;
}

.h-25 {
  height: 25% !important;
}

.h-50 {
  height: 50% !important;
}

.h-75 {
  height: 75% !important;
}

.h-100 {
  height: 100% !important;
}

.position-relative {
  position: relative !important;
}

.position-absolute {
  position: absolute !important;
}

.position-fixed {
  position: fixed !important;
}

.position-sticky {
  position: sticky !important;
}

.overflow-hidden {
  overflow: hidden !important;
}

.overflow-auto {
  overflow: auto !important;
}

.flex-wrap {
  flex-wrap: wrap !important;
}

.flex-nowrap {
  flex-wrap: nowrap !important;
}

.justify-content-start {
  justify-content: flex-start !important;
}

.justify-content-end {
  justify-content: flex-end !important;
}

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

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

.justify-content-around {
  justify-content: space-around !important;
}

.align-items-start {
  align-items: flex-start !important;
}

.align-items-end {
  align-items: flex-end !important;
}

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

.align-items-stretch {
  align-items: stretch !important;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .floating-elements {
    display: none !important;
  }
}

@media (prefers-contrast: high) {
  :root {
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.5);
  }

  .card-responsive,
  .message-bubble,
  .recommendation-card {
    border: 2px solid var(--text-dark);
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --text-dark: #f8f9fa;
    --text-light: #adb5bd;
    --soft-cream: #2d3436;
    --warm-beige: #636e72;
  }

  body {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
  }

  .card-responsive {
    background: rgba(45, 52, 54, 0.95);
    color: var(--text-dark);
  }

  .chat-container-modern {
    background: #2d3436;
  }

  .chat-messages {
    background: #636e72;
  }

  .bot-message .message-bubble {
    background: #2d3436;
    color: var(--text-dark);
  }

  .landing-page {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 50%, #74b9ff 100%);
  }

  .hero-section {
    background: rgba(45, 52, 54, 0.95);
    color: var(--text-dark);
  }

  .weather-page {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
  }

  .recommendations-page {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
  }

  .crop-status-page {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
  }

  .support-page {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
  }
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

/* Screen reader only content */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--soft-cream);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--light-green);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-green);
}

/* Selection styles */
::selection {
  background: var(--light-green);
  color: var(--text-dark);
}

::-moz-selection {
  background: var(--light-green);
  color: var(--text-dark);
}

/* Estilos específicos para Analytics */
.analytics-chip {
  background: linear-gradient(135deg, var(--accent-orange), #e09043) !important;
  color: white !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(244, 162, 97, 0.3);
}

.analytics-chip:hover {
  background: linear-gradient(135deg, #e09043, var(--accent-orange)) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244, 162, 97, 0.4);
}

/* Mejoras al menú overlay */
.menu-content {
  position: absolute;
  top: 80px;
  right: 20px;
  background: white;
  border-radius: var(--border-radius);
  padding: 8px;
  box-shadow: var(--shadow-heavy);
  min-width: 220px;
  max-width: 280px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 16px;
  border-radius: var(--border-radius-small);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
}

.menu-item:hover {
  background: var(--soft-cream);
  color: var(--text-dark);
  text-decoration: none;
}

.menu-item i {
  color: var(--primary-green);
  width: 20px;
  text-align: center;
  font-size: 16px;
}

.menu-item span {
  flex: 1;
}

.menu-divider {
  height: 1px;
  background: #eee;
  margin: 8px 0;
}

/* Animación para el chip de Analytics */
@keyframes pulse-analytics {
  0% {
    box-shadow: 0 2px 8px rgba(244, 162, 97, 0.3);
  }
  50% {
    box-shadow: 0 4px 16px rgba(244, 162, 97, 0.5);
  }
  100% {
    box-shadow: 0 2px 8px rgba(244, 162, 97, 0.3);
  }
}

.analytics-chip {
  animation: pulse-analytics 3s ease-in-out infinite;
}

/* Responsive para el menú */
@media (max-width: 575px) {
  .menu-content {
    right: 10px;
    left: 10px;
    min-width: auto;
    max-width: none;
  }

  .menu-item {
    padding: 15px;
    font-size: 16px;
  }

  .menu-item i {
    font-size: 18px;
  }
}

/* Indicador visual para nuevas funciones */
.analytics-chip::after {
  content: "NUEVO";
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--danger);
  color: white;
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

.analytics-chip {
  position: relative;
}

/* Animación de entrada para el menú */
.menu-overlay.active .menu-content {
  animation: slideInFromTop 0.3s ease-out;
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estilos para la imagen personalizada del robot */
.robot-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: var(--transition);
}

/* Ajustes específicos para diferentes contextos */
.robot-avatar .robot-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.bot-avatar .robot-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.message-avatar .robot-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Efectos hover para la imagen del robot */
.robot-avatar:hover .robot-image {
  transform: scale(1.05);
}

.bot-avatar:hover .robot-image {
  transform: scale(1.1);
}

/* Asegurar que la imagen se adapte bien en dispositivos móviles */
@media (max-width: 575px) {
  .robot-image {
    object-fit: cover;
  }

  .robot-avatar .robot-image {
    object-fit: contain;
  }
}

/* Filtros para mejorar la apariencia de la imagen */
.robot-image {
  filter: brightness(1.1) contrast(1.05);
}

/* Animación suave para la carga de la imagen */
.robot-image {
  opacity: 0;
  animation: fadeInImage 0.5s ease-in-out forwards;
}

@keyframes fadeInImage {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Fallback en caso de que la imagen no cargue */
.robot-image:not([src]),
.robot-image[src=""] {
  display: none;
}

.robot-image:not([src])::after,
.robot-image[src=""]::after {
  content: "🤖";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 24px;
}
