@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --bg-primary: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
  --color-dark: #1d1d1f;
  --color-secondary: #636366;
  --color-muted: #8E8E93;
  
  --blue-primary: linear-gradient(135deg, #0A84FF, #0055C6);
  --red-danger: linear-gradient(135deg, #FF375F, #D70040);
  --green-success: linear-gradient(135deg, #30D158, #00A32E);
  --orange-warning: linear-gradient(135deg, #FF9F0A, #C93400);
  --purple-accent: linear-gradient(135deg, #BF5AF2, #8944AB);
  --teal-accent: linear-gradient(135deg, #66D4CF, #2A7A76);
  --yellow-accent: linear-gradient(135deg, #FFD60A, #FF9F0A);
  --brown-neutral: linear-gradient(135deg, #AC8E68, #7A5741);
  
  --white-translucent: rgba(255, 255, 255, 0.75);
  --white-translucent-heavy: rgba(255, 255, 255, 0.82);
  --shadow-light: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-btn: 0 4px 12px rgba(0, 0, 0, 0.1);
  
  --transition: all 0.2s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: var(--color-dark);
}

body {
  background: var(--bg-primary);
  overflow-x: hidden;
}

/* ===== APP SHELL ===== */
.app-shell {
  display: flex;
  min-height: 100vh;
  gap: 16px;
  padding: 16px;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 260px;
  background: var(--white-translucent);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-medium);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 16px;
  top: 16px;
  height: calc(100vh - 32px);
  z-index: 1000;
  overflow-y: auto;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.sidebar-logo-icon {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-logo-icon.logo-img {
  background: transparent;
  box-shadow: none;
  padding: 0;
  height: auto;
}

.sidebar-logo-icon.logo-img img {
  max-width: 140px;
  width: 100%;
  height: auto;
  display: block;
}

.sidebar-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 24px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  color: var(--color-dark);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.nav-item:hover {
  background: rgba(10, 132, 255, 0.08);
}

.nav-item.active {
  background: var(--blue-primary);
  color: white;
}

.nav-item i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

/* ===== MAIN CONTENT ===== */
.main-wrapper {
  flex-grow: 1;
  margin-left: 276px;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: var(--white-translucent);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-medium);
  border-radius: 18px;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  margin-bottom: 24px;
}

.topbar-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-dark);
}

.content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
  padding-right: 8px;
}

.content::-webkit-scrollbar {
  width: 8px;
}

.content::-webkit-scrollbar-track {
  background: transparent;
}

.content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--white-translucent);
  backdrop-filter: blur(12px);
  padding: 16px 20px;
  border-radius: 18px;
  box-shadow: var(--shadow-medium);
}

.page-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-dark);
}

.page-subtitle {
  margin: 4px 0 0 0;
  color: var(--color-muted);
  font-size: 14px;
}

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

.section-card {
  background: var(--white-translucent);
  border-radius: 18px;
  box-shadow: var(--shadow-medium);
  padding: 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark);
}

.section-subtitle {
  color: var(--color-muted);
  font-size: 13px;
}

.empty-state-modern {
  text-align: center;
  padding: 48px 20px;
  background: rgba(0,0,0,0.02);
  border-radius: 16px;
  border: 1px dashed rgba(0,0,0,0.05);
}

.empty-state-modern .icon {
  font-size: 42px;
  color: var(--color-muted);
  opacity: 0.3;
  margin-bottom: 10px;
}

/* ===== BUTTONS ===== */
.btn {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-btn);
  transition: var(--transition);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-btn);
}

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

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

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

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

.btn-outline {
  background: transparent;
  border: 2px solid #0A84FF;
  color: #0A84FF;
}

.btn-outline:hover {
  background: #0A84FF;
  color: white;
}

.btn-ghost {
  background: transparent;
  box-shadow: none;
  color: var(--color-dark);
}

.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.05);
}

.btn-full-width {
  width: 100%;
}

.btn-small {
  padding: 8px 12px;
  font-size: 13px;
}

/* ===== CARDS ===== */
.card {
  background: var(--white-translucent);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.card-header {
  margin-bottom: 20px;
}

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

.card-subtitle {
  font-size: 13px;
  color: var(--color-muted);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== FORMS ===== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
}

.form-input,
.form-textarea,
.form-select {
  padding: 12px 14px;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  color: var(--color-dark);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: #0A84FF;
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.1);
}

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

/* ===== LOGIN/REGISTER ===== */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg-primary);
}

.auth-card {
  background: var(--white-translucent-heavy);
  backdrop-filter: blur(14px);
  border-radius: 22px;
  padding: 32px;
  box-shadow: var(--shadow-medium);
  width: 380px;
}

.auth-header {
  margin-bottom: 32px;
  text-align: center;
}

.auth-logo {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(90deg, #2c2c2e, #787879);
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.auth-logo-img {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.auth-logo-img img {
  width: calc(100% - 32px); /* ocupa a largura da coluna com respiro lateral */
  max-width: none;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0 auto;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--color-secondary);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-footer {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
}

.auth-footer a {
  color: #0A84FF;
  text-decoration: none;
  font-weight: 600;
}

/* ===== DASHBOARD METRICS ===== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.metric-card {
  background: var(--white-translucent);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-light);
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0.8;
}

.metric-label {
  font-size: 13px;
  color: var(--color-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  padding-right: 58px;
}

.metric-value {
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1;
  letter-spacing: -0.03em;
  padding-right: 58px;
}

.metric-meta {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--color-muted);
  padding-right: 58px;
}

.dashboard-stat {
  min-width: 0;
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-stat-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  line-height: 1.2;
  min-width: 0;
}

.dashboard-stat.is-success {
  border: 1px solid rgba(16, 185, 129, 0.25);
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.9), rgba(255, 255, 255, 0.92));
}

.dashboard-stat.is-warning {
  border: 1px solid rgba(245, 158, 11, 0.22);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.94), rgba(255, 255, 255, 0.92));
}

.dashboard-stat.is-danger {
  border: 1px solid rgba(239, 68, 68, 0.22);
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.94), rgba(255, 255, 255, 0.92));
}

.dashboard-panel {
  min-width: 0;
}

.dashboard-panel .card-header,
.dashboard-panel .card-body {
  min-width: 0;
}

.dashboard-panel .text-xs,
.dashboard-panel .text-sm,
.dashboard-panel .font-semibold {
  min-width: 0;
}

/* ===== TABLES ===== */
.table-wrapper {
  background: var(--white-translucent);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table thead {
  background: #f5f7fa;
  border-bottom: 1px solid #d2d2d7;
}

.table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f5f7fa;
  font-size: 14px;
  color: var(--color-dark);
}

.table tbody tr:hover {
  background: #fafbfc;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.badge-success {
  background: rgba(48, 209, 88, 0.15);
  color: #00A32E;
}

.badge-danger {
  background: rgba(255, 55, 95, 0.15);
  color: #D70040;
}

.badge-warning {
  background: rgba(255, 159, 10, 0.15);
  color: #C93400;
}

.badge-info {
  background: rgba(10, 132, 255, 0.15);
  color: #0055C6;
}

/* ===== ALERTS ===== */
.alert {
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.alert-success {
  background: rgba(48, 209, 88, 0.15);
  color: #00A32E;
  border: 1px solid rgba(48, 209, 88, 0.3);
}

.alert-danger {
  background: rgba(255, 55, 95, 0.15);
  color: #D70040;
  border: 1px solid rgba(255, 55, 95, 0.3);
}

.alert-warning {
  background: rgba(255, 159, 10, 0.15);
  color: #C93400;
  border: 1px solid rgba(255, 159, 10, 0.3);
}

.alert-info {
  background: rgba(10, 132, 255, 0.15);
  color: #0055C6;
  border: 1px solid rgba(10, 132, 255, 0.3);
}

/* ===== TYPOGRAPHY ===== */
h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 12px;
}

h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 12px;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 8px;
}

p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-secondary);
}

