/* These styles are generated from project.scss. */

.alert-debug {
  color: black;
  background-color: white;
  border-color: #d6e9c6;
}

.alert-error {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}

/* Completely remove and disable any custom cursor overlays */
.cb-cursor,
.cb-cursor-text,
.mouse-cursor,
[class*="cb-cursor"],
[class*="mouse-cursor"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
}

/* Ensure price text in light upcoming-offer card is sharp and dark */
.upcoming-offer-item:not(.dark-section) .upcoming-offer-item-price h3 {
  color: #0f172a !important;
}
.upcoming-offer-item:not(.dark-section) .upcoming-offer-item-price h3 span {
  color: #64748b !important;
}

/* ==========================================================================
   User Account Dropdown Menu in Navbar (Desktop & Tablet)
   ========================================================================== */
.user-account-dropdown {
  position: relative !important;
}

.user-dropdown-btn {
  color: #ffffff !important;
  text-decoration: none !important;
  cursor: pointer !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  transition: all 0.2s ease-in-out !important;
  display: inline-flex !important;
  align-items: center !important;
}

.user-dropdown-btn:hover,
.user-dropdown-btn:focus,
.user-account-dropdown.show .user-dropdown-btn {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.15) !important;
}

/* Override and remove any theme-specific pseudo chevron */
.main-menu ul .user-account-dropdown > a:after,
.user-account-dropdown > a:after {
  content: "" !important;
  display: none !important;
}

/* Dropdown Menu Container: anchored flush to the right of the button */
.main-menu .header-action-details ul .user-dropdown-menu,
.user-account-dropdown .user-dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  left: auto !important;
  min-width: 230px !important;
  max-width: 280px !important;
  display: none;
  flex-direction: column !important;
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 12px !important;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22) !important;
  padding: 8px 0 !important;
  margin-top: 8px !important;
  z-index: 1050 !important;
  transform: none !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Show on Bootstrap toggle (.show) or desktop hover */
.user-account-dropdown .user-dropdown-menu.show,
.user-account-dropdown:hover .user-dropdown-menu {
  display: flex !important;
}

/* Override parent header-action-details list styles */
.main-menu .header-action-details .user-dropdown-menu li,
.user-dropdown-menu li {
  width: 100% !important;
  border: none !important;
  border-right: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
}

.user-dropdown-menu .dropdown-header {
  background-color: #f8fafc !important;
  padding: 10px 18px !important;
  margin-bottom: 4px !important;
}

.main-menu .header-action-details .user-dropdown-menu li a.dropdown-item,
.user-dropdown-menu .dropdown-item {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  padding: 10px 18px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #1e293b !important;
  text-decoration: none !important;
  background: transparent !important;
  border: none !important;
  transition: all 0.15s ease-in-out !important;
  text-transform: none !important;
}

.main-menu .header-action-details .user-dropdown-menu li a.dropdown-item:hover,
.user-dropdown-menu .dropdown-item:hover,
.user-dropdown-menu .dropdown-item:focus {
  background-color: #f1f5f9 !important;
  color: #0d6efd !important;
  padding-left: 22px !important;
}

.main-menu .header-action-details .user-dropdown-menu li a.dropdown-item.text-danger,
.user-dropdown-menu .dropdown-item.text-danger {
  color: #dc3545 !important;
}

.main-menu .header-action-details .user-dropdown-menu li a.dropdown-item.text-danger:hover,
.user-dropdown-menu .dropdown-item.text-danger:hover {
  background-color: #fef2f2 !important;
  color: #b02a37 !important;
}

.main-menu .header-action-details .user-dropdown-menu li a.dropdown-item.text-primary,
.user-dropdown-menu .dropdown-item.text-primary {
  color: #0d6efd !important;
}

/* ==========================================================================
   EASYTECH UNIFIED DESIGN SYSTEM (FRONTEND & ADMIN SINGLE THEME)
   ========================================================================== */

/* Clean Card Surface */
.card:not(.profile-header-banner):not(.bg-dark):not(.dark-section) {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.2s ease-in-out;
}

.profile-header-banner {
  background-color: #16181D !important;
  background: #16181D !important;
  border: 1px solid #282c35 !important;
  border-radius: 16px !important;
  color: #ffffff !important;
}

.profile-header-banner .text-muted,
.profile-header-banner small {
  color: #94a3b8 !important;
}

/* Unified Buttons */
.btn-primary,
a.btn-primary,
button.btn-primary {
  background-color: #16181D !important;
  border-color: #16181D !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  padding: 8px 18px !important;
  transition: all 0.2s ease-in-out !important;
}

.btn-primary:hover,
a.btn-primary:hover,
button.btn-primary:hover {
  background-color: #2b2e37 !important;
  border-color: #2b2e37 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-outline-primary,
a.btn-outline-primary,
button.btn-outline-primary {
  background-color: transparent !important;
  border: 1.5px solid #16181D !important;
  color: #16181D !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  padding: 8px 18px !important;
  transition: all 0.2s ease-in-out !important;
}

.btn-outline-primary:hover,
a.btn-outline-primary:hover,
button.btn-outline-primary:hover {
  background-color: #16181D !important;
  border-color: #16181D !important;
  color: #ffffff !important;
}

.btn-secondary,
a.btn-secondary,
button.btn-secondary {
  background-color: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  padding: 8px 18px !important;
  transition: all 0.2s ease-in-out !important;
}

.btn-secondary:hover,
a.btn-secondary:hover,
button.btn-secondary:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}

