/* WhatsApp Cloud Module - Complete Styles */

/* ============================================
   LAYOUT & STRUCTURE
   ============================================ */

/* Override page styles for WhatsApp Cloud */
#whatsapp-cloud-page {
  padding: 0 !important;
  margin: 0 !important;
  height: calc(100vh - 60px);
  overflow: hidden;
  background: var(--light);
}

#whatsapp-cloud-page .page-header {
  display: none !important;
}

/* Ensure the workspace takes full available space */
.main-content #whatsapp-cloud-page {
  margin: -20px !important;
  height: calc(100vh - 20px);
}

.wc-workspace {
  display: flex;
  height: 100%;
  width: 100%;
  background: var(--light);
  overflow: hidden;
  position: relative;
}

.wc-workspace.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1500;
  height: 100vh;
  margin: 0;
  background: #fff;
}

/* Internal Sidebar */
.wc-internal-sidebar {
  width: 280px;
  background: white;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
}

.wc-sidebar-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.wc-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.wc-sidebar-logo i {
  color: #25d366;
  font-size: 24px;
}

.wc-sidebar-account-selector {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.wc-sidebar-account-current {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--light);
  border-radius: 8px;
  transition: all 0.2s;
}

.wc-sidebar-account-current:hover {
  background: #e5e7eb;
}

.wc-sidebar-account-avatar {
  width: 40px;
  height: 40px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}

.wc-sidebar-account-info {
  flex: 1;
  min-width: 0;
}

.wc-sidebar-account-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wc-sidebar-account-phone {
  font-size: 12px;
  color: var(--text-light);
  display: block;
}

.wc-sidebar-account-status {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.wc-sidebar-account-status.connected {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.wc-sidebar-account-status.pending {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.wc-sidebar-account-status.disconnected {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.wc-sidebar-account-chevron {
  color: var(--text-light);
  font-size: 12px;
  margin-left: auto;
}

/* Account Dropdown */
.wc-account-dropdown {
  position: absolute;
  top: 100%;
  left: 12px;
  right: 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
  margin-top: 4px;
}

.wc-account-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid var(--border);
}

.wc-account-dropdown-item:last-child {
  border-bottom: none;
}

.wc-account-dropdown-item:hover {
  background: var(--light);
}

.wc-account-dropdown-item.active {
  background: rgba(37, 211, 102, 0.1);
}

.wc-account-dropdown-icon {
  width: 36px;
  height: 36px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}

.wc-account-dropdown-info {
  flex: 1;
  min-width: 0;
}

.wc-account-dropdown-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wc-account-dropdown-phone {
  font-size: 12px;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wc-account-dropdown-check {
  color: #25d366;
  font-size: 16px;
  flex-shrink: 0;
}

.wc-sidebar-account-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 14px;
}

.wc-sidebar-search {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.wc-sidebar-search i {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 14px;
  pointer-events: none;
}

.wc-sidebar-search input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  background: var(--light);
}

.wc-sidebar-conversations {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.wc-sidebar-conversation-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 4px;
}

.wc-sidebar-conversation-item:hover {
  background: var(--light);
}

.wc-sidebar-conversation-item.active {
  background: rgba(0, 161, 73, 0.1);
  border: 1px solid rgba(0, 161, 73, 0.2);
}

.wc-sidebar-conversation-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}

.wc-sidebar-conversation-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.wc-sidebar-conversation-avatar span {
  text-transform: uppercase;
}

.wc-sidebar-conversation-content {
  flex: 1;
  min-width: 0;
}

.wc-sidebar-conversation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.wc-sidebar-conversation-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wc-sidebar-conversation-time {
  font-size: 11px;
  color: var(--text-light);
  flex-shrink: 0;
}

.wc-sidebar-conversation-preview {
  font-size: 12px;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wc-sidebar-conversation-tags {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.wc-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 161, 73, 0.1);
  color: var(--primary);
  font-weight: 500;
}

.wc-tag-small {
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(0, 161, 73, 0.1);
  color: var(--primary);
  font-weight: 500;
}

.wc-sidebar-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
}

.wc-sidebar-empty i {
  font-size: 48px;
  color: var(--border);
  margin-bottom: 16px;
  display: block;
}

.wc-sidebar-empty h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.wc-sidebar-empty p {
  font-size: 12px;
}

.wc-sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

.wc-sidebar-add-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.wc-sidebar-add-btn:hover {
  background: #00a149;
}

/* Main Content Area */
.wc-main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Horizontal Tabs */
.wc-horizontal-tabs {
  background: white;
  border-bottom: 2px solid var(--border);
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.wc-tabs-container {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 20px;
}

.wc-tabs-container::-webkit-scrollbar {
  display: none;
}

.wc-horizontal-tab {
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.wc-horizontal-tab:hover {
  color: var(--primary);
  background: rgba(0, 161, 73, 0.05);
}

.wc-horizontal-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(0, 161, 73, 0.08);
  font-weight: 600;
}

.wc-horizontal-tab i {
  font-size: 16px;
}

/* Tab Content */
.wc-tab-content {
  flex: 1;
  overflow: hidden;
  background: #f8f9fa;
}

.wc-tab-panel {
  display: none;
  flex: 1;
  overflow: hidden;
  height: 100%;
  animation: fadeIn 0.2s ease-in;
}

.wc-tab-panel.active {
  display: flex;
  flex-direction: column;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   SALES PIPELINE
   ============================================ */

.wc-pipeline-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 20px;
}

.wc-pipeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.wc-pipeline-title-section {
  flex: 1;
}

.wc-pipeline-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.wc-pipeline-subtitle {
  font-size: 13px;
  color: var(--text-light);
}

.wc-pipeline-actions {
  display: flex;
  gap: 12px;
}

.wc-pipeline-board {
  flex: 1;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 16px;
  position: relative;
}

.wc-pipeline-column {
  min-width: 300px;
  max-width: 300px;
  background: white;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  height: fit-content;
  max-height: 100%;
  cursor: grab;
  transition: all 0.2s;
}

.wc-pipeline-column:active {
  cursor: grabbing;
}

.wc-pipeline-column.dragging {
  opacity: 0.5;
  cursor: grabbing;
  transform: scale(0.95);
}

.wc-pipeline-column.drag-over {
  border: 2px solid var(--primary);
  box-shadow: 0 4px 12px rgba(0, 161, 73, 0.2);
  transform: scale(1.02);
}

.wc-pipeline-column-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  cursor: grab;
}

.wc-pipeline-column-header:active {
  cursor: grabbing;
}

.wc-pipeline-column-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.wc-pipeline-column-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.wc-pipeline-column-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.wc-pipeline-column-count {
  font-size: 12px;
  color: var(--text-light);
  background: var(--light);
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
}

.wc-pipeline-column-menu {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.wc-pipeline-column-menu:hover {
  background: var(--light);
  color: var(--text);
}

.wc-pipeline-column-body {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  min-height: 200px;
}

.wc-pipeline-column-body.drag-over {
  background: rgba(0, 161, 73, 0.05);
  border: 2px dashed var(--primary);
  border-radius: 8px;
}

.wc-pipeline-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  cursor: grab;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.wc-pipeline-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 161, 73, 0.1);
}