small {
  font-size: 13px;
  color: var(--color-muted);
}

a {
  color: #0A84FF;
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #0055C6;
  text-decoration: underline;
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-muted {
  color: var(--color-muted);
}

.text-secondary {
  color: var(--color-secondary);
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

.flex {
  display: flex;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-col {
  flex-direction: column;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

/* ===== CHAT ===== */
.chat-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  height: calc(100vh - 130px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #d8dbdf;
  background: #f7f7f7;
  box-shadow: 0 6px 24px rgba(11, 20, 26, 0.08);
}

.chat-list {
  background: #fff;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e9edef;
}

.chat-list-header {
  padding: 14px 16px;
  border-bottom: 1px solid #e9edef;
  background: #f0f2f5;
  font-size: 16px;
  font-weight: 600;
  color: #111b21;
}

.chat-list-items {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.chat-item {
  padding: 12px 14px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: #111b21;
  display: block;
  margin: 0;
  border-bottom: 1px solid #f0f2f5;
}

.chat-item:hover {
  background: #f5f6f6;
}

.chat-item.active {
  background: #e7f0ff;
  color: #111b21;
}

.chat-item.active .chat-item-name {
  color: #111b21;
}

.chat-item.active .chat-item-preview {
  color: #3b4a54;
}

.chat-item-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 3px;
}

.chat-item-preview {
  font-size: 12px;
  color: #667781;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-box {
  background: #efeae2;
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 12px 16px;
  border-bottom: 1px solid #d9d9d9;
  background: #f0f2f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #111b21;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #efeae2;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px;
  background-position: 0 0, 12px 12px;
}

.chat-bubble {
  max-width: min(75%, 560px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-bubble.outgoing {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-bubble.incoming {
  align-self: flex-start;
  align-items: flex-start;
}

.chat-bubble.is-new .bubble-text {
  animation: bubbleIn 0.24s ease-out;
}

.bubble-text {
  padding: 8px 10px 6px;
  border-radius: 10px;
  word-break: break-word;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 1px 1px rgba(11, 20, 26, 0.1);
}

.chat-bubble.outgoing .bubble-text {
  background: #d9fdd3;
  color: #111b21;
  border-top-right-radius: 2px;
}

.chat-bubble.incoming .bubble-text {
  background: #fff;
  color: #111b21;
  border-top-left-radius: 2px;
}

.bubble-time {
  font-size: 11px;
  color: #667781;
  padding: 0 6px;
}

@keyframes bubbleIn {
  from {
    transform: translateY(6px);
    opacity: 0.25;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.chat-input {
  padding: 10px 12px;
  border-top: 1px solid #d9d9d9;
  background: #f0f2f5;
  display: flex;
  gap: 10px;
  align-items: center;
}

.chat-input-field {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #d1d7db;
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition);
}

.chat-input-field:focus {
  outline: none;
  border-color: #00a884;
  box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.12);
}

.chat-input .btn-primary {
  background: #00a884;
  border-color: #00a884;
}

.chat-input .btn-primary:hover {
  background: #009172;
  border-color: #009172;
}

/* ===== GRID LAYOUTS ===== */
.grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.col-1 { grid-column: span 1; }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1199px) {
  .sidebar {
    width: 220px;
  }
  
  .main-wrapper {
    margin-left: 236px;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .col-3 { grid-column: span 6; }
  .col-6 { grid-column: span 12; }
}

@media (max-width: 992px) {
  .app-shell {
    padding: 12px;
    flex-direction: column;
  }
  
  .sidebar {
    position: fixed;
    left: -276px;
    transition: left 0.3s ease;
    z-index: 1001;
    height: 100vh;
    top: 0;
    border-radius: 0;
  }
  
  .sidebar.open {
    left: 0;
  }
  
  .main-wrapper {
    margin-left: 0;
    flex: 1;
  }
  
  .topbar {
    margin-bottom: 16px;
  }
  
  .btn-menu {
    display: flex;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 0;
    margin-right: 12px;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-stat-grid {
    grid-template-columns: 1fr;
  }
  
  .chat-container {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .chat-list {
    max-height: 300px;
  }
  
  .table {
    font-size: 13px;
  }
  
  .table th,
  .table td {
    padding: 10px 12px;
  }
  
  .auth-card {
    width: 95%;
    max-width: 380px;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, 
  .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 { 
    grid-column: span 12; 
  }
  
  .row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .app-shell {
    padding: 8px;
  }
  
  .topbar {
    padding: 12px 16px;
    height: 56px;
    border-radius: 14px;
  }
  
  .topbar-title {
    font-size: 16px;
  }
  
  .card {
    padding: 16px;
    border-radius: 14px;
  }
  
  .btn {
    padding: 10px 16px;
    font-size: 13px;
    border-radius: 12px;
  }
  
  .form-input,
  .form-textarea {
    padding: 10px 12px;
    font-size: 16px;
  }
  
  h1 {
    font-size: 24px;
  }
  
  h2 {
    font-size: 18px;
  }
}

/* ==========================================================================
   visual.md aligned system for campaigns + settings (part 1)
   ========================================================================== */

:root {
  --ds-font: "Inter", "Poppins", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ds-bg: #f9fafb;
  --ds-bg-soft: #f3f6fb;
  --ds-surface: #ffffff;
  --ds-border: #d8e2f0;
  --ds-border-strong: #bfd1ea;
  --ds-text: #1f2937;
  --ds-text-strong: #111827;
  --ds-text-muted: #64748b;
  --ds-primary-500: #3b82f6;
  --ds-primary-600: #2563eb;
  --ds-primary-700: #1e40af;
  --ds-success-600: #059669;
  --ds-warning-600: #d97706;
  --ds-danger-600: #dc2626;
  --ds-shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --ds-shadow-md: 0 14px 32px rgba(15, 23, 42, 0.1);
}

html,
body {
  font-family: var(--ds-font);
  color: var(--ds-text);
  line-height: 1.6;
  background: linear-gradient(180deg, var(--ds-bg) 0%, var(--ds-bg-soft) 100%);
}

.hidden {
  display: none !important;
}

.page-header,
.section-card,
.card,
.topbar,
.sidebar {
  border: 1px solid var(--ds-border);
}

.card:hover,
.section-card:hover {
  border-color: var(--ds-border-strong);
}

.btn {
  min-height: 44px;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(135deg, var(--ds-primary-500), var(--ds-primary-600));
  border: 1px solid rgba(37, 99, 235, 0.35);
}

.btn-secondary,
.btn-outline {
  background: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.35);
  color: var(--ds-primary-600);
}

.btn-secondary:hover,
.btn-outline:hover {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.5);
}

.btn-danger {
  background: #ffffff;
  border: 1px solid rgba(220, 38, 38, 0.45);
  color: var(--ds-danger-600);
}

.btn-danger:hover {
  background: #fef2f2;
  border-color: rgba(220, 38, 38, 0.62);
}

.btn-success {
  background: linear-gradient(135deg, #10b981, var(--ds-success-600));
  border: 1px solid rgba(5, 150, 105, 0.36);
}

.btn-warning {
  background: linear-gradient(135deg, #f59e0b, var(--ds-warning-600));
  border: 1px solid rgba(217, 119, 6, 0.38);
}

.form-input,
.form-select,
.form-textarea,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
textarea,
select {
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid #cad8ed;
  background: #ffffff;
  color: var(--ds-text-strong);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(37, 99, 235, 0.75);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.breadcrumb-nav {
  margin-bottom: 16px;
}

.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  color: var(--ds-text-muted);
  font-size: 14px;
  text-decoration: none;
  padding: 8px 12px;
  transition: all 0.2s ease;
}

.breadcrumb-link:hover {
  background: #eef4ff;
  color: var(--ds-primary-700);
  border-color: #d6e3fa;
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.provider-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d7e3f6;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--ds-shadow-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.provider-card input {
  margin: 0;
}

.provider-card:hover,
.provider-card--active {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.12);
}

.provider-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ds-text-strong);
}

.provider-desc,
.provider-helper {
  font-size: 13px;
  color: var(--ds-text-muted);
}

.provider-pill {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8f0ff;
  color: #1e40af;
  font-size: 12px;
  font-weight: 700;
}

.webhook-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--ds-border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--ds-shadow-sm);
  padding: 14px;
}

.webhook-title {
  font-weight: 700;
  color: var(--ds-text-strong);
}

.webhook-url code {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  background: #f8fbff;
  padding: 4px 10px;
  color: #1e3a8a;
  font-size: 12px;
}

.webhook-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ds-text-muted);
}

.form-section {
  border: 1px solid var(--ds-border);
  border-radius: 14px;
  background: #ffffff;
  padding: 16px;
}

.form-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.form-section-number {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ds-primary-500), var(--ds-primary-700));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.form-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ds-text-strong);
}

.form-section-badge {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8f0ff;
  color: #1e40af;
  font-size: 12px;
  font-weight: 700;
}

.card-mini {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-mini-empty {
  border-style: dashed;
  background: #f8fbff;
}

.card-mini-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ds-text-muted);
  font-size: 12px;
}

