/* Ecofinco Django Ecosystem Enhancements (preserves Nicepage layout fidelity) */
.eco-flash-wrap {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 420px;
}
.eco-flash {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 10px;
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.eco-flash.success { background: #2e8b57; }
.eco-flash.info { background: #478ac9; }
.eco-flash.warning { background: #d49b00; }
.eco-flash.error { background: #db545a; }
.eco-flash-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

/* Header utility bar additions */
.u-header .u-sheet-1 .u-text-1 {
  margin: 0 !important;
  width: auto !important;
}
.u-header .u-sheet-1 .u-icon-1 {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}
.u-header .u-sheet-1 .u-icon-1 img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.u-header .u-logo-image-1 {
  object-fit: contain;
}
.eco-top-auth-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-family: 'Open Sans', sans-serif;
}
.eco-top-auth-links a {
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 600;
}
.eco-top-auth-links a:hover {
  color: #f1c50e !important;
}
.eco-cart-pill {
  background: #db545a;
  color: #fff !important;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

/* Modern Portal Cards for Knowledge Base, Search, ERP, Car Rental, Checkout */
.eco-portal-section {
  padding: 60px 0;
  background: #f5f7fa;
  font-family: 'Open Sans', sans-serif;
}
.eco-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}
.eco-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.eco-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 991px) {
  .eco-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .eco-grid-3, .eco-grid-2 { grid-template-columns: 1fr; }
}
.eco-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 26px;
  box-shadow: 0 6px 20px rgba(17, 17, 17, 0.06);
  border-top: 4px solid #478ac9;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.eco-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.1);
}
.eco-card.coral { border-top-color: #db545a; }
.eco-card.teal { border-top-color: #2cccc4; }
.eco-card.gold { border-top-color: #f1c50e; }

.eco-btn-primary {
  display: inline-block;
  background: #478ac9;
  color: #fff !important;
  padding: 11px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.eco-btn-primary:hover { background: #387cbd; }
.eco-btn-coral {
  display: inline-block;
  background: #db545a;
  color: #fff !important;
  padding: 11px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.eco-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 15px;
  margin-bottom: 14px;
  box-sizing: border-box;
}
.eco-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #e9f2fb;
  color: #2f6ca8;
}

/* AI Assistant Floating Widget (mirrors ai-engine plugin) */
.eco-ai-launcher {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9990;
  background: linear-gradient(135deg, #478ac9, #325490);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(50, 84, 144, 0.35);
  display: flex;
  align-items: center;
  gap: 8px;
}
.eco-ai-drawer {
  position: fixed;
  bottom: 84px;
  left: 24px;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  z-index: 9991;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  font-family: 'Open Sans', sans-serif;
}
.eco-ai-drawer.open { display: flex; }
.eco-ai-head {
  background: #32373c;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid #478ac9;
}
.eco-ai-messages {
  height: 290px;
  overflow-y: auto;
  padding: 14px;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.eco-ai-msg {
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 88%;
  white-space: pre-line;
}
.eco-ai-msg.bot {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  align-self: flex-start;
  color: #1f2937;
}
.eco-ai-msg.user {
  background: #478ac9;
  color: #ffffff;
  align-self: flex-end;
}
.eco-ai-form {
  display: flex;
  padding: 10px;
  gap: 8px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}
.eco-ai-form input {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
}
.eco-ai-form button {
  background: #478ac9;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
}