.wc-pipeline-card.dragging {
  opacity: 0.5;
  transform: rotate(3deg);
  cursor: grabbing;
}

.wc-pipeline-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.wc-pipeline-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}

.wc-pipeline-card-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.wc-pipeline-card-info {
  flex: 1;
  min-width: 0;
}

.wc-pipeline-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wc-pipeline-card-phone {
  font-size: 12px;
  color: var(--text-light);
}

.wc-pipeline-card-message {
  font-size: 13px;
  color: var(--text-light);
  background: var(--light);
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wc-pipeline-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wc-pipeline-card-time {
  font-size: 11px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.wc-pipeline-card-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.wc-pipeline-card-stage {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-top: 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s;
}

.wc-pipeline-card-stage i {
  font-size: 14px;
}

.wc-pipeline-card-stage span {
  font-weight: 600;
}

.wc-conversation-stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  margin-top: 6px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.2s;
}

.wc-conversation-stage-badge i {
  font-size: 12px;
}

.wc-conversation-stage-badge span {
  line-height: 1;
}

.wc-pipeline-add-column {
  min-width: 280px;
  background: transparent;
  border: 2px dashed var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-light);
  padding: 40px 20px;
  flex-shrink: 0;
}

.wc-pipeline-add-column:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 161, 73, 0.02);
}

.wc-pipeline-add-column i {
  font-size: 32px;
  margin-bottom: 12px;
}

.wc-pipeline-add-column span {
  font-size: 14px;
  font-weight: 500;
}

.wc-pipeline-navigation {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.wc-pipeline-nav-btn {
  width: 40px;
  height: 40px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wc-pipeline-nav-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ============================================
   FLOW BUILDER
   ============================================ */

.wc-flow-list-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
}

.wc-flow-list-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.wc-flow-list-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.wc-flow-list-subtitle {
  font-size: 13px;
  color: var(--text-light);
}

.wc-flow-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.wc-flow-empty-icon {
  font-size: 64px;
  color: var(--border);
  margin-bottom: 20px;
}

.wc-flow-empty-icon i {
  font-size: 64px;
}

.wc-flow-empty h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.wc-flow-empty p {
  font-size: 14px;
  margin-bottom: 20px;
}

.wc-flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.wc-flow-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.2s;
}

.wc-flow-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 161, 73, 0.1);
}

.wc-flow-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.wc-flow-card-icon {
  width: 44px;
  height: 44px;
  background: rgba(0, 161, 73, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 20px;
  flex-shrink: 0;
}

.wc-flow-card-info {
  flex: 1;
  min-width: 0;
}

.wc-flow-card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.wc-flow-card-trigger {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.wc-flow-card-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.wc-flow-card-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.wc-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e5e7eb;
  transition: 0.3s;
  border-radius: 24px;
}

.wc-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.wc-flow-card-toggle input:checked + .wc-toggle-slider {
  background-color: var(--primary);
}

.wc-flow-card-toggle input:checked + .wc-toggle-slider:before {
  transform: translateX(20px);
}

.wc-flow-card-body {
  margin-bottom: 16px;
}

.wc-flow-card-description {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 12px;
}

.wc-flow-card-stats {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-light);
}

.wc-flow-card-stats span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wc-flow-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Flow Editor */
.wc-flow-editor-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: white;
  display: flex;
  flex-direction: column;
}

.wc-flow-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: white;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.wc-flow-editor-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wc-flow-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.wc-flow-back-btn:hover {
  background: var(--light);
}

.wc-flow-editor-title h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.wc-flow-editor-id {
  font-size: 11px;
  color: var(--text-light);
  margin-right: 8px;
}

.wc-flow-editor-status {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.wc-flow-editor-status.active {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.wc-flow-editor-status.inactive {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

.wc-flow-editor-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wc-flow-editor-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.wc-flow-editor-sidebar {
  width: 260px;
  background: white;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

.wc-flow-editor-sidebar-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.wc-flow-editor-sidebar-header h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.wc-flow-editor-sidebar-header p {
  font-size: 12px;
  color: var(--text-light);
}

.wc-flow-node-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.wc-flow-node-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: grab;
  transition: all 0.2s;
  position: relative;
}

.wc-flow-node-item:hover {
  border-color: var(--primary);
  background: rgba(0, 161, 73, 0.05);
  transform: translateX(4px);
}

.wc-flow-node-item:active {
  cursor: grabbing;
  transform: scale(0.95);
}

.wc-flow-node-item.dragging {
  opacity: 0.5;
}

.wc-flow-node-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  color: white;
}

.wc-flow-node-item-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  flex: 1;
}

.wc-flow-node-item-drag-hint {
  position: absolute;
  right: 8px;
  color: var(--text-light);
  font-size: 10px;
  opacity: 0;
  transition: opacity 0.2s;
}

.wc-flow-node-item:hover .wc-flow-node-item-drag-hint {
  opacity: 1;
}

.wc-flow-node-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  color: white;
}