.layout-two {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
  gap: 24px;
}

.layout-main {
  min-width: 0;
}

.layout-aside {
  position: sticky;
  top: 88px;
  align-self: flex-start;
}

.preview-shell {
  background: #f4f6fb;
  border: 1px solid var(--ds-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--ds-shadow-md);
}

.wa-preview {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  background: #efeae2;
  border: 1px solid rgba(17, 24, 39, 0.06);
  box-shadow: var(--shadow-card-xl);
}

.wa-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #128c7e, #075e54);
  color: #ffffff;
}

.wa-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.wa-header-text {
  flex: 1;
  min-width: 0;
}

.wa-title {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-sub {
  font-size: 12px;
  opacity: 0.9;
}

.wa-body {
  flex: 1;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #edf2fa;
}

.wa-time {
  font-size: 11px;
  color: #64748b;
  align-self: center;
}

.wa-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #ffffff;
  border-top: 1px solid var(--ds-border);
}

.wa-input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid var(--ds-border);
  background: #f8fbff;
  min-height: 38px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--ds-text-muted);
}

.wa-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--ds-primary-500), var(--ds-primary-700));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wa-msg {
  max-width: 84%;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--ds-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wa-msg-bot {
  align-self: flex-start;
  background: #ffffff;
}

.wa-msg-user {
  align-self: flex-end;
  background: #dcfce7;
}

.wa-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #64748b;
}

.wa-name {
  font-weight: 700;
  color: #0f172a;
}

.wa-text {
  font-size: 13px;
  color: #111827;
  line-height: 1.5;
  white-space: pre-wrap;
}

.wa-attach {
  margin-top: 8px;
  padding: 10px;
  border-radius: 10px;
  border: 1px dashed var(--ds-border-strong);
  background: #f8fbff;
  font-size: 12px;
  color: #475569;
}

.wa-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wa-button {
  border-radius: 8px;
  border: 1px solid #dbe5f4;
  background: #ffffff;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #1e40af;
}

.wa-cta {
  border-radius: 8px;
  border: 1px solid #cfe1ff;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
}

.file-upload-area {
  position: relative;
  border: 2px dashed var(--ds-border-strong);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  background: #f8fbff;
  transition: all 0.2s ease;
}

.file-upload-area:hover,
.file-upload-area.dragover {
  border-color: rgba(37, 99, 235, 0.5);
  background: #eff6ff;
}

.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload-content i {
  font-size: 34px;
  color: #94a3b8;
  margin-bottom: 10px;
}

.file-upload-content p {
  color: var(--ds-text);
}

.file-types {
  font-size: 12px;
  color: var(--ds-text-muted);
}

.file-preview {
  max-width: 100%;
  max-height: 220px;
  border-radius: 8px;
  object-fit: contain;
  border: 1px solid var(--ds-border);
}

.file-name-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0f7ff;
  border: 1px solid #cfe2ff;
  border-radius: 8px;
  padding: 10px 12px;
  color: #1e3a8a;
  font-weight: 600;
}

.search-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.search-input-wrapper {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.search-input-wrapper i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.search-input-wrapper .form-input {
  padding-left: 40px;
}

.filter-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--ds-border);
  border-radius: 12px;
  background: #ffffff;
  padding: 12px;
  transition: all 0.2s ease;
}

.contact-card:hover {
  border-color: #c7d8f3;
  background: #f8fbff;
}

.contact-checkbox {
  margin-top: 3px;
  accent-color: #2563eb;
}

.contact-card-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.contact-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, #93c5fd, #2563eb);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
}

.contact-info {
  flex: 1;
  min-width: 0;
}

.contact-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ds-text-strong);
}

.contact-phone {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ds-text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.contact-check {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  opacity: 0;
  transform: scale(0.75);
  transition: all 0.2s ease;
}

.contact-card:has(.contact-checkbox:checked) .contact-check {
  opacity: 1;
  transform: scale(1);
}

.contact-card:has(.contact-checkbox:checked) {
  border-color: #93c5fd;
  background: #eff6ff;
}

.selection-summary {
  border: 1px solid #cfe1ff;
  border-radius: 10px;
  background: #eff6ff;
  padding: 12px 14px;
}

.selection-summary-content {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1d4ed8;
}

.selection-summary-text {
  font-weight: 700;
}

.selection-summary-groups {
  margin-top: 6px;
  color: #1e3a8a;
  font-size: 12px;
}

.scheduling-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.scheduling-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--ds-border);
  border-radius: 12px;
  background: #ffffff;
}

.scheduling-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.scheduling-content {
  flex: 1;
  min-width: 0;
}

.scheduling-summary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #cfe1ff;
  border-radius: 12px;
  background: #eff6ff;
  padding: 14px;
}

.summary-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ds-primary-500), var(--ds-primary-700));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.summary-content {
  flex: 1;
}

.summary-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e3a8a;
}

.summary-details {
  margin-top: 4px;
  font-size: 13px;
  color: #334155;
}

.variables-legend,
.data-preview {
  border: 1px solid #bfe8d4;
  border-radius: 12px;
  background: #ecfdf5;
  padding: 14px;
}

.variables-mapping {
  border: 1px solid #fde68a;
  border-radius: 12px;
  background: #fffbeb;
  padding: 14px;
}

.template-mapping {
  border: 1px solid #cfe1ff;
  border-radius: 12px;
  background: #eff6ff;
  padding: 14px;
}

.template-missing-alert {
  margin-top: 12px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  background: #fff7ed;
  padding: 12px;
}

.template-missing-alert .alert-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #9a3412;
}

.template-missing-alert .alert-description {
  margin: 6px 0 8px;
  color: #9a3412;
  font-size: 13px;
}

.template-missing-alert .alert-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.template-missing-alert .missing-chip {
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
}

.legend-header,
.preview-header,
.mapping-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
}

.legend-header,
.preview-header {
  color: #047857;
}

.mapping-header {
  color: #b45309;
}

