/* ============================================
   SENAI CRM — Apple Glass Design System
   ============================================ */

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

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", Arial, sans-serif;

  /* Glass layers */
  --glass:          rgba(255, 255, 255, 0.055);
  --glass-hover:    rgba(255, 255, 255, 0.09);
  --glass-border:   rgba(255, 255, 255, 0.11);
  --glass-shadow:   0 8px 32px rgba(0, 0, 0, 0.45),
                    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --blur:           blur(24px) saturate(180%);

  /* Text */
  --t1: rgba(255, 255, 255, 0.93);
  --t2: rgba(255, 255, 255, 0.55);
  --t3: rgba(255, 255, 255, 0.3);

  /* Brand */
  --blue:   #0071e3;
  --green:  #34c759;
  --red:    #ff3b30;
  --orange: #ff9f0a;
  --purple: #5856d6;
  --gray:   #8e8e93;

  --blue-a:   rgba(0,   113, 227, 0.18);
  --green-a:  rgba(52,  199, 89,  0.18);
  --red-a:    rgba(255, 59,  48,  0.18);
  --orange-a: rgba(255, 159, 10,  0.18);
  --purple-a: rgba(88,  86,  214, 0.18);
  --gray-a:   rgba(142, 142, 147, 0.18);

  /* Shape */
  --r:   16px;
  --r-s: 10px;
  --r-l: 24px;
}

/* ============== BACKGROUND ============== */
html, body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--t1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #07090f;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 45%, rgba(88, 86, 214, 0.14) 0%, transparent 100%),
    radial-gradient(ellipse 55% 45% at 85% 18%, rgba(0, 113, 227, 0.13) 0%, transparent 100%),
    radial-gradient(ellipse 45% 40% at 55% 88%, rgba(52, 199, 89, 0.07) 0%, transparent 100%),
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.app-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============== NAV ============== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  height: 58px;
  background: rgba(7, 9, 15, 0.72);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--glass-border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--t1);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}

.brand-icon {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.35);
}

.brand-icon svg {
  width: 16px;
  height: 16px;
  fill: white;
}

.nav-tabs {
  display: flex;
  gap: 3px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: var(--r-s);
  border: 1px solid var(--glass-border);
}

.nav-tab {
  padding: 5px 18px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--t2);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-tab:hover {
  color: var(--t1);
  background: rgba(255, 255, 255, 0.07);
}

.nav-tab.active {
  background: rgba(255, 255, 255, 0.11);
  color: var(--t1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.06);
}

.nav-logout {
  font-size: 13px;
  font-weight: 500;
  color: var(--t2);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--r-s);
  border: 1px solid var(--glass-border);
  background: transparent;
  transition: all 0.2s;
  flex-shrink: 0;
}

.nav-logout:hover {
  color: var(--red);
  border-color: rgba(255, 59, 48, 0.35);
  background: rgba(255, 59, 48, 0.08);
}

/* ============== PAGE ============== */
.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 28px 60px;
  flex: 1;
}

.page-header {
  margin-bottom: 28px;
}

.page-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--t1);
}

.page-subtitle {
  font-size: 14px;
  color: var(--t2);
  margin-top: 3px;
}

/* ============== GLASS CARD ============== */
.glass-card {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  box-shadow: var(--glass-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.55),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ============== KPI GRID ============== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.kpi-card {
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kpi-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-icon-wrap svg {
  width: 18px;
  height: 18px;
}

.kpi-value {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
}

.kpi-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--t2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============== CHARTS GRID ============== */
.charts-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 14px;
  margin-bottom: 14px;
}

.chart-card {
  padding: 22px 22px 18px;
}

.chart-card-full {
  padding: 22px 22px 18px;
  margin-bottom: 14px;
}

.chart-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--t1);
  letter-spacing: -0.2px;
  margin-bottom: 18px;
}

.chart-wrap {
  position: relative;
}

/* ============== TOOLBAR ============== */
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.toolbar-count {
  font-size: 13px;
  color: var(--t2);
  margin-left: auto;
  white-space: nowrap;
}

