/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  color-scheme: dark;
  --bg: #0b0d12;
  --panel: rgba(16, 20, 28, 0.82);
  --panel-strong: #11151d;
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #ecf0f8;
  --muted: #95a0b5;
  --muted-2: #6f7890;
  --accent: #7c8cff;
  --accent-2: #5ee7c1;
  --success: #37d67a;
  --warning: #f6c761;
  --danger: #ff7a85;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: radial-gradient(circle at top, #151a2b 0, #0b0d12 50%, #08090c 100%); color: var(--text); font-family: var(--font); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.65), transparent 90%);
          mask-image: linear-gradient(to bottom, rgba(0,0,0,0.65), transparent 90%);
}

.shell {
  min-height: 100vh;
  padding: 24px;
}

.frame {
  max-width: 1540px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  grid-gap: 20px;
  gap: 20px;
}

.sidebar, .main, .card, .panel {
  background: linear-gradient(180deg, rgba(22, 26, 35, 0.92), rgba(13, 16, 23, 0.92));
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px);
          backdrop-filter: blur(18px);
}

.sidebar {
  border-radius: var(--radius-xl);
  padding: 20px;
  position: -webkit-sticky;
  position: sticky;
  top: 24px;
  align-self: start;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(135deg, #7c8cff, #5ee7c1);
  display: grid; place-items: center;
  color: #08111c; font-weight: 900;
}
.brand h1 { font-size: 16px; margin: 0; }
.brand p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.nav { display: grid; grid-gap: 8px; gap: 8px; margin-top: 18px; }
.nav button {
  width: 100%; border: 1px solid transparent; background: transparent; color: var(--muted);
  text-align: left; padding: 12px 14px; border-radius: 14px; cursor: pointer; transition: 160ms ease;
}
.nav button:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.nav button[data-active='true'] { background: rgba(124, 140, 255, 0.14); border-color: rgba(124, 140, 255, 0.25); color: var(--text); }
.side-meta { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--panel-border); display: grid; grid-gap: 10px; gap: 10px; }
.metric-sm { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }

.main {
  border-radius: var(--radius-xl);
  padding: 22px;
  min-width: 0;
}