.legend-content {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.variable-tag {
  border-radius: 999px;
  background: #10b981;
  color: #ffffff;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.preview-content {
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  max-height: 300px;
  overflow: auto;
  background: #ffffff;
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.preview-table th,
.preview-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #e8edf7;
}

.preview-table th {
  position: sticky;
  top: 0;
  background: #f4f8ff;
  color: #334155;
}

.mapping-description {
  margin-bottom: 10px;
  color: var(--ds-text-muted);
  font-size: 13px;
}

.mapping-content {
  display: grid;
  gap: 10px;
}

.mapping-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #f5d08d;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.mapping-column {
  min-width: 120px;
  font-weight: 600;
  color: #7c2d12;
}

.mapping-arrow {
  color: #d97706;
  font-size: 14px;
}

.mapping-input {
  flex: 1;
  min-height: 38px;
  border: 1px solid #f5d08d;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px 10px;
}

.tip-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-left: 3px solid #f59e0b;
  border-radius: 10px;
  background: #fff7ed;
  padding: 12px;
}

.tip-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #f59e0b;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.tip-content {
  color: #9a3412;
  font-size: 13px;
}

.empty-state,
.empty-greetings {
  text-align: center;
  border: 1px dashed var(--ds-border-strong);
  border-radius: 12px;
  background: #f8fbff;
  padding: 32px 20px;
}

.empty-state-icon {
  font-size: 44px;
  color: #94a3b8;
  opacity: 0.45;
  margin-bottom: 12px;
}

.empty-state-title {
  margin-bottom: 8px;
  font-size: 18px;
  color: var(--ds-text-strong);
}

.empty-state-text {
  color: var(--ds-text-muted);
}

.greetings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 16px;
}

.greetings-section {
  border: 1px solid var(--ds-border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--ds-shadow-sm);
  overflow: hidden;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #f8fbff;
  border-bottom: 1px solid var(--ds-border);
}

.section-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ds-text-strong);
}

.greetings-list {
  padding: 14px;
}

.greeting-card {
  border: 1px solid var(--ds-border);
  border-radius: 10px;
  background: #ffffff;
  padding: 12px;
}

.greeting-card + .greeting-card {
  margin-top: 10px;
}

.greeting-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.greeting-text {
  font-weight: 600;
  color: var(--ds-text);
}

.greeting-actions {
  display: flex;
  gap: 8px;
}

.campaign-action-btn {
  flex: 1;
  min-width: 88px;
  text-align: center;
}

.campaign-action-form {
  flex: 1;
}

.campaign-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.campaign-status-draft {
  background: #e5e7eb;
  color: #4b5563;
}

.campaign-status-running {
  background: linear-gradient(135deg, #f59e0b, #b45309);
  color: #ffffff;
}

.campaign-status-finished {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
}

.campaign-status-failed,
.campaign-status-cancelled {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #ffffff;
}

.campaign-status-default {
  background: #e2e8f0;
  color: #1f2937;
}

.contact-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.contact-status-sent {
  background: #dcfce7;
  color: #166534;
}

.contact-status-failed {
  background: #fee2e2;
  color: #991b1b;
}

.contact-status-pending {
  background: #e2e8f0;
  color: #334155;
}

.campaign-progress-fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, #2563eb, #10b981);
  transition: width 0.35s ease;
}

.monitor-alert {
  border-radius: 10px;
  padding: 12px;
  border: 1px solid transparent;
}

.monitor-alert-danger {
  border-color: rgba(220, 38, 38, 0.35);
  background: #fef2f2;
  color: #991b1b;
}

.monitor-alert-warning {
  border-color: rgba(217, 119, 6, 0.35);
  background: #fffbeb;
  color: #92400e;
}

.settings-form--mb12 {
  margin-bottom: 12px;
}

.settings-form--mb16 {
  margin-bottom: 16px;
}

.settings-form--m0 {
  margin: 0;
}

.settings-inline-form {
  display: inline;
}

.table-empty-row,
.table-empty-row-lg {
  text-align: center;
  font-style: italic;
  color: var(--ds-text-muted);
}

.table-empty-row {
  padding: 8px 12px;
}

.table-empty-row-lg {
  padding: 12px;
}

.u-mt-10 {
  margin-top: 10px;
}