/* Flow Canvas */
.wc-flow-editor-canvas {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #f8f9fa;
}

.wc-flow-canvas-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.wc-flow-canvas-btn {
  width: 36px;
  height: 36px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  color: var(--text);
}

.wc-flow-canvas-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.wc-flow-canvas-inner {
  width: 100%;
  height: 100%;
  position: relative;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: -1px -1px;
}

.wc-flow-canvas-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--text-light);
}

.wc-flow-canvas-empty i {
  font-size: 48px;
  color: var(--border);
  margin-bottom: 12px;
  display: block;
}

.wc-flow-canvas-empty p {
  font-size: 14px;
  margin: 0;
}

/* Flow Nodes */
.wc-flow-node {
  position: absolute;
  min-width: 200px;
  max-width: 300px;
  background: white;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  cursor: move;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wc-flow-node:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 161, 73, 0.15);
  z-index: 5;
}

.wc-flow-node.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 161, 73, 0.2);
  z-index: 10;
}

.wc-flow-node-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.wc-flow-node-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  color: white;
}

.wc-flow-node-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.wc-flow-node-menu {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.2s;
}

.wc-flow-node-menu:hover {
  background: var(--light);
  color: var(--text);
}

.wc-flow-node-content {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.4;
  margin-bottom: 8px;
  word-wrap: break-word;
}

.wc-flow-node-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-light);
}

.wc-flow-node-type {
  font-weight: 500;
  text-transform: capitalize;
}

/* Connection Points */
.wc-flow-node-connector {
  position: absolute;
  width: 12px;
  height: 12px;
  background: white;
  border: 2px solid var(--primary);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 15;
}

.wc-flow-node-connector:hover {
  width: 16px;
  height: 16px;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 161, 73, 0.2);
}

.wc-flow-node-connector.input {
  top: 50%;
  left: -6px;
  transform: translateY(-50%);
}

.wc-flow-node-connector.output {
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
}

/* Flow Connections (SVG Lines) */
.wc-flow-connections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.wc-flow-connection-line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
  transition: all 0.2s;
}

.wc-flow-connection-line:hover {
  stroke-width: 3;
  stroke: #00a149;
}

.wc-flow-connection-arrow {
  fill: var(--primary);
}

/* Node Type Colors */
.wc-flow-node[data-type="send_message"] {
  border-left: 4px solid #3b82f6;
}

.wc-flow-node[data-type="send_media"] {
  border-left: 4px solid #8b5cf6;
}

.wc-flow-node[data-type="button_message"] {
  border-left: 4px solid #ec4899;
}

.wc-flow-node[data-type="list_message"] {
  border-left: 4px solid #14b8a6;
}

.wc-flow-node[data-type="cta_message"] {
  border-left: 4px solid #f97316;
}

.wc-flow-node[data-type="menu_options"] {
  border-left: 4px solid #6366f1;
}

.wc-flow-node[data-type="collect_input"] {
  border-left: 4px solid #10b981;
}

.wc-flow-node[data-type="save_contact"] {
  border-left: 4px solid #06b6d4;
}

.wc-flow-node[data-type="update_contact"] {
  border-left: 4px solid #84cc16;
}

.wc-flow-node[data-type="ai_control"] {
  border-left: 4px solid #a855f7;
}

.wc-flow-node[data-type="condition"] {
  border-left: 4px solid #f59e0b;
}

.wc-flow-node[data-type="delay"] {
  border-left: 4px solid #6b7280;
}

.wc-flow-node[data-type="webhook"] {
  border-left: 4px solid #ef4444;
}

.wc-flow-node[data-type="assign_agent"] {
  border-left: 4px solid #0ea5e9;
}

.wc-flow-node[data-type="add_tag"] {
  border-left: 4px solid #22c55e;
}

.wc-flow-node[data-type="move_stage"] {
  border-left: 4px solid #eab308;
}

/* Node Dragging States */
.wc-flow-node.dragging {
  opacity: 0.6;
  cursor: grabbing;
  transform: scale(1.05);
  z-index: 100;
}

.wc-flow-canvas-inner.connecting {
  cursor: crosshair;
}

.wc-flow-node.connection-source {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 161, 73, 0.3);
}

.wc-flow-node.connection-target {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

/* Node Animations */
@keyframes nodeAppear {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.wc-flow-node.new {
  animation: nodeAppear 0.3s ease-out;
}

/* Connection Drawing */
.wc-flow-connection-temp {
  stroke: var(--primary);
  stroke-width: 2;
  stroke-dasharray: 5, 5;
  animation: dashAnimation 0.5s linear infinite;
}

@keyframes dashAnimation {
  to {
    stroke-dashoffset: -10;
  }
}

/* Tooltip for nodes */
.wc-flow-node-tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.2s;
}

.wc-flow-node-tooltip.show {
  opacity: 1;
}

/* Flow Editor Properties Panel */
.wc-flow-editor-properties {
  width: 320px;
  background: white;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

.wc-flow-properties-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.wc-flow-properties-header h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.wc-flow-properties-header p {
  font-size: 12px;
  color: var(--text-light);
}

.wc-flow-properties-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.wc-flow-properties-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
}

.wc-flow-properties-empty i {
  font-size: 48px;
  color: var(--border);
  margin-bottom: 12px;
  display: block;
}

.wc-flow-properties-empty p {
  font-size: 13px;
}

.wc-flow-properties-section {
  margin-bottom: 20px;
}

.wc-flow-properties-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.wc-flow-properties-field {
  margin-bottom: 16px;
}

.wc-flow-properties-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.wc-flow-properties-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  transition: all 0.2s;
}

.wc-flow-properties-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 161, 73, 0.1);
}

.wc-flow-properties-textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  min-height: 80px;
  resize: vertical;
  font-family: inherit;
  transition: all 0.2s;
}

.wc-flow-properties-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 161, 73, 0.1);
}

.wc-flow-properties-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
}

.wc-flow-properties-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 161, 73, 0.1);
}