.search-input,
.filter-select {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-s);
  color: var(--t1);
  padding: 9px 13px;
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.search-input {
  flex: 1;
  min-width: 0;
}

.search-input:focus,
.filter-select:focus {
  border-color: var(--blue);
  background: rgba(0, 113, 227, 0.07);
}

.search-input::placeholder {
  color: var(--t3);
}

.filter-select {
  cursor: pointer;
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='rgba(255,255,255,0.35)' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.filter-select option {
  background: #13172a;
  color: var(--t1);
}

/* ============== TABLE ============== */
.table-card {
  padding: 0;
  overflow: hidden;
}

.table-inner {
  overflow-x: auto;
}

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

thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--t3);
  padding: 14px 18px;
  border-bottom: 1px solid var(--glass-border);
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.038);
  cursor: pointer;
  transition: background 0.15s;
}

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

tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

tbody td {
  padding: 13px 18px;
  font-size: 13.5px;
  color: var(--t1);
  vertical-align: middle;
}

.td-name {
  font-weight: 500;
}

.td-phone {
  color: var(--t2);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

.td-date {
  color: var(--t2);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ============== BADGE ============== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1px;
  white-space: nowrap;
}

.badge-follow-sim {
  background: var(--green-a);
  color: var(--green);
}

.badge-follow-nao {
  background: var(--gray-a);
  color: var(--gray);
}

/* ============== EMPTY STATE ============== */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--t2);
  font-size: 14px;
}

/* ============== MODAL ============== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  width: 100%;
  max-width: 600px;
  max-height: 82vh;
  background: rgba(12, 16, 28, 0.96);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-bottom: none;
  border-radius: var(--r-l) var(--r-l) 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-handle {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  margin: 12px auto 0;
  flex-shrink: 0;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 22px 14px;
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.modal-info {}

.modal-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--t1);
  letter-spacing: -0.2px;
}

.modal-phone {
  font-size: 13px;
  color: var(--t2);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.modal-close {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 50%;
  color: var(--t2);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
  flex-shrink: 0;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--t1);
}

.chat-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

.chat-wrap::-webkit-scrollbar {
  width: 4px;
}

.chat-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.chat-wrap::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
}

.bubble {
  max-width: 76%;
  padding: 9px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.bubble.human {
  align-self: flex-end;
  background: var(--blue);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.bubble.ai {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.09);
  color: var(--t1);
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.bubble.unknown {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  color: var(--t2);
}

.chat-empty {
  text-align: center;
  color: var(--t3);
  font-size: 14px;
  padding: 48px 0;
}

/* ============== LOADING DOTS ============== */
.loading-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 40px 0;
}

@keyframes dot-pulse {
  0%, 80%, 100% { opacity: 0.18; transform: scale(0.75); }
  40%            { opacity: 1;    transform: scale(1); }
}

.dot {
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 50%;
  animation: dot-pulse 1.4s infinite ease-in-out;
}

.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

/* ============== LOGIN ============== */
.login-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 40px 34px 36px;
  overflow: hidden;
}

.login-logo {
  text-align: center;
  margin-bottom: 26px;
}

/* banner no login */
.login-banner {
  margin: -40px -34px 0;
  border-radius: var(--r) var(--r) 0 0;
  overflow: hidden;
  line-height: 0;
}

.login-banner-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* logo perfil centralizado abaixo do banner */
.login-perfil-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  margin: -36px auto 12px;
  display: block;
  position: relative;
  z-index: 1;
}

/* logo na nav */
.nav-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.login-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--t1);
}

.login-subtitle {
  font-size: 13px;
  color: var(--t2);
  margin-top: 5px;
}

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

.form-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--t2);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 7px;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-s);
  color: var(--t1);
  padding: 11px 13px;
  font-size: 15px;
  font-family: var(--font);
  outline: none;
  transition: all 0.2s;
}

.form-input:focus {
  border-color: var(--blue);
  background: rgba(0, 113, 227, 0.07);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.16);
}

.form-input::placeholder {
  color: var(--t3);
}

