/* Smart Bot New Design */
:root {
  --sb-bg: #ffffff;
  --sb-text: #1a1a1a;
  --sb-primary: #000000;
  --sb-secondary: #f0f0f0;
  --sb-accent: #2AABEE;
  --sb-card-1: #E0F7FA;
  /* Mint/Blue */
  --sb-card-2: #F3E5F5;
  /* Lavender */
  --sb-card-3: #E8F5E9;
  /* Greenish */
  --sb-card-4: #FFF3E0;
  /* Peach */
}

.smart-bot-container {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 380px;
  height: 600px;
  max-height: 80vh;
  /* Prevent touching top on small screens */
  background: var(--sb-bg);
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  display: none;
  /* Toggled */
  flex-direction: column;
  z-index: 10000;
  font-family: 'Work Sans', sans-serif;
  overflow: hidden;
  transform-origin: bottom right;
  animation: scaleIn 0.3s ease;
}

/* Mobile Responsiveness */
@media screen and (max-width: 480px) {
  .smart-bot-container {
    width: 90%;
    right: 5%;
    bottom: 20px;
    height: 70vh;
    /* Smaller on mobile */
    max-height: 600px;
    border-radius: 20px;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Views */
.sb-view {
  padding: 24px;
  height: 100%;
  flex-direction: column;
  display: none;
  /* Hidden by default */
}

.sb-view.active {
  display: flex;
}

/* Home View */
.sb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sb-avatar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sb-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.sb-avatar span {
  font-weight: 600;
  font-size: 16px;
  color: #000;
}

.sb-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 30px;
  color: #000;
}

.sb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.sb-card {
  padding: 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  position: relative;
}

.sb-card:hover {
  transform: translateY(-5px);
}

.sb-card-icon {
  font-size: 24px;
  margin-bottom: 15px;
}

.sb-card-label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.sb-card-arrow {
  position: absolute;
  bottom: 20px;
  right: 20px;
  opacity: 0.5;
  color: #000;
}

.sb-card.c1 {
  background: #e3f2fd;
}

/* Blue-ish */
.sb-card.c2 {
  background: #f3e5f5;
}

/* Purple-ish */
.sb-card.c3 {
  background: #e8f5e9;
}

/* Green-ish */
.sb-card.c4 {
  background: #fffde7;
}

/* Yellow-ish */

.sb-start-chat-btn {
  background: #000;
  color: #fff;
  padding: 20px;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  margin-top: auto;
}

.sb-start-chat-text h4 {
  margin: 0;
  font-size: 16px;
}

.sb-start-chat-text span {
  font-size: 12px;
  opacity: 0.7;
}

.sb-start-chat-arrow {
  background: #4ade80;
  color: #000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Chat View */
.sb-chat-header {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sb-back-btn {
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
  color: #000;
}

.sb-messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Toggle & Bubble */
.smart-bot-toggle-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
}

.smart-bot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s;
}

.smart-bot-toggle:hover {
  transform: scale(1.1);
}

.sb-notification-bubble {
  position: absolute;
  bottom: 70px;
  /* Above button */
  right: 0;
  background: #fff;
  padding: 10px 15px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  color: #000;
  animation: float 2s infinite ease-in-out;
}

.sb-notification-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 20px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: rotate(45deg);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.sb-btn {
  background: #fff;
  border: 1px solid #000;
  color: #000;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
  font-family: inherit;
  margin-bottom: 5px;
}

.sb-btn:hover {
  background: #e0e0e0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Messages */
.sb-message {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 15px;
  font-size: 14px;
  line-height: 1.4;
}

.sb-message.bot {
  background: #f1f3f4;
  align-self: flex-start;
  border-bottom-left-radius: 5px;
  color: #000;
}

.sb-message.user {
  background: #000;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}

.smart-bot-input {
  padding: 15px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
}

.smart-bot-input input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 20px;
  outline: none;
}

.smart-bot-send {
  background: #000;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Resume/Contact Modal Support if needed */