/* Amazon-style highlight action (Buy Now / Deal CTA) */
.btn-amazon-primary,
.btn-warning-deal {
  background-color: #f59e0b !important;
  border-color: #d97706 !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  padding: 9px 20px !important;
  transition: all 0.2s ease-in-out !important;
}

.btn-amazon-primary:hover,
.btn-warning-deal:hover {
  background-color: #d97706 !important;
  border-color: #b45309 !important;
  color: #ffffff !important;
}

/* Unified Tables */
.table thead {
  background-color: #f8fafc !important;
}

.table thead th {
  background-color: #f8fafc !important;
  color: #64748b !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 12px 16px !important;
}

.table tbody td {
  padding: 14px 16px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  vertical-align: middle !important;
  color: #0f172a !important;
  font-size: 0.9rem !important;
}

.table tbody tr:hover td {
  background-color: #f8fafc !important;
}

/* Unified Form Controls */
.form-control,
.form-select {
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 9px 14px !important;
  font-size: 0.9rem !important;
  color: #0f172a !important;
  transition: all 0.15s ease-in-out !important;
}

.form-control:focus,
.form-select:focus {
  border-color: #16181D !important;
  box-shadow: 0 0 0 3px rgba(22, 24, 29, 0.1) !important;
  outline: none !important;
}

/* Unified Badge Pills */
.badge {
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
}

/* Page Headers */
.display-5, .display-6, h1.page-title {
  color: #0f172a !important;
  font-weight: 700 !important;
  letter-spacing: -0.5px !important;
}

/* ==========================================================================
   EasyTech AI Assistant Widget (Ollama + RAG)
   ========================================================================== */
.easytech-chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  background: linear-gradient(135deg, #16181D 0%, #2a2e39 100%);
  color: #ffffff;
  border-radius: 50px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.easytech-chat-launcher:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 187, 0, 0.4);
  background: linear-gradient(135deg, #1f2229 0%, #343946 100%);
}

.chat-launcher-icon {
  font-size: 1.25rem;
  color: #ffc107;
}

.chat-launcher-text {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.2px;
}

.chat-launcher-badge {
  position: absolute;
  top: -6px;
  right: -4px;
  background: #ffc107;
  color: #16181D;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.easytech-chat-panel {
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.08);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: chatSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes chatSlideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-panel-header {
  background: #16181D;
  color: #ffffff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.chat-status-dot.online {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background: #10b981;
  border: 2px solid #16181D;
  border-radius: 50%;
}

.chat-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.chat-subtitle {
  font-size: 0.72rem;
  color: #94a3b8;
}

.chat-btn-icon {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.chat-btn-icon:hover {
  color: #ffffff;
}

.chat-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-msg {
  display: flex;
  gap: 10px;
  max-width: 88%;
}

.chat-msg.bot-msg {
  align-self: flex-start;
}

.chat-msg.user-msg {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 28px;
  height: 28px;
  background: #16181D;
  color: #ffc107;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.msg-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.bot-msg .msg-bubble {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.user-msg .msg-bubble {
  background: #16181D;
  color: #ffffff;
}

.chat-quick-suggestions {
  display: flex;
  gap: 6px;
  padding: 6px 14px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  overflow-x: auto;
  white-space: nowrap;
}

.quick-prompt-chip {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-prompt-chip:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.chat-panel-footer {
  padding: 10px 14px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.chat-input-wrapper {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 24px;
  padding: 2px 4px 2px 14px;
  transition: border-color 0.15s ease;
}

.chat-input-wrapper:focus-within {
  border-color: #16181D;
}

.chat-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 0;
  font-size: 0.88rem;
  outline: none;
  color: #0f172a;
}

.chat-send-button {
  background: #16181D;
  color: #ffc107;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.chat-send-button:hover {
  transform: scale(1.08);
}

/* Product Recommendation Card inside Chat */
.chat-product-recommendations {
  border-top: 1px dashed #cbd5e1;
  padding-top: 8px;
}

.recommendations-heading {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.recommendations-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rec-product-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none !important;
  color: #0f172a !important;
  transition: all 0.15s ease;
}

.rec-product-card:hover {
  background: #eef2f6;
  border-color: #cbd5e1;
}

.rec-img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 6px;
}

.rec-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rec-name {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rec-price {
  font-size: 0.75rem;
  font-weight: 700;
  color: #10b981;
}

.rec-arrow {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Typing indicator */
.typing-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #94a3b8;
  border-radius: 50%;
  margin-right: 4px;
  animation: typingBounce 1.2s infinite ease-in-out;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

/* Chatbot Message Feedback (Thumbs Up / Down) */
.chat-feedback-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(203, 213, 225, 0.5);
  font-size: 0.72rem;
  color: #94a3b8;
}

.feedback-label {
  font-size: 0.7rem;
  color: #64748b;
  margin-right: 2px;
}

.btn-chat-feedback {
  background: transparent;
  border: 1px solid transparent;
  padding: 2px 6px;
  cursor: pointer;
  color: #94a3b8;
  font-size: 0.78rem;
  border-radius: 4px;
  line-height: 1;
  transition: all 0.15s ease;
}

.btn-chat-feedback:hover {
  color: #1e293b;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.btn-chat-feedback.active.text-success {
  color: #10b981 !important;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
}

.btn-chat-feedback.active.text-danger {
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
}