.wc-flow-properties-help {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
  line-height: 1.4;
}

.wc-flow-properties-actions {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--border);
  background: var(--light);
}

.wc-flow-properties-btn {
  flex: 1;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.wc-flow-properties-btn-primary {
  background: var(--primary);
  color: white;
}

.wc-flow-properties-btn-primary:hover {
  background: #00a149;
}

.wc-flow-properties-btn-danger {
  background: var(--danger);
  color: white;
}

.wc-flow-properties-btn-danger:hover {
  background: #dc2626;
}

/* FAQ Management */
.wc-faq-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
}

.wc-faq-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.wc-faq-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.wc-faq-subtitle {
  font-size: 13px;
  color: var(--text-light);
}

.wc-faq-actions {
  display: flex;
  gap: 12px;
}

.wc-faq-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.wc-faq-search {
  position: relative;
  flex: 1;
}

.wc-faq-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}

.wc-faq-search input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: white;
}

.wc-faq-filters {
  display: flex;
  gap: 12px;
}

.wc-faq-filters select {
  min-width: 150px;
}

/* FAQ Grid Layout */
.wc-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  flex: 1;
  overflow-y: auto;
  padding: 4px;
}

/* FAQ Card */
.wc-faq-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  height: fit-content;
}

.wc-faq-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 161, 73, 0.1);
  transform: translateY(-2px);
}

.wc-faq-card.inactive {
  opacity: 0.6;
}

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

.wc-faq-card-category {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  color: white;
  font-weight: 500;
  text-transform: capitalize;
}

.wc-faq-card-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.wc-faq-card-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.wc-toggle-slider-sm {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e5e7eb;
  transition: 0.3s;
  border-radius: 22px;
}

.wc-toggle-slider-sm:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.wc-faq-card-toggle input:checked + .wc-toggle-slider-sm {
  background-color: var(--primary);
}

.wc-faq-card-toggle input:checked + .wc-toggle-slider-sm:before {
  transform: translateX(18px);
}

.wc-faq-card-body {
  flex: 1;
  margin-bottom: 12px;
}

.wc-faq-card-question {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.wc-faq-card-answer {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wc-faq-card-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  min-height: 24px;
}

.wc-faq-keyword {
  font-size: 10px;
  padding: 3px 8px;
  background: rgba(0, 161, 73, 0.1);
  color: var(--primary);
  border-radius: 4px;
  font-weight: 500;
}

.wc-faq-keyword-more {
  font-size: 10px;
  padding: 3px 8px;
  background: var(--light);
  color: var(--text-light);
  border-radius: 4px;
  font-weight: 500;
}

.wc-faq-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.wc-faq-actions {
  display: flex;
  gap: 12px;
}

.wc-faq-search {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.wc-faq-search-wrapper {
  position: relative;
  flex: 1;
}

.wc-faq-search-wrapper i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

.wc-faq-search-input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: white;
}

.wc-faq-list {
  flex: 1;
  overflow-y: auto;
}

.wc-faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.2s;
}

.wc-faq-item:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 161, 73, 0.1);
}

.wc-faq-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.wc-faq-item-question {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.wc-faq-item-actions {
  display: flex;
  gap: 8px;
}

.wc-faq-item-btn {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.wc-faq-item-btn:hover {
  background: var(--light);
  color: var(--text);
}

.wc-faq-item-btn.danger:hover {
  color: var(--danger);
}

.wc-faq-item-answer {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 12px;
}

.wc-faq-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wc-faq-item-meta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.wc-faq-item-category {
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(0, 161, 73, 0.1);
  color: var(--primary);
  border-radius: 4px;
  font-weight: 500;
}

.wc-faq-item-keywords {
  font-size: 11px;
  color: var(--text-light);
}

.wc-faq-item-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-light);
}

.wc-faq-item-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.wc-faq-item-status-dot.inactive {
  background: var(--text-light);
}

.wc-faq-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
  grid-column: 1 / -1;
}

.wc-faq-empty-icon {
  font-size: 64px;
  color: var(--border);
  margin-bottom: 20px;
}

.wc-faq-empty-icon i {
  font-size: 64px;
}

.wc-faq-empty h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.wc-faq-empty p {
  font-size: 14px;
  margin-bottom: 20px;
}

/* Campaigns */
.wc-campaigns-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
}

.wc-campaigns-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.wc-campaigns-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.wc-campaigns-subtitle {
  font-size: 13px;
  color: var(--text-light);
}

.wc-campaigns-actions {
  display: flex;
  gap: 12px;
}

/* Campaigns Section */
.wc-campaigns-section {
  margin-bottom: 32px;
}

.wc-campaigns-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.wc-campaigns-section-title i {
  color: var(--primary);
  font-size: 18px;
}

.wc-campaigns-section-count {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(0, 161, 73, 0.1);
  color: var(--primary);
  font-weight: 500;
  margin-left: auto;
}

.wc-campaigns-empty {
  text-align: center;
  padding: 40px 20px;
  background: var(--light);
  border-radius: 12px;
  color: var(--text-light);
}

.wc-campaigns-empty i {
  font-size: 48px;
  color: var(--border);
  margin-bottom: 12px;
  display: block;
}

.wc-campaigns-empty p {
  font-size: 14px;
  margin: 0;
}

/* Templates Grid */
.wc-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.wc-template-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.wc-template-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 161, 73, 0.1);
  transform: translateY(-2px);
}

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

.wc-template-card-category {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.wc-template-card-category i {
  font-size: 12px;
}

.wc-template-card-status {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.wc-template-card-body {
  flex: 1;
  margin-bottom: 12px;
}

.wc-template-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  word-break: break-word;
}

.wc-template-card-language {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-light);
  background: var(--light);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.wc-template-card-header-text {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 8px;
  padding: 8px;
  background: rgba(0, 161, 73, 0.05);
  border-left: 3px solid var(--primary);
  border-radius: 4px;
}

.wc-template-card-preview {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wc-template-card-footer {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.wc-template-card-footer .btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  padding: 8px 12px;
}

/* Campaign Builder */
.wc-campaigns-builder {
  margin-bottom: 32px;
}

.wc-campaigns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.wc-campaigns-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.2s;
}

.wc-campaigns-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 161, 73, 0.08);
}