.greeting-type-morning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.greeting-type-afternoon {
  background: linear-gradient(135deg, #f97316, #ea580c);
}

.greeting-type-evening {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.greeting-type-general {
  background: linear-gradient(135deg, #10b981, #059669);
}

/* Utility classes generated from inline style extraction */
.ds-inline-001 { align-items: flex-start; }
.ds-inline-002 { background: linear-gradient(135deg, #10b981, #059669); }
.ds-inline-003 { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.ds-inline-004 { background: linear-gradient(135deg, #f59e0b, #b45309); }
.ds-inline-005 { background: none; border: none; font-size: 24px; color: var(--color-muted); cursor: pointer; padding: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; margin-left: auto; }
.ds-inline-006 { background: rgba(0,0,0,0.02); }
.ds-inline-007 { background: rgba(0,0,0,0.02); padding: 4px 8px; border-radius: 6px; }
.ds-inline-008 { background: rgba(10,132,255,0.12); color: #2563eb; }
.ds-inline-009 { background: rgba(48,209,88,0.15); color: #1f8a44; }
.ds-inline-010 { border-color: #10b981; }
.ds-inline-011 { border-color: #ef4444; }
.ds-inline-012 { border-color: #f59e0b; }
.ds-inline-013 { color: #059669; }
.ds-inline-014 { color: #10b981; }
.ds-inline-015 { color: #64748b; font-size: 13px; margin: 0; }
.ds-inline-016 { color: #64748b; font-size: 13px; margin-bottom: 12px; }
.ds-inline-017 { color: #64748b; font-size: 14px; }
.ds-inline-018 { color: #b45309; }
.ds-inline-019 { color: #b91c1c; }
.ds-inline-020 { color: #ef4444; }
.ds-inline-021 { color: #ff7b00; margin-left: 8px; }
.ds-inline-022 { color: var(--color-dark); margin: 16px 0; font-size: 18px; }
.ds-inline-023 { color: var(--color-muted); }
.ds-inline-024 { color: var(--color-muted); font-size: 13px; }
.ds-inline-025 { color: var(--color-muted); margin-bottom: 16px; line-height: 1.5; }
.ds-inline-026 { color: var(--color-muted); margin-bottom: 24px; }
.ds-inline-027 { color: var(--color-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.ds-inline-028 { display: flex; align-items: center; gap: 12px; }
.ds-inline-029 { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.ds-inline-030 { display: flex; align-items: center; gap: 8px; }
.ds-inline-031 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: #059669; }
.ds-inline-032 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ds-inline-033 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ds-inline-034 { display: flex; align-items: center; padding: 12px; background: rgba(0,0,0,0.02); border-radius: 12px; border-left: 3px solid #10b981; }
.ds-inline-035 { display: flex; align-items: center; padding: 12px; background: rgba(0,0,0,0.02); border-radius: 12px; border-left: 3px solid #2563eb; }
.ds-inline-036 { display: flex; gap: 12px; flex-wrap: wrap; }
.ds-inline-037 { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.ds-inline-038 { display: flex; gap: 12px; margin-top: 12px; }
.ds-inline-039 { display: flex; gap: 12px; margin-top: 24px; }
.ds-inline-040 { display: flex; gap: 8px; }
.ds-inline-041 { display: flex; gap: 8px; flex-wrap: wrap; }
.ds-inline-042 { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ds-inline-043 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.ds-inline-044 { display: grid; gap: 12px; }
.ds-inline-045 { display: grid; gap: 16px; }
.ds-inline-046 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(0,0,0,0.05); border-bottom: 1px solid rgba(0,0,0,0.05); margin-bottom: 16px; }
.ds-inline-047 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; background: rgba(0,0,0,0.02); border-radius: 12px; margin: 24px 0; }
.ds-inline-048 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.ds-inline-049 { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.ds-inline-050 { display: inline; }
.ds-inline-051 { display: inline-flex; align-items: center; gap: 6px; color: var(--color-muted); text-decoration: none; }
.ds-inline-052 { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(0,0,0,0.04); }
.ds-inline-053 { display: none; }
.ds-inline-054 { display: none; margin-top: 20px; padding: 16px; background: rgba(10, 132, 255, 0.05); border: 1px solid rgba(10, 132, 255, 0.2); border-radius: 8px; }
.ds-inline-055 { display:flex; gap:8px; align-items:center; }
.ds-inline-056 { display:inline; }
.ds-inline-057 { display:none; }
.ds-inline-058 { flex: 1; }
.ds-inline-059 { flex: 1; text-align: center; min-width: 80px; }
.ds-inline-060 { font-size: 12px; color: #64748b; margin-top: 4px; }
.ds-inline-061 { font-size: 12px; color: #94a3b8; margin-bottom: 4px; }
.ds-inline-062 { font-size: 12px; color: #94a3b8; margin-top: 4px; }
.ds-inline-063 { font-size: 12px; color: var(--color-muted); margin-bottom: 4px; }
.ds-inline-064 { font-size: 12px; color: var(--color-muted); margin-bottom: 8px; }
.ds-inline-065 { font-size: 13px; color: #64748b; font-family: monospace; }
.ds-inline-066 { font-size: 13px; color: var(--color-muted); margin-top: 2px; }
.ds-inline-067 { font-size: 14px; font-weight: 500; }
.ds-inline-068 { font-size: 14px; font-weight: 600; color: #059669; margin: 0; }
.ds-inline-069 { font-size: 24px; margin-bottom: 12px; display: block; }
.ds-inline-070 { font-size: 64px; color: var(--color-muted); opacity: 0.15; margin-bottom: 20px; }
.ds-inline-071 { font-weight: 500; color: #1d4ed8; }
.ds-inline-072 { font-weight: 500; margin-bottom: 4px; }
.ds-inline-073 { font-weight: 600; }
.ds-inline-074 { font-weight: 600; color: var(--color-dark); }
.ds-inline-075 { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.ds-inline-076 { font-weight: 700; }
.ds-inline-077 { gap:16px; }
.ds-inline-078 { margin: 0 0 16px 0; color: var(--color-muted); font-size: 13px; }
.ds-inline-079 { margin: 0 0 16px 0; color: var(--color-muted); font-size: 14px; }
.ds-inline-080 { margin: 0; }
.ds-inline-081 { margin: 0; color: var(--color-dark); display: flex; align-items: center; gap: 12px; }
.ds-inline-082 { margin: 0; font-weight: 500; }
.ds-inline-083 { margin: 0; line-height: 1.6; color: var(--color-dark); }
.ds-inline-084 { margin: 24px 0 16px 0; font-size: 16px; font-weight: 600; }
.ds-inline-085 { margin: 24px 0; border: none; border-top: 1px solid rgba(0,0,0,0.08); }
.ds-inline-086 { margin: 32px 0; border: none; border-top: 1px solid rgba(0,0,0,0.1); }
.ds-inline-087 { margin: 8px 0 0 0; color: var(--color-muted); font-size: 14px; }
.ds-inline-088 { margin: 8px 0 0 0; font-size: 12px; color: var(--color-muted); }
.ds-inline-089 { margin:0; }
.ds-inline-090 { margin-bottom: 12px; }
.ds-inline-091 { margin-bottom: 12px; font-size: 16px; font-weight: 600; }
.ds-inline-092 { margin-bottom: 16px; }
.ds-inline-093 { margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.ds-inline-094 { margin-bottom: 16px; font-size: 16px; font-weight: 600; }
.ds-inline-095 { margin-bottom: 20px; border: 1px dashed #dcdcdc; padding: 16px; border-radius: 12px; }
.ds-inline-096 { margin-bottom: 24px; }
.ds-inline-097 { margin-bottom: 24px; display: flex; justify-content: space-between; align-items: center; }
.ds-inline-098 { margin-bottom: 32px; }
.ds-inline-099 { margin-bottom: 32px; padding: 16px; background: linear-gradient(135deg, rgba(48, 209, 88, 0.08), rgba(0, 163, 46, 0.08)); border: 1px solid rgba(48, 209, 88, 0.2); border-radius: 12px; }
.ds-inline-100 { margin-bottom: 32px; padding: 16px; background: rgba(0,0,0,0.02); border-radius: 12px; }
.ds-inline-101 { margin-bottom: 4px; }
.ds-inline-102 { margin-left: 8px; }
.ds-inline-103 { margin-left: auto; }
.ds-inline-104 { margin-top: 16px; padding: 12px; background: rgba(48, 209, 88, 0.08); border: 1px solid rgba(48, 209, 88, 0.2); border-radius: 8px; }
.ds-inline-105 { margin-top: 24px; }
.ds-inline-106 { margin-top: 24px; padding: 16px; background: rgba(0,0,0,0.02); border-radius: 8px; border: 1px solid rgba(0,0,0,0.1); }
.ds-inline-107 { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(0,0,0,0.04); }
.ds-inline-108 { margin-top: 4px; }
.ds-inline-109 { margin-top: 6px; font-size: 12px; color: var(--color-muted); }
.ds-inline-110 { margin-top: 8px; }
.ds-inline-111 { margin-top: 8px; font-family: monospace; font-size: 16px; font-weight: 600; color: #059669; background: white; padding: 8px 12px; border-radius: 6px; border: 1px solid rgba(48, 209, 88, 0.3); }
.ds-inline-112 { margin-top:10px; }
.ds-inline-113 { margin-top:12px; }
.ds-inline-114 { margin-top:8px; }
.ds-inline-115 { max-width: 700px; margin: 0 auto; }
.ds-inline-116 { overflow-x: auto; }
.ds-inline-117 { padding: 10px 12px; text-align: left; font-weight: 600; color: var(--color-dark); border-bottom: 1px solid rgba(0,0,0,0.1); }
.ds-inline-118 { padding: 16px 16px 8px 16px; margin-bottom: 16px; background: rgba(0,0,0,0.02); }
.ds-inline-119 { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ds-inline-120 { padding: 20px; background: rgba(0,0,0,0.02); border-radius: 12px; text-align: center; color: #64748b; }
.ds-inline-121 { padding: 4px 12px; background: var(--color-muted); color: white; border-radius: 12px; font-size: 12px; font-weight: 600; }
.ds-inline-122 { padding: 60px 20px; }
.ds-inline-123 { padding: 6px 12px; border-radius: 8px; font-weight: 700; font-size: 12px; background: rgba(0,0,0,0.06); }
.ds-inline-124 { padding: 8px 12px; border-bottom: 1px solid rgba(0,0,0,0.05); }
.ds-inline-125 { padding: 8px 12px; text-align: left; border-bottom: 1px solid rgba(0,0,0,0.1); background: rgba(0,0,0,0.02); font-weight: 600; color: var(--color-dark); }
.ds-inline-126 { position: relative; height: 14px; background: rgba(0,0,0,0.06); border-radius: 999px; overflow: hidden; }
.ds-inline-127 { text-align: center; }
.ds-inline-128 { text-align: center; color: var(--color-muted); }
.ds-inline-129 { text-align: center; color: var(--color-muted); font-style: italic; }
.ds-inline-130 { text-align: center; color: var(--color-muted); font-style: italic; padding: 12px; }
.ds-inline-131 { text-align: center; color: var(--color-muted); font-style: italic; padding: 8px 12px; }
.ds-inline-132 { text-align: center; color: var(--color-muted); padding: 20px; }
.ds-inline-133 { text-align: center; padding: 40px; }
.ds-inline-134 { width: 100%; border-collapse: collapse; font-size: 12px; }
.ds-inline-135 { width: 100%; border-collapse: collapse; font-size: 12px; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.ds-inline-136 { width: 100%; justify-content: center; }
.ds-inline-137 { width: 20%; }
.ds-inline-138 { width: 25%; }
.ds-inline-139 { width: 35%; }
.ds-inline-140 { width: 40px; }

@media (max-width: 1200px) {
  .layout-two {
    grid-template-columns: 1fr;
  }

  .layout-aside {
    position: static;
  }
}

@media (max-width: 992px) {
  .provider-grid,
  .form-grid,
  .form-row,
  .scheduling-grid,
  .contacts-grid,
  .greetings-grid,
  .ds-inline-046,
  .ds-inline-048 {
    grid-template-columns: 1fr;
  }

  .webhook-item,
  .greeting-content,
  .ds-inline-097 {
    flex-direction: column;
    align-items: flex-start;
  }

  .layout-two {
    gap: 16px;
  }

  .campaign-action-btn,
  .campaign-action-form,
  .ds-inline-136 {
    width: 100%;
  }

  .ds-inline-042 {
    justify-content: flex-start;
  }
}

.actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.table-wrapper {
  border: 1px solid var(--ds-border);
  border-radius: 12px;
  overflow: auto;
}

.message-fields-container {
  display: grid;
  gap: 16px;
}

.textarea-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.char-count {
  font-size: 12px;
  color: var(--ds-text-muted);
}

.input-with-prefix,
.input-with-suffix {
  display: flex;
  align-items: stretch;
}

.input-prefix,
.input-suffix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 0 10px;
  border: 1px solid #cad8ed;
  background: #f8fbff;
  color: #64748b;
  font-size: 13px;
}

.input-prefix {
  border-right: none;
  border-radius: 10px 0 0 10px;
}

.input-with-prefix .form-input {
  border-radius: 0 10px 10px 0;
}

.input-suffix {
  border-left: none;
  border-radius: 0 10px 10px 0;
  white-space: nowrap;
}

.input-with-suffix .form-input {
  border-radius: 10px 0 0 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: #cbd5e1;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.slider:before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #ffffff;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.switch input:checked + .slider {
  background: #2563eb;
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

.greetings-selection {
  border: 1px solid #bfe8d4;
  border-radius: 10px;
  background: #ecfdf5;
  padding: 12px;
}

.greetings-variable-info {
  border: 1px solid #bfe8d4;
  border-radius: 8px;
  background: #f0fdf4;
  padding: 10px;
}

.import-contacts-option {
  border: 1px solid #cfe1ff;
  border-radius: 8px;
  background: #eff6ff;
}

.contacts-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--ds-border);
  background: #ffffff;
}

.contacts-tab-btn {
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.contacts-tab-btn.active {
  background: #eff6ff;
  color: #1d4ed8;
}

.contacts-tab-panels {
  margin-top: 12px;
}

.contacts-tab-panel {
  display: none;
}

.contacts-tab-panel.active {
  display: block;
}

.contacts-scroll {
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--ds-border);
  border-radius: 10px;
  padding: 10px;
  background: #ffffff;
}

.groups-panel {
  border: 1px solid var(--ds-border);
  border-radius: 12px;
  background: #ffffff;
  padding: 12px;
}

.groups-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.groups-panel-title {
  font-weight: 700;
  color: var(--ds-text-strong);
}

.groups-panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.groups-panel-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ds-text-muted);
}

.groups-grid {
  display: grid;
  gap: 10px;
}

.groups-badge,
.counter-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 10px;
  background: #dbeafe;
  color: #1e40af;
  font-size: 12px;
  font-weight: 700;
}

.group-card {
  display: block;
  border: 1px solid var(--ds-border);
  border-radius: 10px;
  background: #ffffff;
  padding: 10px;
  cursor: pointer;
}

.group-card-content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.group-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.group-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.group-info {
  flex: 1;
  min-width: 0;
}

.group-name {
  font-weight: 700;
  color: var(--ds-text-strong);
}

.group-description {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ds-text-muted);
}

.group-meta {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.group-count {
  font-size: 12px;
  color: #475569;
}

.group-check {
  color: #2563eb;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.group-card:has(.group-checkbox:checked) {
  border-color: #93c5fd;
  background: #eff6ff;
}

.group-card:has(.group-checkbox:checked) .group-check {
  opacity: 1;
}

.row-checkbox,
.group-checkbox {
  accent-color: #2563eb;
}

.clikchat-section {
  border: 1px dashed var(--ds-border-strong);
  border-radius: 10px;
  background: #f8fbff;
}

.template-mapping-select {
  min-width: 180px;
}

.wa-header-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wa-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: #efeae2;
}

.wa-bubble {
  max-width: 86%;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--ds-shadow-sm);
  background: #ffffff;
}

.wa-bubble.outgoing {
  align-self: flex-end;
  background: #dcf8c6;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.wa-bubble-text {
  font-size: 13px;
  color: #111827;
  line-height: 1.5;
  white-space: pre-wrap;
}

.wa-bubble-meta {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #64748b;
}

.wa-type {
  font-weight: 700;
  color: #1e3a8a;
}

.wa-attach-title {
  font-size: 12px;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 4px;
}

.wa-system {
  background: #f5f7f8;
  border-left: 3px solid #128c7e;
}

.wa-system {
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  padding: 8px 10px;
}

.error-log-list {
  display: grid;
  gap: 6px;
  font-size: 12px;
}

.error-log-list > * {
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: 8px;
  background: #fffbeb;
  padding: 8px 10px;
}

.stat-card {
  border: 1px solid var(--ds-border);
  border-radius: 12px;
  background: #ffffff;
  padding: 14px;
}

.stat-label {
  font-size: 12px;
  color: var(--ds-text-muted);
  margin-top: 4px;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--ds-text-strong);
  line-height: 1.1;
}

.preview-template-name,
.preview-cta-text,
.preview-cta-url {
  margin-top: 6px;
  font-size: 12px;
  color: #334155;
}

.preview-buttons-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.preview-button-chip {
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
}

.greetings-info {
  margin: 6px 0 0;
  color: var(--ds-text-muted);
  font-size: 12px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.modal-content {
  position: relative;
  width: min(92vw, 720px);
  margin: 40px auto;
  border: 1px solid var(--ds-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--ds-shadow-md);
  overflow: hidden;
}

.modal-close {
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

@media (max-width: 992px) {
  .contacts-tabs {
    width: 100%;
  }

  .contacts-tab-btn {
    flex: 1;
    text-align: center;
  }

.groups-panel-header {
  flex-direction: column;
  align-items: flex-start;
  }
}

/* ==========================================================================
   Design Showcase uplift - Feb 2026
   Brings the showcase palette/tokens to every screen without touching PHP.
   ========================================================================== */

:root {
  /* Core palette */
  --primary-50: #eef4ff;
  --primary-100: #dfe9ff;
  --primary-200: #c7d8ff;
  --primary-300: #9bb8ff;
  --primary-400: #6e98fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e3a8a;
  --primary-900: #0b1b4b;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --success-50: #ecfdf3;
  --success-100: #d1fae5;
  --success-500: #10b981;
  --success-600: #059669;
  --success-700: #047857;

  --warning-50: #fffbeb;
  --warning-100: #fef3c7;
  --warning-500: #f59e0b;
  --warning-600: #d97706;

  --danger-50: #fef2f2;
  --danger-100: #fee2e2;
  --danger-500: #ef4444;
  --danger-600: #dc2626;

  --info-50: #eff6ff;
  --info-500: #0ea5e9;
  --info-600: #0284c7;

  --surface: #ffffff;
  --surface-muted: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --backdrop: radial-gradient(120% 120% at 20% 20%, rgba(37, 99, 235, 0.08), transparent),
              radial-gradient(160% 160% at 80% 0%, rgba(14, 165, 233, 0.07), transparent),
              linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
  --shadow-card-xl: 0 26px 64px rgba(15, 23, 42, 0.14);
  --shadow-float: 0 18px 36px rgba(15, 23, 42, 0.16);
  --radius-lg: 18px;
  --radius-xl: 22px;

  /* Backwards-compatible aliases for existing tokens */
  --bg-primary: var(--backdrop);
  --color-dark: var(--gray-900);
  --color-secondary: var(--gray-700);
  --color-muted: var(--gray-500);
  --blue-primary: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  --green-success: linear-gradient(135deg, var(--success-500), var(--success-600));
  --orange-warning: linear-gradient(135deg, var(--warning-500), var(--warning-600));
  --red-danger: linear-gradient(135deg, var(--danger-500), var(--danger-600));
  --purple-accent: linear-gradient(135deg, #8b5cf6, #7c3aed);
  --white-translucent: var(--surface-muted);
  --white-translucent-heavy: var(--surface-strong);
  --shadow-medium: var(--shadow-card-xl);
}

body {
  background: var(--backdrop);
  color: var(--gray-800);
  font-feature-settings: "liga" 1, "kern" 1;
}

.app-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  gap: 20px;
}

.sidebar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86));
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.1);
  padding: 24px 18px;
}

.sidebar-nav {
  gap: 6px;
}

.nav-item {
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--gray-700);
}

.nav-item:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-700);
}

.nav-item.active {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

.topbar {
  position: sticky;
  top: 12px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.88));
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.topbar-title {
  font-size: 20px;
  letter-spacing: -0.01em;
}

.user-avatar {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  color: #fff;
  font-weight: 700;
}

.content {
  gap: 28px;
  padding-right: 0;
  padding-bottom: 32px;
}

.page-header {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(17, 24, 39, 0.06);
  background: linear-gradient(120deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.02) 40%, #ffffff 90%);
  box-shadow: var(--shadow-card-xl);
}

.page-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: 15px;
  color: var(--gray-600);
}

.card,
.section-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(17, 24, 39, 0.06);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
}

.card-header {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
}

.card-footer {
  border-top: 1px solid rgba(17, 24, 39, 0.06);
}

.stat-card {
  border: 1px solid rgba(17, 24, 39, 0.05);
  background: linear-gradient(165deg, #ffffff 0%, #f5f7fb 100%);
  border-radius: 18px;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.1);
}

.btn {
  border-radius: 12px;
  letter-spacing: 0.01em;
  min-height: 42px;
  box-shadow: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-float);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  border: 1px solid rgba(37, 99, 235, 0.28);
}

.btn-secondary,
.btn-outline {
  background: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.32);
  color: var(--primary-700);
}

.btn-ghost {
  color: var(--gray-700);
  padding-inline: 12px;
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger-500), var(--danger-600));
  color: #ffffff;
  border: none;
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning-500), var(--warning-600));
  color: #ffffff;
  border: none;
}

.btn-success {
  background: linear-gradient(135deg, var(--success-500), var(--success-600));
  color: #ffffff;
  border: none;
}

.form-label {
  color: var(--gray-700);
  font-weight: 700;
}

.form-input,
.form-select,
.form-textarea {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.65);
  background: rgba(255, 255, 255, 0.92);
  color: var(--gray-800);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: rgba(37, 99, 235, 0.75);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.table-wrapper {
  border: 1px solid rgba(17, 24, 39, 0.06);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
}

.table thead {
  background: var(--gray-50);
}

.table th {
  color: var(--gray-600);
  letter-spacing: 0.4px;
}

.table td {
  color: var(--gray-800);
}

.table tbody tr:hover {
  background: rgba(59, 130, 246, 0.05);
}

.badge {
  border-radius: 10px;
  font-weight: 700;
}

.badge-success {
  background: var(--success-50);
  color: var(--success-700);
}

.badge-warning {
  background: var(--warning-50);
  color: var(--warning-600);
}

.badge-danger {
  background: var(--danger-50);
  color: var(--danger-600);
}

.badge-info {
  background: var(--info-50);
  color: var(--info-600);
}

.status-badge {
  border: 1px solid rgba(17, 24, 39, 0.06);
  background: #ffffff;
}

.alert {
  border-radius: 14px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.alert-success { border-left: 4px solid var(--success-500); }
.alert-danger { border-left: 4px solid var(--danger-500); }
.alert-warning { border-left: 4px solid var(--warning-500); }
.alert-info { border-left: 4px solid var(--info-500); }

.search-input {
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.65);
  padding-left: 44px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.search-input:focus {
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.search-input-wrapper .search-icon {
  color: var(--gray-500);
}

.empty-state {
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(17, 24, 39, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
}

.app-footer {
  border-top: 1px solid rgba(17, 24, 39, 0.06);
  padding: 18px 0 8px;
  color: var(--gray-600);
}

/* ==========================================================================
   Layout density tuning - Feb 2026
   Better desktop space usage and fewer visual "holes" in wide viewports.
   ========================================================================== */
:root {
  --shell-gap: clamp(10px, 1vw, 16px);
  --sidebar-width: clamp(220px, 16vw, 250px);
}

.app-shell {
  max-width: none;
  width: 100%;
  padding: var(--shell-gap);
  gap: var(--shell-gap);
}

.sidebar {
  width: var(--sidebar-width);
  left: var(--shell-gap);
  top: var(--shell-gap);
  height: calc(100vh - (var(--shell-gap) * 2));
}

.main-wrapper {
  min-width: 0;
  margin-left: calc(var(--sidebar-width) + var(--shell-gap) + 8px);
}

.topbar {
  margin-bottom: 16px;
}

.content {
  gap: clamp(16px, 1.6vw, 22px);
  padding-bottom: 20px;
}

.metrics-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.provider-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.contacts-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.scheduling-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.layout-two {
  grid-template-columns: minmax(0, 1.6fr) minmax(340px, 1fr);
  gap: 18px;
}

.conversation-index-list {
  max-height: min(82vh, 900px);
}

.wa-sidebar {
  display: flex;
  flex-direction: column;
  background: #f7f8fa;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
}

.wa-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
  background: rgba(247, 248, 250, 0.96);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.wa-sidebar-header .text-sm {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111827;
}

.wa-sidebar-header .text-xs {
  color: rgba(75, 85, 99, 0.9);
  margin-top: 2px;
}

.wa-sidebar-header .conversation-sidebar-count-detail {
  display: block;
  margin-top: 1px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.wa-search-container {
  padding: 10px 14px 0;
}

.wa-search-input {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 16px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.95);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.wa-search-input.is-searching {
  border-color: rgba(37, 211, 102, 0.5);
  background: linear-gradient(180deg, #fafffb 0%, #ffffff 100%);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.12), 0 6px 16px rgba(15, 23, 42, 0.04);
}

.wa-search-input i {
  flex: 0 0 auto;
  color: #94a3b8;
}

.wa-search-input.is-searching i {
  color: #25d366;
}

.wa-search-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #111827;
  font-size: 14px;
}

.wa-search-input input::placeholder {
  color: #94a3b8;
}

.conversation-search-spinner {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #25d366;
}

.wa-read-filter-strip {
  display: flex;
  gap: 6px;
  padding: 10px 14px 8px;
  background: #f7f8fa;
}

.wa-read-filter-chip {
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 9999px;
  padding: 5px 12px;
  background: #fff;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.wa-read-filter-chip:hover,
.wa-read-filter-chip.is-active {
  border-color: rgba(37, 211, 102, .45);
  background: rgba(37, 211, 102, .1);
  color: #128c7e;
}

.wa-sidebar #conversationList {
  background: #ffffff;
}

.wa-conversation-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: #ffffff;
  text-decoration: none;
  transition: background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
  position: relative;
}

.wa-conversation-item:hover {
  background: #f8fafc;
}

.wa-conversation-item.active {
  background: linear-gradient(90deg, rgba(37, 211, 102, 0.08) 0%, rgba(37, 211, 102, 0.03) 100%);
  box-shadow: inset 3px 0 0 #25d366;
}

.wa-conversation-item.is-updated,
.wa-conversation-item.active.is-updated {
  background: linear-gradient(90deg, rgba(37, 211, 102, 0.18) 0%, rgba(37, 211, 102, 0.08) 100%);
  box-shadow: inset 3px 0 0 #25d366, 0 0 0 1px rgba(37, 211, 102, 0.14);
  animation: wa-sidebar-item-pulse 1.6s ease-out 1;
}

.wa-conversation-item .avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #25d366, #1fae54);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.18);
}

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

.conversation-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.conversation-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.conversation-header .flex.min-w-0.flex-col {
  min-width: 0;
  flex: 1;
}

.contact-name {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-phone {
  font-size: 12px;
  color: rgba(100, 116, 139, 0.95);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-time {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(100, 116, 139, 0.9);
  margin-top: 2px;
  white-space: nowrap;
}

.conversation-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.preview-text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(71, 85, 105, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-search-highlight {
  padding: 0 0.1rem;
  border-radius: 0.2rem;
  background: rgba(37, 211, 102, 0.18);
  color: inherit;
}

.wa-conversation-item.active .contact-name {
  color: #0f172a;
}

.wa-conversation-item.active .preview-text {
  color: rgba(15, 23, 42, 0.8);
}

.unread-badge {
  flex: 0 0 auto;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 9999px;
  background: #25d366;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(37, 211, 102, 0.22);
}

.wa-conversation-item.active .unread-badge {
  background: #128c7e;
  box-shadow: 0 8px 16px rgba(18, 140, 126, 0.2);
}

.sidebar-update-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 1.45rem;
  padding: 0 0.55rem;
  border-radius: 9999px;
  background: rgba(37, 211, 102, 0.12);
  color: #128c7e;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(37, 211, 102, 0.18);
}

.conversation-sidebar-skeleton-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.conversation-sidebar-skeleton-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.conversation-skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(90deg, #edf2f7 0%, #f8fafc 50%, #edf2f7 100%);
  background-size: 200% 100%;
  animation: wa-skeleton-shimmer 1.35s linear infinite;
}

.conversation-skeleton-line {
  height: 10px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #edf2f7 0%, #f8fafc 50%, #edf2f7 100%);
  background-size: 200% 100%;
  animation: wa-skeleton-shimmer 1.35s linear infinite;
}

.conversation-skeleton-line.is-title {
  width: 56%;
  height: 11px;
}

.conversation-skeleton-line.is-subtitle {
  width: 72%;
}

@keyframes wa-skeleton-shimmer {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes wa-sidebar-item-pulse {
  0% {
    transform: translateX(0);
    box-shadow: inset 3px 0 0 #25d366, 0 0 0 1px rgba(37, 211, 102, 0);
  }
  35% {
    box-shadow: inset 3px 0 0 #25d366, 0 0 0 1px rgba(37, 211, 102, 0.22);
  }
  100% {
    transform: translateX(0);
    box-shadow: inset 3px 0 0 #25d366, 0 0 0 1px rgba(37, 211, 102, 0.14);
  }
}

.wa-status-filter-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 14px 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.wa-status-filter-strip::-webkit-scrollbar {
  display: none;
}

.wa-status-filter-strip.is-dragging {
  cursor: grabbing;
}

.wa-status-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 9999px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  background: #ffffff;
  color: #374151;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.wa-status-filter-chip:hover {
  background: #f8fafc;
  border-color: rgba(148, 163, 184, 0.5);
  color: #111827;
  transform: translateY(-1px);
}

.wa-status-filter-chip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.16);
  border-color: rgba(37, 211, 102, 0.45);
}

.wa-status-filter-chip.is-active,
.wa-status-filter-chip[aria-pressed="true"] {
  background: #f0f2f5;
  border-color: rgba(203, 213, 225, 0.98);
  color: #111827;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.wa-status-filter-chip__label {
  display: inline-flex;
  align-items: center;
}

.wa-status-filter-chip__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.45rem;
  height: 1.45rem;
  padding: 0 0.4rem;
  border-radius: 9999px;
  background: rgba(17, 24, 39, 0.05);
  color: rgba(15, 23, 42, 0.68);
  font-size: 11.5px;
  font-weight: 700;
}

.wa-status-filter-chip.is-active .wa-status-filter-chip__count,
.wa-status-filter-chip[aria-pressed="true"] .wa-status-filter-chip__count {
  background: rgba(255, 255, 255, 0.92);
  color: rgba(15, 23, 42, 0.78);
}

.chat-container {
  grid-template-columns: minmax(290px, 32%) minmax(0, 1fr);
  height: calc(100vh - 118px);
}

.conversation-composer-wrap {
  position: relative;
  z-index: 20;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.04);
}

.conversation-composer {
  width: 100%;
}

.conversation-composer-input-shell {
  min-height: 54px;
  border-radius: 16px;
}

.conversation-composer-input {
  min-height: 52px;
  line-height: 1.45;
}

.dashboard-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 1fr);
  gap: 20px;
}

.ia-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.form-card-wide {
  max-width: min(100%, 980px) !important;
  margin: 0 !important;
}

.content .card[style*="max-width: 700px"] {
  max-width: min(100%, 980px) !important;
  margin: 0 !important;
}

.ds-inline-115 {
  max-width: min(100%, 980px);
  margin: 0;
}

.ds-inline-048 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.ds-inline-097 {
  flex-wrap: wrap;
  gap: 12px;
}

.ds-inline-122 {
  padding: 44px 20px;
}

@media (max-width: 1399px) {
  :root {
    --sidebar-width: 230px;
  }

  .main-wrapper {
    margin-left: calc(var(--sidebar-width) + var(--shell-gap) + 8px);
  }
}

@media (max-width: 1200px) {
  .layout-two {
    grid-template-columns: 1fr;
  }

  .layout-aside {
    position: static;
  }
}

@media (max-width: 992px) {
  .sidebar {
    left: -276px;
    top: 0;
    width: min(276px, 86vw);
    height: 100vh;
  }

  .sidebar.open {
    left: 0;
  }

  .main-wrapper {
    margin-left: 0;
  }

  .dashboard-panels,
  .ia-layout {
    grid-template-columns: 1fr;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .metrics-grid,
  .dashboard-stat-grid,
  .provider-grid,
  .contacts-grid,
  .scheduling-grid {
    grid-template-columns: 1fr;
  }

  .chat-container {
    grid-template-columns: 1fr;
    height: auto;
  }

  .chat-list {
    max-height: 300px;
  }

  .form-card-wide,
  .content .card[style*="max-width: 700px"] {
    max-width: 100% !important;
  }
}