.header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px;
}
.header h2 { font-size: 30px; margin: 0 0 8px; letter-spacing: -0.03em; }
.header p { margin: 0; color: var(--muted); max-width: 820px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,0.05); color: var(--muted); border: 1px solid rgba(255,255,255,0.06); font-size: 12px;
}
.grid-top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: 14px; gap: 14px; margin-bottom: 16px; }
.card {
  border-radius: var(--radius-lg);
  padding: 16px;
}
.card h3, .panel h3 { margin: 0 0 8px; font-size: 14px; color: var(--muted); font-weight: 600; }
.big-number { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.subtle { color: var(--muted); font-size: 13px; }
.progress { margin-top: 12px; height: 8px; background: rgba(255,255,255,0.05); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

.board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); grid-gap: 14px; gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.column { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 18px; padding: 14px; min-height: 360px; }
.column-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.column-head strong { font-size: 14px; }
.badge { font-size: 12px; color: var(--muted); }
.lead { padding: 12px; border-radius: 14px; background: rgba(10, 13, 18, 0.65); border: 1px solid rgba(255,255,255,0.06); margin-bottom: 10px; }
.lead-top { display: flex; justify-content: space-between; gap: 10px; }
.lead-name { font-weight: 700; }
.lead-details { color: var(--muted); font-size: 12px; margin-top: 6px; line-height: 1.5; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { font-size: 11px; padding: 6px 8px; border-radius: 999px; background: rgba(124, 140, 255, 0.12); color: #cdd4ff; }
.tag.green { background: rgba(55, 214, 122, 0.12); color: #8bf0b2; }
.tag.yellow { background: rgba(246, 199, 97, 0.12); color: #ffe29a; }
.tag.red { background: rgba(255, 122, 133, 0.12); color: #ffb0b7; }

.two-col { display: grid; grid-template-columns: 1.25fr 0.75fr; grid-gap: 14px; gap: 14px; }
.panel { border-radius: var(--radius-lg); padding: 16px; }
.panel + .panel { margin-top: 14px; }
.list { display: grid; grid-gap: 10px; gap: 10px; }
.item {
  border-radius: 14px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); padding: 12px;
  display: flex; justify-content: space-between; gap: 12px;
}
.item strong { display: block; margin-bottom: 4px; }
.item .meta { color: var(--muted); font-size: 12px; }
.kpi-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 12px; gap: 12px; margin-bottom: 14px; }
.kpi { padding: 14px; border-radius: 16px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); }
.kpi .value { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.kpi .label { color: var(--muted); font-size: 12px; margin-top: 4px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.input, .select {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: var(--text);
  border-radius: 12px; padding: 10px 12px; min-width: 220px;
}
.table { display: grid; grid-gap: 10px; gap: 10px; }
.row {
  display: grid; grid-template-columns: 1.1fr 0.7fr 0.7fr 0.7fr 0.6fr; grid-gap: 12px; gap: 12px;
  padding: 12px; border-radius: 14px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
}
.row.head { background: transparent; border: none; color: var(--muted); font-size: 12px; padding-bottom: 0; }

.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-gap: 10px; gap: 10px; }
.day {
  min-height: 150px; border-radius: 16px; padding: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
}
.day .date { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.event { padding: 8px 10px; border-radius: 12px; font-size: 12px; margin-bottom: 8px; background: rgba(124, 140, 255, 0.14); border: 1px solid rgba(124, 140, 255, 0.18); }
.event.green { background: rgba(55, 214, 122, 0.14); border-color: rgba(55, 214, 122, 0.18); }
.event.yellow { background: rgba(246, 199, 97, 0.14); border-color: rgba(246, 199, 97, 0.18); }
.event.red { background: rgba(255, 122, 133, 0.14); border-color: rgba(255, 122, 133, 0.18); }

.docs, .team, .customers, .agents, .cronjobs { display: grid; grid-gap: 12px; gap: 12px; }
.doc, .person, .client, .agent, .cronjob {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 14px; border-radius: 16px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
}
.doc .left, .person .left, .client .left, .agent .left, .cronjob .left { display: grid; grid-gap: 4px; gap: 4px; }
.doc .title, .person .title, .client .title, .agent .title, .cronjob .title { font-weight: 700; }
.doc .meta, .person .meta, .client .meta, .agent .meta, .cronjob .meta { color: var(--muted); font-size: 12px; }
.pill { padding: 7px 10px; border-radius: 999px; font-size: 12px; background: rgba(255,255,255,0.04); color: var(--muted); }
.pill.green { color: #8bf0b2; background: rgba(55, 214, 122, 0.12); }
.pill.yellow { color: #ffe29a; background: rgba(246, 199, 97, 0.12); }
.pill.red { color: #ffb0b7; background: rgba(255, 122, 133, 0.12); }
.pill.active { color: #8bf0b2; background: rgba(55, 214, 122, 0.12); }
.pill.idle { color: var(--muted); background: rgba(255,255,255,0.04); }
.pill.paused { color: #ffe29a; background: rgba(246, 199, 97, 0.12); }

.type { font-size: 11px; color: var(--muted); font-weight: 400; }

.progress-bar { 
  width: 100%; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; 
  margin-top: 6px; overflow: hidden;
}
.progress { 
  height: 100%; background: linear-gradient(90deg, #37d67a, #51cf66); border-radius: 2px; 
  transition: width 0.3s ease;
}

@media (max-width: 1180px) {
  .frame { grid-template-columns: 1fr; }
  .sidebar { position: relative; top: 0; }
  .grid-top, .kpi-row, .two-col { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .shell { padding: 14px; }
  .main, .sidebar { border-radius: 18px; padding: 16px; }
  .header { flex-direction: column; }
  .board, .calendar { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
}

/* Interactive elements */
.clickable {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 140, 255, 0.15);
}

.lead[draggable="true"]:hover {
  background: linear-gradient(135deg, rgba(124, 140, 255, 0.08), rgba(94, 231, 193, 0.05));
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 13, 18, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}

.modal {
  background: var(--panel-strong);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--panel-border);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.modal-header button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.modal-header button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-content {
  padding: 24px;
}

.lead-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 24px;
  gap: 24px;
  margin-bottom: 24px;
}

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

.info-section p {
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
}

.btn {
  padding: 10px 16px;
  border: 1px solid var(--panel-border);
  background: var(--panel-strong);
  color: var(--text);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn:hover {
  background: var(--panel);
  border-color: var(--accent);
  transform: translateY(-1px);
}

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

.btn.primary:hover {
  background: #6b7dff;
  border-color: #6b7dff;
}

.zapier-section {
  border-top: 1px solid var(--panel-border);
  padding-top: 24px;
}

.zapier-section h3 {
  margin: 0 0 16px 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}

.zapier-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 16px;
}

.btn.zapier {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  border: none;
  font-weight: 600;
}

.btn.zapier:hover {
  background: linear-gradient(135deg, #e55a2b, #e6851a);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.zapier-note {
  color: var(--muted);
  font-style: italic;
  font-size: 14px;
  text-align: center;
  margin: 0;
}

@media (max-width: 768px) {
  .lead-info-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-actions {
    justify-content: center;
  }
  
  .zapier-actions {
    grid-template-columns: 1fr;
  }
}