.wc-campaigns-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.wc-campaigns-card h4 i {
  color: var(--primary);
  font-size: 16px;
}

.wc-campaigns-card .form-group {
  margin-bottom: 16px;
}

.wc-campaigns-card .form-group:last-child {
  margin-bottom: 0;
}

.wc-campaigns-card label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.wc-campaigns-card .form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  transition: all 0.2s;
  background: white;
}

.wc-campaigns-card .form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 161, 73, 0.1);
}

.wc-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.wc-chip {
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 16px;
  background: var(--light);
  color: var(--text-light);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border);
}

.wc-chip:hover {
  background: rgba(0, 161, 73, 0.1);
  color: var(--primary);
  border-color: var(--primary);
}

.wc-chip.active {
  background: rgba(0, 161, 73, 0.1);
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
}

/* Campaign Preview */
.wc-campaigns-preview {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.wc-campaigns-preview-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.wc-campaigns-preview-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wc-campaigns-preview-title i {
  color: var(--primary);
}

.wc-campaigns-preview-content {
  display: flex;
  justify-content: center;
  padding: 24px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  margin-bottom: 20px;
}

.wc-campaigns-preview-phone {
  width: 100%;
  max-width: 360px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.wc-campaigns-preview-phone-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #25d366;
  color: white;
}

.wc-campaigns-preview-phone-avatar {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #25d366;
  font-size: 18px;
}

.wc-campaigns-preview-phone-name {
  font-size: 14px;
  font-weight: 600;
}

.wc-campaigns-preview-phone-body {
  padding: 20px;
  background: #e5ddd5;
  min-height: 200px;
}

.wc-campaigns-preview-message {
  background: white;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  max-width: 85%;
  position: relative;
}

.wc-campaigns-preview-message::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 8px 8px 0;
  border-color: transparent white transparent transparent;
}

.wc-campaigns-preview-message-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 6px;
  word-wrap: break-word;
}

.wc-campaigns-preview-message-time {
  font-size: 10px;
  color: var(--text-light);
  text-align: right;
}

.wc-campaigns-preview-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.wc-campaigns-preview-actions .btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
}

.wc-campaigns-header-actions {
  display: flex;
  gap: 12px;
}

/* Connection Page */
.wc-connection-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
}

.wc-connection-header {
  margin-bottom: 24px;
}

.wc-connection-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.wc-connection-subtitle {
  font-size: 14px;
  color: var(--text-light);
}

.wc-connection-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.wc-connection-status-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wc-connection-status-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wc-connection-status-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: capitalize;
}

.wc-connection-status-value.connected,
.wc-connection-status-value.verified,
.wc-connection-status-value.synced {
  color: #10b981;
}

.wc-connection-status-value.pending {
  color: #f59e0b;
}

.wc-connection-status-value.disconnected,
.wc-connection-status-value.error {
  color: #ef4444;
}

.wc-connection-facebook {
  background: linear-gradient(135deg, #1877f2 0%, #0c63d4 100%);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: 0 4px 16px rgba(24, 119, 242, 0.2);
}

.wc-connection-facebook-content {
  display: flex;
  gap: 24px;
  align-items: center;
  flex: 1;
}

.wc-connection-facebook-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}

.wc-connection-facebook-text h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: white;
}

.wc-connection-facebook-text p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
  opacity: 0.95;
}

.wc-connection-facebook-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wc-connection-facebook-benefits li {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.95;
}

.wc-connection-facebook-benefits li i {
  font-size: 12px;
  color: #4ade80;
}

.wc-connection-facebook-btn {
  background: white;
  color: #1877f2;
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wc-connection-facebook-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wc-connection-facebook-btn i {
  font-size: 18px;
}

.wc-connection-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 32px 0;
  color: var(--text-light);
}

.wc-connection-divider::before,
.wc-connection-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.wc-connection-divider span {
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wc-connection-manual {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
}

.wc-connection-manual h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.wc-connection-manual-desc {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.6;
}

.wc-connection-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.wc-connection-form-grid .form-group {
  margin-bottom: 0;
}

.wc-connection-form-grid .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.wc-connection-form-grid .form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  transition: all 0.2s;
}

.wc-connection-form-grid .form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 161, 73, 0.1);
}

.wc-connection-form-grid .form-text {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
  line-height: 1.4;
}

.wc-connection-webhook {
  margin-top: 32px;
  padding: 24px;
  background: var(--light);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.wc-connection-webhook h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wc-connection-webhook h4::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
}

.wc-connection-webhook-desc {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.5;
}

.wc-connection-webhook-url {
  display: flex;
  gap: 12px;
  align-items: center;
}

.wc-connection-webhook-url input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  background: white;
  font-family: 'Courier New', monospace;
  color: var(--text);
}

.wc-connection-webhook-url input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 161, 73, 0.1);
}

.wc-connection-form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid var(--border);
}

.wc-connection-form-actions .btn {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wc-connection-accounts {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--border);
}

.wc-connection-accounts h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wc-connection-accounts h3::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--primary);
  border-radius: 2px;
}

.wc-connection-accounts-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--light);
  border-radius: 12px;
  color: var(--text-light);
}

.wc-connection-accounts-empty i {
  font-size: 56px;
  color: var(--border);
  margin-bottom: 16px;
  display: block;
}

.wc-connection-accounts-empty h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.wc-connection-accounts-empty p {
  font-size: 14px;
  margin: 0;
}

.wc-connection-accounts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wc-connection-account-item {
  background: white;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
  cursor: pointer;
}

.wc-connection-account-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 161, 73, 0.1);
  transform: translateY(-2px);
}

.wc-connection-account-item.active {
  border-color: var(--primary);
  background: rgba(0, 161, 73, 0.02);
  box-shadow: 0 0 0 3px rgba(0, 161, 73, 0.1);
}

