/* DraftPics ChatBot - Custom Brand Colors */

* {
  box-sizing: border-box;
}

#draftpics-chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99999;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
}

/* ChatBot Button */
.chatbot-button {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4A6B8A 0%, #364F68 100%);
  border: 3px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(74, 107, 138, 0.4), 0 0 0 0 rgba(74, 107, 138, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  animation: buttonPulse 3s ease-in-out infinite;
}

@keyframes buttonPulse {
  0%, 100% {
    box-shadow: 0 8px 32px rgba(74, 107, 138, 0.4), 0 0 0 0 rgba(74, 107, 138, 0.5);
  }
  50% {
    box-shadow: 0 8px 32px rgba(74, 107, 138, 0.4), 0 0 0 15px rgba(74, 107, 138, 0);
  }
}

.chatbot-button:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 40px rgba(74, 107, 138, 0.6);
  background: linear-gradient(135deg, #5A7B9A 0%, #465F78 100%);
}

.chatbot-button:active {
  transform: scale(0.95);
}

.chatbot-button svg {
  width: 34px;
  height: 34px;
  fill: white;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Notification Badge */
.chatbot-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: linear-gradient(135deg, #FF6B6B 0%, #EE5A6F 100%);
  color: white;
  border-radius: 14px;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.5);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { 
    transform: scale(1);
  }
  50% { 
    transform: scale(1.1);
  }
}

/* ChatBot Window */
.chatbot-window {
  position: absolute;
  bottom: 88px;
  right: 0;
  width: 420px;
  height: 650px;
  background: linear-gradient(to bottom, #E8EDF2 0%, #F5F7FA 100%);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chatbot-window.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* ChatBot Header */
.chatbot-header {
  background: linear-gradient(135deg, #4A6B8A 0%, #364F68 100%);
  color: white;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.chatbot-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
}

.chatbot-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.chatbot-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.chatbot-header-info h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.chatbot-header-info p {
  margin: 2px 0 0 0;
  font-size: 12px;
  opacity: 0.9;
  font-weight: 500;
}

.chatbot-close {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  width: auto;
  height: 32px;
  padding: 0 12px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.chatbot-close:active {
  transform: scale(0.92);
}

/* Screen Container */
.chatbot-body {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: linear-gradient(to bottom, #E8EDF2 0%, #F5F7FA 100%);
  display: flex;
  flex-direction: column;
}

.chatbot-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 16px;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.chatbot-screen.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.chatbot-screen.sliding-out {
  opacity: 0;
  transform: translateX(-100%);
}

/* Back Button */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid rgba(74, 107, 138, 0.15);
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #4A6B8A;
  cursor: pointer;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.back-button:hover {
  background: #F8FAFC;
  transform: translateX(-4px);
  box-shadow: 0 4px 12px rgba(74, 107, 138, 0.15);
}

.back-button:active {
  transform: translateX(-2px) scale(0.98);
}

.back-button svg {
  width: 16px;
  height: 16px;
}

/* Welcome Screen - Menu Cards */
.menu-cards {
  display: grid;
  gap: 10px;
  flex-shrink: 0;
  padding: 20px 10px;
  padding-top: 31px !important;
}

.menu-card {
  background: white;
  border: 2px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
  padding: 20px;
  margin-right: 0px;
}

.menu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #4A6B8A15 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.menu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(74, 107, 138, 0.2);
  border-color: #4A6B8A;
}

.menu-card:hover::before {
  opacity: 1;
}

.menu-card:active {
  transform: translateY(-2px) scale(0.98);
}

.menu-card-icon {
  font-size: 34px;
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, #4A6B8A 0%, #364F68 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(74, 107, 138, 0.25);
  position: relative;
  z-index: 1;
}

.menu-card-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.menu-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #1A2332;
  margin: 0 0 3px 0 !important;
  letter-spacing: -0.3px;
}

.menu-card-desc {
  font-size: 15px;
  color: #6B7A8F;
  margin: 0;
  line-height: 1.4;
  font-weight: 500;
}

.menu-card-arrow {
  color: #4A6B8A;
  font-size: 20px;
  font-weight: bold;
  transition: transform 0.3s;
  position: relative;
  z-index: 1;
}

.menu-card:hover .menu-card-arrow {
  transform: translateX(6px);
}

/* Welcome Message */
.welcome-message {
  background: linear-gradient(135deg, white 0%, #F8FAFC 100%);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(74, 107, 138, 0.1);
  flex-shrink: 0;
}

.welcome-message h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #1A2332;
  letter-spacing: -0.6px;
}

.welcome-message p {
  font-size: 12px;
  color: #5A6A7A;
  margin: 0;
  line-height: 1.5;
  font-weight: 400;
}

/* Content Screen */
.content-header {
  background: linear-gradient(135deg, white 0%, #F8FAFC 100%);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(74, 107, 138, 0.1);
  flex-shrink: 0;
}

.content-header h3 {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 6px 0;
  color: #1A2332;
  letter-spacing: -0.5px;
}

.content-header p {
  font-size: 14px;
  color: #5A6A7A;
  margin: 0;
  line-height: 1.5;
  font-weight: 500;
}

/* Info Box */
.info-box {
  background: white;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #4A6B8A;
  flex-shrink: 0;
}

.info-box-title {
  font-size: 15px;
  font-weight: 700;
  color: #1A2332;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.3px;
}

.info-box-content {
  font-size: 14px;
  color: #3C4855;
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}

.info-box-content strong {
  display: block;
  margin-top: 10px;
  margin-bottom: 6px;
  color: #1A2332;
  font-weight: 700;
  font-size: 15px;
}

.info-list {
  margin: 8px 0;
  padding-left: 0;
  list-style: none;
}

.info-list li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  font-size: 14px;
  color: #3C4855;
  line-height: 1.5;
}

.info-list li:before {
  content: "▸";
  position: absolute;
  left: 4px;
  color: #4A6B8A;
  font-weight: bold;
  font-size: 14px;
}

/* Forms */
.chatbot-form {
  background: white;
  padding: 18px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(74, 107, 138, 0.1);
  flex-shrink: 0;
}

.form-group {
  margin-bottom: 14px;
}

.form-group:last-of-type {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1A2332;
  letter-spacing: -0.2px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #E1E8EF;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  background: #F8FAFC;
  color: #1A2332;
  transition: all 0.3s;
  font-weight: 500;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4A6B8A;
  background: white;
  box-shadow: 0 0 0 3px rgba(74, 107, 138, 0.1);
  transform: translateY(-1px);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #4A6B8A 0%, #364F68 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(74, 107, 138, 0.35);
  letter-spacing: -0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(74, 107, 138, 0.45);
  background: linear-gradient(135deg, #5A7B9A 0%, #465F78 100%);
}

.form-submit:active {
  transform: translateY(-1px) scale(0.98);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Success/Error Messages */
.message-box {
  background: white;
  padding: 16px;
  border-radius: 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
}

.message-box.success {
  border-left: 4px solid #10B981;
}

.message-box.error {
  border-left: 4px solid #EF4444;
}

.message-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.message-content {
  flex: 1;
}

.message-content strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #1A2332;
  letter-spacing: -0.3px;
}

.message-content p {
  font-size: 14px;
  color: #3C4855;
  margin: 0;
  line-height: 1.5;
  font-weight: 500;
}

/* Order Status Card */
.status-card {
  background: white;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(74, 107, 138, 0.1);
  flex-shrink: 0;
}

.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 2px solid #F1F5F9;
}

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

.status-label {
  font-size: 14px;
  color: #6B7A8F;
  font-weight: 600;
}

.status-value {
  font-size: 15px;
  color: #1A2332;
  font-weight: 700;
  text-align: right;
  letter-spacing: -0.3px;
}

.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  letter-spacing: -0.2px;
}

/* Loading Indicator */
.loading-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 4px solid #E1E8EF;
  border-top-color: #4A6B8A;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Scrollbar */
.chatbot-screen::-webkit-scrollbar {
  width: 6px;
}

.chatbot-screen::-webkit-scrollbar-track {
  background: transparent;
}

.chatbot-screen::-webkit-scrollbar-thumb {
  background: #CBD5E0;
  border-radius: 3px;
}

.chatbot-screen::-webkit-scrollbar-thumb:hover {
  background: #4A6B8A;
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .chatbot-window {
    width: calc(100vw - 20px);
    height: calc(100vh - 100px);
    right: 10px;
    bottom: 88px;
    border-radius: 24px;
  }
  
  #draftpics-chatbot-container {
    right: 10px;
    bottom: 10px;
  }
  
  .menu-card {
    padding: 14px;
  }
  
  .menu-card-icon {
    width: 50px;
    height: 50px;
    font-size: 28px;
  }
  
  .chatbot-screen {
    padding: 14px;
  }
  
  .welcome-message {
    padding: 14px;
  }
  
  .content-header {
    padding: 14px;
  }
}