@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Amani Brand Color System */
  --amani-deep-blue: #06418A;
  --amani-roof-blue: #48CBFF;
  --amani-sky-blue: #A2E4FF;
  --amani-pure-white: #FFFFFF;

  /* Secondary & Backgrounds */
  --amani-blue-900: #164D87;
  --amani-blue-ice: #E8F7FD;
  --amani-blue-soft: #F0F9FF;
  --amani-bg-main: #F8FAFC;

  /* Accent & Text */
  --amani-accent-green: #22C55E;
  --amani-accent-tag: #B0E788;
  --amani-text-dark: #0F172A;
  --amani-text-muted: #64748B;
  --amani-text-light: #94A3B8;
  --amani-border: rgba(6, 65, 138, 0.12);
  --amani-border-focus: #48CBFF;

  /* Radius & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(6, 65, 138, 0.04);
  --shadow-md: 0 8px 24px rgba(6, 65, 138, 0.08);
  --shadow-lg: 0 16px 40px rgba(6, 65, 138, 0.14);
  --shadow-glow: 0 0 20px rgba(72, 203, 255, 0.35);

  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--amani-text-dark);
  background-color: var(--amani-bg-main);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */
.chatgpt-header {
  background: var(--amani-pure-white);
  border-bottom: 1px solid var(--amani-border);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--amani-roof-blue) 0%, var(--amani-deep-blue) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(72, 203, 255, 0.35);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--amani-deep-blue);
  line-height: 1.1;
}

.brand-tag {
  font-size: 0.68rem;
  color: var(--amani-text-muted);
  font-weight: 500;
}

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

.btn-single-drawer {
  background: var(--amani-blue-ice);
  color: var(--amani-deep-blue);
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(6, 65, 138, 0.04);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-single-drawer svg {
  stroke: var(--amani-deep-blue);
  transition: transform 0.2s ease;
}

.btn-single-drawer:hover {
  transform: translateY(-1.5px);
  background: #D2EFFC;
  box-shadow: 0 4px 14px rgba(72, 203, 255, 0.25);
}

.btn-single-drawer:hover svg {
  transform: scale(1.08);
}

.badge-count {
  background: #FFFFFF;
  color: var(--amani-deep-blue);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(6, 65, 138, 0.08);
}

/* Chat Main Layout */
.chat-main-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  height: calc(100vh - 65px);
}

/* Messages Scrollable Area */
.chat-messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 1.25rem 7rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  scrollbar-width: thin;
}

/* Hero Center Welcome (When Empty) */
.hero-welcome-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: auto 0;
  padding: 2rem 1rem;
  animation: fadeIn 0.4s ease;
}

.hero-logo-big {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--amani-roof-blue) 0%, var(--amani-deep-blue) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(72, 203, 255, 0.4);
}

.hero-welcome-center h1 {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--amani-deep-blue);
  margin-bottom: 0.4rem;
}

.hero-welcome-center p {
  font-size: 0.88rem;
  color: var(--amani-text-muted);
  max-width: 520px;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.quick-prompts-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 650px;
}

.quick-prompt-card {
  background: white;
  border: 1px solid var(--amani-border);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--amani-deep-blue);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

.quick-prompt-card:hover {
  background: var(--amani-blue-soft);
  border-color: var(--amani-roof-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Chat Message Bubbles */
.message-row {
  display: flex;
  gap: 12px;
  animation: fadeIn 0.3s ease;
}

.message-row.user {
  justify-content: flex-end;
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.message-row.agent .message-avatar {
  background: linear-gradient(135deg, var(--amani-roof-blue), var(--amani-deep-blue));
  color: white;
  box-shadow: 0 4px 10px rgba(72, 203, 255, 0.3);
}

.message-row.user .message-avatar {
  background: #E2E8F0;
  color: var(--amani-text-dark);
}

.message-bubble {
  max-width: 82%;
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius-lg);
  font-size: 0.88rem;
  line-height: 1.6;
}

.message-row.user .message-bubble {
  background: var(--amani-deep-blue);
  color: white;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 14px rgba(6, 65, 138, 0.2);
}

.message-row.agent .message-bubble {
  background: white;
  color: var(--amani-text-dark);
  border: 1px solid var(--amani-border);
  border-top-left-radius: 4px;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

/* Inside Agent Bubble Components */
.result-card-clean {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.result-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 0.75rem;
}

.result-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--amani-deep-blue);
}

.result-meta {
  font-size: 0.75rem;
  color: var(--amani-text-muted);
  margin-top: 2px;
}

.result-summary-box {
  background: var(--amani-blue-soft);
  border-left: 4px solid var(--amani-deep-blue);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.55;
}

.result-keypoints-box {
  background: #FAFCFE;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
}

.result-keypoints-box h4 {
  font-size: 0.85rem;
  color: var(--amani-deep-blue);
  margin-bottom: 0.5rem;
}

.result-keypoints-box ul {
  padding-left: 1.2rem;
  font-size: 0.82rem;
  line-height: 1.5;
}

.result-keypoints-box li {
  margin-bottom: 4px;
}

/* Interactive Action Buttons inside Message */
.bubble-actions-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #F1F5F9;
}