.btn-primary {
  width: 100%;
  padding: 12px;
  background: var(--blue);
  border: none;
  border-radius: var(--r-s);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  margin-top: 10px;
  letter-spacing: -0.1px;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.3);
}

.btn-primary:hover {
  background: #0077ed;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.25);
}

.error-msg {
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.22);
  border-radius: var(--r-s);
  color: #ff6b6b;
  font-size: 13px;
  padding: 10px 13px;
  margin-bottom: 14px;
  text-align: center;
}

/* ============== AGENT CREATOR ============== */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.agent-card {
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.agent-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.agent-avatar {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.agent-card-title {
  flex: 1;
  min-width: 0;
}

.agent-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--t1);
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agent-channel {
  font-size: 12px;
  color: var(--t2);
  margin-top: 1px;
}

.agent-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  padding: 14px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.agent-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.agent-meta-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.agent-meta-value {
  font-size: 13px;
  color: var(--t1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agent-file {
  color: var(--t2);
  font-variant-numeric: tabular-nums;
}

.agent-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--t2);
}

.agent-stats strong {
  color: var(--t1);
  font-weight: 600;
}

.agent-date {
  margin-left: auto;
  font-size: 12px;
  color: var(--t3);
}

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

.btn-ghost {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 500;
  font-family: var(--font);
  color: var(--t2);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-s);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s;
  white-space: nowrap;
}

.btn-ghost:hover {
  color: var(--t1);
  background: rgba(255, 255, 255, 0.09);
}

/* ---- Create card ---- */
.create-card {
  padding: 26px 28px 28px;
}

.create-header {
  margin-bottom: 22px;
}

.create-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.3px;
}

.create-subtitle {
  font-size: 13px;
  color: var(--t2);
  margin-top: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}

.select-input {
  cursor: pointer;
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='rgba(255,255,255,0.35)' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}

.select-input option {
  background: #13172a;
  color: var(--t1);
}

.textarea-input {
  resize: vertical;
  line-height: 1.5;
  font-size: 14px;
}

.channel-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 41px;
  padding: 0 13px;
  background: rgba(52, 199, 89, 0.08);
  border: 1px solid rgba(52, 199, 89, 0.22);
  border-radius: var(--r-s);
  color: var(--green);
  font-size: 14px;
  font-weight: 500;
}

.channel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(52, 199, 89, 0.7);
}

.temp-value {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 20px;
  background: rgba(0, 113, 227, 0.16);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.range-input {
  width: 100%;
  height: 4px;
  margin-top: 10px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  appearance: none;
  cursor: pointer;
}

.range-input::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.5);
  cursor: pointer;
}

.range-input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.5);
  cursor: pointer;
}

.range-hints {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: var(--t3);
}

.upload-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.upload-dropzone {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 41px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px dashed var(--glass-border);
  border-radius: var(--r-s);
  color: var(--t2);
  font-size: 13px;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s;
}

.upload-dropzone:hover {
  border-color: rgba(0, 113, 227, 0.4);
  background: rgba(0, 113, 227, 0.06);
  color: var(--t1);
}

.btn-template {
  flex: none;
  padding: 10px 16px;
}

.upload-hint {
  font-size: 12px;
  color: var(--t3);
  margin-top: 8px;
}

.create-submit {
  width: auto;
  padding: 11px 28px;
  margin-top: 6px;
}

.create-success {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  font-size: 13px;
  color: var(--green);
  background: rgba(52, 199, 89, 0.1);
  border: 1px solid rgba(52, 199, 89, 0.22);
  border-radius: var(--r-s);
  transition: all 0.25s ease;
}

.create-success.show {
  max-height: 60px;
  opacity: 1;
  margin-top: 16px;
  padding: 11px 14px;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 900px) {
  .kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .charts-grid {
    grid-template-columns: 1fr;
  }
  .agents-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav { padding: 0 16px; }
  .page { padding: 24px 16px 48px; }
  .nav-tabs { display: none; }
  .agents-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .upload-row {
    flex-direction: column;
  }
}