.wc-connection-account-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.wc-connection-account-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  flex-shrink: 0;
}

.wc-connection-account-info {
  flex: 1;
  min-width: 0;
}

.wc-connection-account-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wc-connection-account-info p {
  font-size: 13px;
  color: var(--text-light);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wc-connection-account-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wc-connection-account-status {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 16px;
  font-weight: 600;
  text-transform: capitalize;
  white-space: nowrap;
}

.wc-connection-account-status.connected {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.wc-connection-account-status.pending {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.wc-connection-account-status.disconnected {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.wc-connection-account-actions {
  display: flex;
  gap: 8px;
}

.wc-connection-account-btn {
  width: 36px;
  height: 36px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text);
  font-size: 14px;
}

.wc-connection-account-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: scale(1.05);
}

.wc-connection-account-btn.danger:hover {
  background: var(--danger);
  border-color: var(--danger);
}

/* Facebook Setup Modal Styles */
.wc-facebook-setup-required {
  text-align: center;
  padding: 20px;
}

.wc-facebook-setup-icon {
  width: 80px;
  height: 80px;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #f59e0b;
  font-size: 36px;
}

.wc-facebook-setup-required h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.wc-facebook-setup-required > p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.6;
}

.wc-facebook-setup-steps {
  background: var(--light);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  text-align: left;
}

.wc-facebook-setup-steps h5 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.wc-facebook-setup-steps ol {
  margin: 0;
  padding-left: 20px;
}

.wc-facebook-setup-steps li {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.5;
}

.wc-facebook-setup-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.wc-facebook-setup-links .btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 13px;
}

.wc-facebook-setup-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
  color: #3b82f6;
  font-size: 12px;
  font-weight: 500;
}

.wc-facebook-setup-note i {
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .wc-workspace {
    margin: 0;
    height: 100vh;
  }

  .wc-internal-sidebar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  }

  .wc-horizontal-tab {
    padding: 12px 16px;
    font-size: 13px;
  }

  .wc-horizontal-tab span {
    display: none;
  }

  .wc-horizontal-tab i {
    margin-right: 0;
  }

  .wc-pipeline-board {
    padding: 12px;
  }

  .wc-pipeline-column {
    min-width: 280px;
    max-width: 280px;
  }

  .wc-horizontal-tab {
    padding: 12px 16px;
    font-size: 13px;
  }

  .wc-flow-editor-sidebar {
    width: 220px;
  }

  .wc-flow-editor-properties {
    width: 280px;
  }

  /* Flow Builder Mobile */
  .wc-flow-editor-body {
    flex-direction: column;
  }

  .wc-flow-editor-sidebar {
    width: 100%;
    max-height: 200px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .wc-flow-node-list {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    padding: 12px;
  }

  .wc-flow-node-item {
    min-width: 140px;
    margin-right: 8px;
    margin-bottom: 0;
  }

  .wc-flow-editor-properties {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 50vh;
    border-left: none;
    border-top: 1px solid var(--border);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 50;
  }

  .wc-flow-editor-properties.show {
    transform: translateY(0);
  }

  .wc-flow-node {
    min-width: 160px;
    max-width: 240px;
  }

  /* Campaigns Mobile */
  .wc-templates-grid {
    grid-template-columns: 1fr;
  }

  .wc-campaigns-grid {
    grid-template-columns: 1fr;
  }

  .wc-campaigns-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .wc-campaigns-header-actions {
    width: 100%;
    flex-direction: column;
  }

  .wc-campaigns-header-actions .btn {
    width: 100%;
  }

  .wc-campaigns-preview-phone {
    max-width: 100%;
  }

  .wc-campaigns-preview-actions {
    flex-direction: column;
  }

  .wc-campaigns-preview-actions .btn {
    width: 100%;
  }

  /* Connection Mobile */
  .wc-connection-status-grid {
    grid-template-columns: 1fr;
  }

  .wc-connection-facebook {
    flex-direction: column;
    padding: 24px;
  }

  .wc-connection-facebook-content {
    flex-direction: column;
    text-align: center;
  }

  .wc-connection-facebook-btn {
    width: 100%;
    justify-content: center;
  }

  .wc-connection-form-grid {
    grid-template-columns: 1fr;
  }

  .wc-connection-webhook-url {
    flex-direction: column;
  }

  .wc-connection-webhook-url input {
    width: 100%;
  }

  .wc-connection-webhook-url .btn {
    width: 100%;
  }

  .wc-connection-form-actions {
    flex-direction: column;
  }

  .wc-connection-form-actions .btn {
    width: 100%;
  }

  .wc-connection-account-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .wc-connection-account-right {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 1024px) {
  .wc-flow-editor-sidebar {
    width: 220px;
  }

  .wc-flow-editor-properties {
    width: 280px;
  }
}

/* Utility Classes */
.btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: #00a149;
}

.btn-secondary {
  background: var(--light);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #e5e7eb;
}

.btn-danger-outline {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
}

.btn-danger-outline:hover {
  background: var(--danger);
  color: white;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

/* Form Elements */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 161, 73, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.form-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: white;
  cursor: pointer;
}

/* CSS Variables (fallback) */
:root {
  --primary: #00a149;
  --secondary: #128c7e;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --light: #f3f4f6;
  --border: #e5e7eb;
  --text: #1f2937;
  --text-light: #6b7280;
}

/* ============================================
   CHAT MODAL - 3 COLUMN LAYOUT
   ============================================ */

.wc-chat-modal-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: white;
}

.wc-chat-layout {
  display: grid;
  grid-template-columns: 300px 1fr 320px;
  height: 100vh;
}

/* Left Sidebar - Conversations List */
.wc-chat-sidebar-left {
  background: white;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
}

.wc-chat-sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.wc-chat-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.wc-chat-back-btn:hover {
  background: var(--light);
}

.wc-chat-sidebar-header h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  flex: 1;
}

.wc-chat-search {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
}

.wc-chat-search i {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 14px;
}

.wc-chat-search input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  background: #f3f4f6;
}

.wc-chat-conversations-list {
  flex: 1;
  overflow-y: auto;
}