.btn-bubble-action {
  background: var(--amani-blue-ice);
  color: var(--amani-deep-blue);
  border: 1px solid rgba(6, 65, 138, 0.12);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.btn-bubble-action:hover {
  background: var(--amani-roof-blue);
  color: white;
  border-color: var(--amani-roof-blue);
}

/* User Message Attachments & Voice Pill */
.user-media-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.18);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  margin-bottom: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ChatGPT-Style Bottom Prompt Box */
.chatgpt-input-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 1.25rem 1.25rem 1.25rem;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, rgba(248, 250, 252, 0.95) 30%, #F8FAFC 100%);
}

.prompt-box-wrapper {
  background: white;
  border: 1.5px solid var(--amani-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 10px 14px 8px 14px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.prompt-box-wrapper:focus-within {
  border-color: var(--amani-roof-blue);
  box-shadow: 0 8px 30px rgba(72, 203, 255, 0.25);
}

/* Attachment preview tags inside prompt box */
.staged-attachments-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.staged-att-tag {
  background: var(--amani-blue-ice);
  border: 1px solid var(--amani-border);
  color: var(--amani-deep-blue);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.staged-att-tag .btn-del-tag {
  background: none;
  border: none;
  color: #EF4444;
  cursor: pointer;
  font-weight: bold;
}

.prompt-textarea {
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--amani-text-dark);
  max-height: 160px;
  min-height: 24px;
  line-height: 1.45;
  background: transparent;
}

.prompt-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 4px;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-tool-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--amani-blue-ice);
  color: var(--amani-deep-blue);
  border: 1px solid var(--amani-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: var(--transition);
}

.btn-tool-circle:hover {
  background: var(--amani-roof-blue);
  color: white;
  transform: scale(1.05);
}

.btn-tool-circle.recording {
  background: #EF4444;
  color: white;
  animation: pulseRecording 1.4s infinite;
}

@keyframes pulseRecording {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

.btn-send-main {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amani-deep-blue) 0%, var(--amani-blue-900) 100%);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(6, 65, 138, 0.25);
  transition: var(--transition);
}

.btn-send-main:hover {
  transform: scale(1.06);
  background: var(--amani-deep-blue);
}

.btn-send-main:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.voice-recording-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: #EF4444;
  display: none;
  align-items: center;
  gap: 6px;
}

.voice-recording-pill.active {
  display: inline-flex;
}

/* SLIDE-OVER DRAWER (FOR SUMMARY, TO-DO LIST, DISCUSSION LOGS, ARCHIVE) */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  animation: fadeIn 0.2s ease;
}

.drawer-backdrop.open {
  display: block;
}

.slide-drawer {
  position: fixed;
  top: 0;
  right: -520px;
  width: 500px;
  max-width: 90vw;
  height: 100vh;
  background: white;
  z-index: 210;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-backdrop.open .slide-drawer {
  right: 0;
}

.drawer-header {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--amani-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-tabs-nav {
  display: flex;
  gap: 8px;
  padding: 0.75rem 1.25rem;
  background: #F8FAFC;
  border-bottom: 1px solid var(--amani-border);
}

.drawer-tab-btn {
  background: white;
  border: 1px solid var(--amani-border);
  color: var(--amani-text-dark);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.drawer-tab-btn svg {
  stroke: currentColor;
  transition: var(--transition);
}

.drawer-tab-btn.active {
  background: var(--amani-deep-blue);
  color: white;
  border-color: var(--amani-deep-blue);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(6, 65, 138, 0.2);
}

.drawer-tab-btn.active svg {
  stroke: white;
}

/* Minimalist Search & Date Filter Bar */
.drawer-filter-bar {
  display: flex;
  gap: 8px;
  padding: 0.75rem 1.25rem;
  background: white;
  border-bottom: 1px solid var(--amani-border);
}

.filter-search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  transition: var(--transition);
}

.filter-search-box:focus-within {
  border-color: var(--amani-roof-blue);
  background: white;
  box-shadow: 0 0 0 3px rgba(72, 203, 255, 0.15);
}

.filter-search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 0.8rem;
  color: var(--amani-text-dark);
}

.filter-date-box {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  position: relative;
}

.filter-date-box input[type="date"] {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.78rem;
  color: var(--amani-text-dark);
  font-family: inherit;
  cursor: pointer;
}

.btn-clear-filter {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: var(--amani-text-muted);
  line-height: 1;
  padding: 0 2px;
}

.btn-clear-filter:hover {
  color: #EF4444;
}

/* Multi-Select & Selection Highlighting */
.item-select-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--amani-deep-blue);
  margin: 0;
  border-radius: 4px;
}

.keypoint-item-card.is-selected,
.todo-drawer-item.is-selected,
.log-compact-card.is-selected {
  border-color: var(--amani-roof-blue) !important;
  background: #F0F9FF !important;
  box-shadow: 0 0 0 2px rgba(72, 203, 255, 0.35) !important;
}