.wc-chat-conv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 1px solid #f3f4f6;
}

.wc-chat-conv-item:hover {
  background: #f9fafb;
}

.wc-chat-conv-item.active {
  background: #e5f3ff;
  border-left: 3px solid var(--primary);
}

.wc-chat-conv-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}

.wc-chat-conv-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.wc-chat-conv-content {
  flex: 1;
  min-width: 0;
}

.wc-chat-conv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.wc-chat-conv-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.wc-chat-conv-time {
  font-size: 11px;
  color: var(--text-light);
}

.wc-chat-conv-preview {
  font-size: 13px;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

/* Center - Chat Area */
.wc-chat-center {
  display: flex;
  flex-direction: column;
  background: #f0f2f5;
}

.wc-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: white;
  border-bottom: 1px solid #e5e7eb;
}

.wc-chat-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wc-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.wc-chat-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.wc-chat-info h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 2px 0;
}

.wc-chat-info p {
  font-size: 12px;
  color: var(--text-light);
  margin: 0;
}

.wc-chat-header-actions {
  display: flex;
  gap: 8px;
}

.wc-chat-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.wc-chat-action-btn:hover {
  background: #f3f4f6;
  color: var(--text);
}

.wc-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #efeae2;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect fill="%23efeae2" width="100" height="100"/></svg>');
}

.wc-chat-date-divider {
  text-align: center;
  margin: 20px 0;
}

.wc-chat-date-divider span {
  background: #e1f4fb;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: #667781;
  font-weight: 500;
}

.wc-chat-automation-badge {
  text-align: center;
  margin: 8px 0;
  font-size: 11px;
  color: #667781;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.wc-chat-automation-badge i {
  color: #25d366;
}

.wc-chat-message {
  display: flex;
  margin-bottom: 8px;
  animation: messageIn 0.2s ease-out;
}

@keyframes messageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wc-chat-message-received {
  justify-content: flex-start;
}

.wc-chat-message-sent {
  justify-content: flex-end;
}

.wc-chat-message-content {
  max-width: 65%;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.wc-chat-message-received .wc-chat-message-content {
  background: white;
  border-radius: 0 8px 8px 8px;
}

.wc-chat-message-sent .wc-chat-message-content {
  background: #d9fdd3;
  border-radius: 8px 0 8px 8px;
}

.wc-chat-message-content p {
  margin: 0 0 4px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #111b21;
}

.wc-chat-message-time {
  font-size: 11px;
  color: #667781;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.wc-chat-message-time i {
  font-size: 14px;
  color: #53bdeb;
}

.wc-chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f0f2f5;
  border-top: 1px solid #e5e7eb;
}

.wc-chat-attach-btn,
.wc-chat-emoji-btn,
.wc-chat-mic-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: #54656f;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.wc-chat-attach-btn:hover,
.wc-chat-emoji-btn:hover,
.wc-chat-mic-btn:hover {
  background: #d1d7db;
}

.wc-chat-input {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: white;
  font-size: 14px;
  outline: none;
}

/* Right Sidebar - Contact Info */
.wc-chat-sidebar-right {
  background: white;
  border-left: 1px solid #e5e7eb;
  overflow-y: auto;
}

.wc-chat-contact-profile {
  padding: 24px;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

.wc-chat-profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 32px;
  margin: 0 auto 16px;
}

.wc-chat-profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.wc-chat-contact-profile h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px 0;
}

.wc-chat-profile-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
}

.wc-chat-profile-info i {
  color: var(--text-light);
  width: 20px;
}

.wc-chat-section {
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 20px;
}

.wc-chat-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.wc-chat-section-header i {
  color: var(--text-light);
}

.wc-chat-section-header span {
  flex: 1;
}

.wc-chat-section-add {
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.wc-chat-section-add:hover {
  background: rgba(0, 161, 73, 0.1);
}

.wc-chat-section-content {
  font-size: 14px;
}

.wc-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(0, 161, 73, 0.1);
  color: var(--primary);
  border-radius: 16px;
  font-size: 12px;
  margin: 4px 4px 4px 0;
}

.wc-tag-remove {
  background: transparent;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.wc-tag-remove:hover {
  background: rgba(0, 161, 73, 0.2);
}

.wc-empty-text {
  color: var(--text-light);
  font-size: 13px;
  font-style: italic;
}

/* Responsive */
@media (max-width: 1200px) {
  .wc-chat-layout {
    grid-template-columns: 280px 1fr 280px;
  }
}

@media (max-width: 992px) {
  .wc-chat-layout {
    grid-template-columns: 1fr;
  }

  .wc-chat-sidebar-left,
  .wc-chat-sidebar-right {
    display: none;
  }
}


/* ============================================
   MODAL SYSTEM
   ============================================ */

.wc-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.wc-modal-overlay.active {
  opacity: 1;
}

.wc-modal {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.2s ease;
}

.wc-modal-overlay.active .wc-modal {
  transform: scale(1) translateY(0);
}

.wc-modal.large {
  max-width: 800px;
}

.wc-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.wc-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.wc-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}

.wc-modal-close:hover {
  background: var(--light);
  color: var(--text);
}

.wc-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.wc-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* Confirm Modal */
.wc-modal-confirm {
  max-width: 450px;
  text-align: center;
  padding: 32px 24px 24px;
}