/* Floating Share Action Bar */
.drawer-share-toolbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--amani-border);
  padding: 10px 16px;
  box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 100;
  animation: slideUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.share-toolbar-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--amani-deep-blue);
}

.share-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-share-action {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  color: var(--amani-deep-blue);
  padding: 5px 11px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-share-action:hover {
  background: var(--amani-blue-soft);
  border-color: var(--amani-roof-blue);
  transform: translateY(-1px);
}

.btn-share-action.btn-wa-share {
  background: #DCFCE7;
  border-color: #86EFAC;
  color: #15803D;
}

.btn-share-action.btn-wa-share:hover {
  background: #BBF7D0;
}

.btn-share-action svg {
  stroke: currentColor;
}

/* Compact Log Cards */
.log-compact-card {
  border: 1px solid var(--amani-border);
  border-radius: 12px;
  background: white;
  padding: 12px 14px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.log-compact-card:hover {
  border-color: #BAE6FD;
  box-shadow: 0 2px 10px rgba(6, 65, 138, 0.05);
}

.log-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.log-date-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--amani-deep-blue);
  background: var(--amani-blue-ice);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.log-card-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--amani-deep-blue);
  margin-bottom: 4px;
}

.log-card-snippet {
  font-size: 0.8rem;
  color: var(--amani-text-dark);
  line-height: 1.45;
  max-height: 60px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.3s ease;
}

.log-card-snippet.expanded {
  max-height: 500px;
  overflow-y: auto;
}

.log-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed #E2E8F0;
}

.btn-card-outlined {
  background: transparent;
  border: 1px solid #CBD5E1;
  color: var(--amani-deep-blue);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-card-outlined:hover {
  background: var(--amani-blue-soft);
  border-color: var(--amani-roof-blue);
}

.btn-card-outlined svg {
  stroke: currentColor;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.drawer-tab-pane {
  display: none;
  animation: fadeIn 0.25s ease;
}

.drawer-tab-pane.active {
  display: block !important;
}

/* Inside Drawer Components */
.todo-drawer-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #F1F5F9;
}

.todo-drawer-item.completed .todo-drawer-title {
  text-decoration: line-through;
  color: var(--amani-text-light);
}

.todo-drawer-title {
  font-size: 0.85rem;
  font-weight: 500;
}

.todo-drawer-sub {
  font-size: 0.72rem;
  color: var(--amani-text-muted);
  margin-top: 2px;
}

.log-raw-pre {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: pre-wrap;
  color: var(--amani-text-dark);
  font-family: inherit;
}

.archive-item-card {
  border: 1px solid var(--amani-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: white;
  cursor: pointer;
  transition: var(--transition);
}

.archive-item-card:hover {
  border-color: var(--amani-roof-blue);
  box-shadow: var(--shadow-sm);
}

.archive-item-card.active {
  border-color: var(--amani-deep-blue);
  background: var(--amani-blue-soft);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .chatgpt-header {
    padding: 0.6rem 1rem;
  }
  .chat-messages-area {
    padding: 1rem 0.75rem 6.5rem 0.75rem;
  }
  .chatgpt-input-container {
    padding: 0 0.75rem 0.75rem 0.75rem;
  }
  .slide-drawer {
    width: 100%;
    max-width: 100vw;
  }
}

/* WhatsApp Integration Modal & Header Styles */
.btn-whatsapp-header {
  background: #F0FDF4;
  color: #15803D;
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-whatsapp-header:hover {
  background: #DCFCE7;
  border-color: #22C55E;
  box-shadow: 0 2px 10px rgba(34, 197, 94, 0.2);
}

.wa-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94A3B8;
  display: inline-block;
}

.wa-status-dot.active {
  background: #22C55E;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
}

.custom-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease-out;
}

.custom-modal-dialog {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--amani-border);
}

.custom-modal-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--amani-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.custom-modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
}

.btn-close-modal {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  color: #64748B;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.btn-close-modal:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.wa-status-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 0.9rem;
}

.wa-badge-status {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.wa-badge-status.connected {
  background: #DCFCE7;
  color: #166534;
}

.wa-badge-status.disconnected {
  background: #FEE2E2;
  color: #991B1B;
}

.wa-notice-box {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-md);
  color: #1E3A8A;
}

.wa-groups-list-box {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--amani-border);
  border-radius: var(--radius-md);
  background: #FFFFFF;
}

.wa-group-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid #F1F5F9;
  cursor: pointer;
  transition: var(--transition);
}

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

.wa-group-item:hover {
  background: var(--amani-blue-soft);
}

.wa-group-item.is-selected {
  background: #F0FDF4;
  border-left: 3px solid #22C55E;
}

.btn-outline-sm {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #334155;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline-sm:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
}

.btn-text-sm {
  background: transparent;
  border: none;
  color: var(--amani-deep-blue);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-text-sm:hover {
  text-decoration: underline;
}

.btn-primary-sm {
  background: var(--amani-deep-blue);
  color: #FFFFFF;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary-sm:hover {
  background: var(--amani-blue-900);
}