.wc-modal-confirm-icon {
  font-size: 56px;
  margin-bottom: 20px;
  animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.wc-modal-confirm-content {
  margin-bottom: 24px;
}

.wc-modal-confirm-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.wc-modal-confirm-message {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.wc-modal-confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.wc-modal-confirm-actions .btn {
  min-width: 100px;
}

/* Alert Modal */
.wc-modal-alert {
  max-width: 450px;
  text-align: center;
  padding: 32px 24px 24px;
}

.wc-modal-alert-icon {
  font-size: 56px;
  margin-bottom: 20px;
  animation: scaleIn 0.3s ease-out;
}

.wc-modal-alert-content {
  margin-bottom: 24px;
}

.wc-modal-alert-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.wc-modal-alert-message {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.wc-modal-alert-actions {
  display: flex;
  justify-content: center;
}

.wc-modal-alert-actions .btn {
  min-width: 120px;
}

/* Checkbox Label */
.wc-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.wc-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}

.wc-checkbox-label span {
  font-size: 14px;
  color: var(--text);
}

/* Icon Picker */
.wc-icon-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.wc-icon-picker-item {
  width: 50px;
  height: 50px;
  border: 2px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 20px;
  color: var(--text-light);
}

.wc-icon-picker-item:hover {
  border-color: var(--primary);
  background: rgba(0, 161, 73, 0.05);
  color: var(--primary);
}

.wc-icon-picker-item.selected {
  border-color: var(--primary);
  background: rgba(0, 161, 73, 0.1);
  color: var(--primary);
}

/* Color Picker */
.wc-color-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.wc-color-picker-item {
  width: 40px;
  height: 40px;
  border: 3px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.wc-color-picker-item:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.wc-color-picker-item.selected {
  border-color: var(--text);
  transform: scale(1.1);
}

.wc-color-picker-item.selected::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  font-size: 18px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
  .wc-modal {
    width: 95%;
    max-height: 95vh;
  }

  .wc-modal.large {
    max-width: 95%;
  }

  .wc-modal-header {
    padding: 16px 20px;
  }

  .wc-modal-body {
    padding: 20px;
  }

  .wc-modal-footer {
    padding: 12px 20px;
  }

  .wc-icon-picker {
    grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
  }

  .wc-icon-picker-item {
    width: 45px;
    height: 45px;
  }
}


/* ============================================
   CONVERSATION VIEWER
   ============================================ */

.wc-conversation-viewer {
  width: 90vw;
  max-width: 1200px;
  height: 90vh;
  max-height: 800px;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

.wc-conversation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: white;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.wc-conversation-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wc-conversation-back-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.wc-conversation-back-btn:hover {
  background: var(--light);
}

.wc-conversation-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 16px;
}

.wc-conversation-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wc-conversation-info h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.wc-conversation-info p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.wc-conversation-header-right {
  display: flex;
  gap: 8px;
}

.wc-conversation-action-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.wc-conversation-action-btn:hover {
  background: var(--light);
}

.wc-conversation-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #f0f2f5;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wc-messages-loading,
.wc-messages-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  gap: 12px;
}

.wc-messages-loading i {
  font-size: 32px;
}

.wc-messages-empty i {
  font-size: 48px;
  color: #d1d5db;
}

.wc-message {
  display: flex;
  margin-bottom: 4px;
}

.wc-message.inbound {
  justify-content: flex-start;
}

.wc-message.outbound {
  justify-content: flex-end;
}

.wc-message-content {
  max-width: 65%;
  padding: 8px 12px;
  border-radius: 8px;
  position: relative;
}

.wc-message.inbound .wc-message-content {
  background: white;
  border-top-left-radius: 0;
}

.wc-message.outbound .wc-message-content {
  background: #dcf8c6;
  border-top-right-radius: 0;
}

.wc-message-text {
  margin: 0;
  font-size: 14px;
  color: var(--text);
  word-wrap: break-word;
  white-space: pre-wrap;
}

.wc-message-media {
  max-width: 100%;
}

.wc-message-media img,
.wc-message-media video {
  max-width: 100%;
  border-radius: 8px;
  cursor: pointer;
  display: block;
}

.wc-message-media audio {
  width: 100%;
}

.wc-message-caption {
  margin: 8px 0 0 0;
  font-size: 14px;
  color: var(--text);
}

.wc-message-document {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 6px;
}

.wc-message-document i {
  font-size: 24px;
  color: var(--primary);
}

.wc-message-document a {
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
}

.wc-message-document a:hover {
  text-decoration: underline;
}

.wc-message-location {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
}

.wc-message-location i {
  font-size: 20px;
  color: var(--danger);
}

.wc-message-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 4px;
}

.wc-message-time {
  font-size: 11px;
  color: rgba(0, 0, 0, 0.45);
}

.wc-message-status {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
}

.wc-conversation-input {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 16px;
  background: white;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.wc-conversation-attach-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.wc-conversation-attach-btn:hover {
  background: var(--light);
  color: var(--text);
}

.wc-conversation-input-wrapper {
  flex: 1;
  background: var(--light);
  border-radius: 20px;
  padding: 8px 16px;
}

.wc-conversation-input-wrapper textarea {
  width: 100%;
  border: none;
  background: transparent;
  resize: none;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  max-height: 120px;
  overflow-y: auto;
}

.wc-conversation-input-wrapper textarea::placeholder {
  color: var(--text-muted);
}

.wc-conversation-send-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.wc-conversation-send-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.wc-conversation-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Scrollbar styling for messages */
.wc-conversation-messages::-webkit-scrollbar {
  width: 6px;
}

.wc-conversation-messages::-webkit-scrollbar-track {
  background: transparent;
}

.wc-conversation-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.wc-conversation-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}


/* ============================================
   CLAIM INDICATORS
   ============================================ */

.wc-card-claimed-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 10;
}

.wc-card-viewing-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(59, 130, 246, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 10;
}

.wc-pipeline-card.claimed-by-other {
  opacity: 0.6;
  cursor: not-allowed;
}

.wc-pipeline-card.claimed-by-other:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wc-pipeline-card.claimed-by-me {
  border: 2px solid #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.wc-unread-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

/* ============================================
   WHATSAPP WEB NOTIFICATION
   ============================================ */

.wc-whatsapp-web-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 16px;
  z-index: 10000;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  max-width: 350px;
}

.wc-whatsapp-web-notification.show {
  transform: translateX(0);
}

.wc-notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wc-notification-content i {
  font-size: 32px;
  color: #25d366;
}

.wc-notification-content strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.wc-notification-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.wc-notification-content button {
  margin-left: auto;
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.wc-notification-content button:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

/* Mobile notification */
@media (max-width: 768px) {
  .wc-whatsapp-web-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
}
