/* ================================================
   CFV ADMIN PANEL — Complete Stylesheet
   Design: Dark sidebar, clean white content area
   ================================================ */

:root {
  --sb-bg:         #0f2035;
  --sb-text:       rgba(255,255,255,0.65);
  --sb-active-bg:  rgba(44,108,156,0.22);
  --sb-active-txt: #fff;
  --sb-hover-bg:   rgba(255,255,255,0.06);
  --sb-border:     rgba(255,255,255,0.08);
  --sb-width:      240px;

  --accent:        #2c6c9c;
  --accent-hover:  #245d88;
  --accent-light:  #e8f1f8;
  --green:         #0c666a;
  --green-light:   #e0f4f4;
  --red:           #cc5852;
  --red-light:     #fdecea;
  --yellow:        #f59e0b;
  --yellow-light:  #fef3c7;

  --surface:       #ffffff;
  --bg:            #f0f4f8;
  --border:        #e2e8f0;
  --text:          #1a2d3e;
  --text-muted:    #607080;
  --text-light:    #94a3b8;

  --radius-sm:     6px;
  --radius:        10px;
  --radius-lg:     16px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.07);
  --shadow:        0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:     0 12px 32px rgba(0,0,0,0.12);
  --transition:    0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea {
  font: inherit;
  color: inherit;
}


/* ===========================
   LAYOUT
   =========================== */

.admin-sidebar {
  width: var(--sb-width);
  min-height: 100vh;
  background: var(--sb-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
  transition: transform var(--transition);
}

.admin-content {
  margin-left: var(--sb-width);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 16px;
}

.admin-main {
  padding: 28px;
  flex: 1;
}


/* ===========================
   SIDEBAR
   =========================== */

.sb-logo {
  padding: 24px 20px 16px;
  border-bottom: 1px solid var(--sb-border);
}

.sb-logo-name {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: 10px;
}

.sb-logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(44,108,156,0.25);
  color: #7ec8f5;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
  margin-top: 6px;
}

.sb-nav {
  padding: 16px 0;
  flex: 1;
}

.sb-nav-group {
  padding: 0 12px;
  margin-bottom: 24px;
}

.sb-nav-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  padding: 0 8px;
  margin-bottom: 6px;
}

.sb-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--sb-text);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.sb-nav-link:hover {
  background: var(--sb-hover-bg);
  color: var(--sb-active-txt);
}

.sb-nav-link.active {
  background: var(--sb-active-bg);
  color: var(--sb-active-txt);
}

.sb-nav-link svg { flex-shrink: 0; opacity: 0.7; }
.sb-nav-link.active svg { opacity: 1; }

.sb-nav-badge {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 50px;
  min-width: 20px;
  text-align: center;
}

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

.sb-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}

.sb-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #3578ac);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.sb-user-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  line-height: 1.2;
}

.sb-user-role {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
}

.sb-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.45);
  font-size: 0.8rem;
  margin-top: 4px;
  transition: all var(--transition);
  border: none;
  background: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.sb-logout:hover {
  background: rgba(204,88,82,0.15);
  color: #f87171;
}


/* ===========================
   TOPBAR
   =========================== */

.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.topbar-breadcrumb a { color: var(--accent); }
.topbar-breadcrumb a:hover { text-decoration: underline; }
.topbar-breadcrumb .sep { color: var(--text-light); }
.topbar-breadcrumb .current {
  color: var(--text);
  font-weight: 600;
}

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

.topbar-site-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid var(--accent);
  border-radius: 50px;
  transition: all var(--transition);
}

.topbar-site-link:hover {
  background: var(--accent);
  color: #fff;
}


/* ===========================
   FLASH MESSAGES
   =========================== */

.flash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 20px;
  border: 1px solid transparent;
}

.flash--success {
  background: var(--green-light);
  color: #065f46;
  border-color: rgba(12,102,106,0.2);
}

.flash--error {
  background: var(--red-light);
  color: #991b1b;
  border-color: rgba(204,88,82,0.2);
}


/* ===========================
   PAGE HEADERS
   =========================== */

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.page-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.page-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 3px;
}


/* ===========================
   BUTTONS
   =========================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(44,108,156,0.3);
}
.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(44,108,156,0.35);
}

.btn--success {
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 8px rgba(12,102,106,0.25);
}
.btn--success:hover { background: #0a5558; transform: translateY(-1px); }

.btn--danger {
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 8px rgba(204,88,82,0.25);
}
.btn--danger:hover { background: #b84e49; transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  background: var(--bg);
  color: var(--text);
}

.btn--sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.btn--icon {
  padding: 7px;
  border-radius: var(--radius-sm);
}

.btn svg { flex-shrink: 0; }


/* ===========================
   STAT CARDS (Dashboard)
   =========================== */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon--blue   { background: var(--accent-light); color: var(--accent); }
.stat-icon--green  { background: var(--green-light);  color: var(--green); }
.stat-icon--red    { background: var(--red-light);    color: var(--red); }
.stat-icon--yellow { background: var(--yellow-light); color: var(--yellow); }

.stat-body { flex: 1; }

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 3px;
}


/* ===========================
   CARDS / SURFACES
   =========================== */

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}

.card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
}

.card-body { padding: 20px 22px; }


/* ===========================
   DATA TABLE
   =========================== */

.data-table-wrap { overflow-x: auto; }

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

.data-table th {
  background: var(--bg);
  font-size: 0.7375rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  vertical-align: middle;
}

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

.data-table tbody tr:hover { background: #fafcff; }

.data-table .td-img {
  width: 52px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.data-table .td-img img {
  width: 52px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

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


/* ===========================
   BADGES / TAGS
   =========================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.73rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge--blue     { background: var(--accent-light); color: var(--accent); }
.badge--green    { background: var(--green-light);  color: var(--green); }
.badge--red      { background: var(--red-light);    color: var(--red); }
.badge--yellow   { background: var(--yellow-light); color: #92400e; }
.badge--gray     { background: #f1f5f9; color: #64748b; }
.badge--dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}


/* ===========================
   FORMS
   =========================== */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-grid--full { grid-column: 1 / -1; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.form-label .req { color: var(--red); }

.form-control {
  width: 100%;
  padding: 9px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--text);
  background: #fafcff;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}

.form-control:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(44,108,156,0.10);
}

.form-control::placeholder { color: #b0bec5; }

textarea.form-control { resize: vertical; min-height: 90px; line-height: 1.6; }

select.form-control { cursor: pointer; }

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

.form-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.radio-group {
  display: flex;
  gap: 16px;
  align-items: center;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

input[type="radio"] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 6px;
  border-top: 1px solid var(--border);
  margin-top: 6px;
}


/* ===========================
   SIDE DRAWER (for event/lead detail)
   =========================== */

.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

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

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 480px;
  max-width: 100%;
  background: var(--surface);
  z-index: 201;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer.open { transform: translateX(0); }

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

.drawer-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.drawer-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}

.drawer-close:hover { background: var(--red-light); color: var(--red); }

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

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


/* ===========================
   KANBAN BOARD
   =========================== */

.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}

.kanban-col {
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  min-height: 200px;
}

.kanban-col-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.kanban-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.kanban-col-count {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
}

.kanban-col-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.kanban-col--novo     .kanban-col-dot { background: #3b82f6; }
.kanban-col--contato  .kanban-col-dot { background: var(--yellow); }
.kanban-col--visita   .kanban-col-dot { background: #8b5cf6; }
.kanban-col--concluido .kanban-col-dot { background: var(--green); }

.kanban-col-novo     .kanban-col-title { color: #3b82f6; }
.kanban-col--contato .kanban-col-title { color: var(--yellow); }
.kanban-col--visita  .kanban-col-title { color: #8b5cf6; }
.kanban-col--concluido .kanban-col-title { color: var(--green); }

.kanban-cards {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100px;
}

.kanban-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 14px 16px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.kanban-card:hover {
  box-shadow: var(--shadow);
  border-color: #c8d8e8;
  transform: translateY(-2px);
}

.kanban-card-nome {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.kanban-card-serie {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 6px;
}

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

.kanban-card-tel {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.kanban-card-date {
  font-size: 0.7rem;
  color: var(--text-light);
}

.kanban-empty {
  padding: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
}


/* ===========================
   MEDIA GRID
   =========================== */

.media-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.media-item {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.media-item:hover { box-shadow: var(--shadow); }

.media-preview {
  aspect-ratio: 4/3;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
}

.media-placeholder svg { opacity: 0.4; }

.media-placeholder-text {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-light);
}

.media-actions-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity var(--transition);
}

.media-preview:hover .media-actions-overlay { opacity: 1; }

.media-info {
  padding: 12px 14px;
}

.media-info-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.3;
}

.media-info-size {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.media-info-size svg { color: var(--accent); opacity: 0.6; }

.media-info-badge {
  margin-top: 8px;
}

.media-upload-btn {
  display: none;
}

.media-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.media-upload-label:hover {
  border-color: var(--accent);
  color: var(--accent);
}


/* ===========================
   SCHEDULES
   =========================== */

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

.schedule-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.schedule-card-preview {
  aspect-ratio: 3/2;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: filter var(--transition);
}

.schedule-card-preview:hover { filter: brightness(0.85); }

.schedule-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.schedule-card-info {
  padding: 14px 16px;
}

.schedule-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.schedule-card-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.schedule-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}


/* ===========================
   LIGHTBOX (popup preview)
   =========================== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

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

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-close:hover { background: rgba(255,255,255,0.3); }


/* ===========================
   CONFIRM INLINE
   =========================== */

.confirm-dialog {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red-light);
  border: 1px solid rgba(204,88,82,0.3);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--red);
  white-space: nowrap;
}

.confirm-dialog .confirm-btns {
  display: flex;
  gap: 4px;
}

.confirm-btn-yes, .confirm-btn-no {
  padding: 2px 8px;
  border-radius: 4px;
  border: none;
  font: inherit;
  font-size: 0.73rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.confirm-btn-yes { background: var(--red); color: #fff; }
.confirm-btn-no  { background: var(--bg); color: var(--text-muted); }
.confirm-btn-yes:hover { background: #b84e49; }
.confirm-btn-no:hover  { background: var(--border); }


/* ===========================
   LOGIN PAGE
   =========================== */

.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a1e30 0%, #0f2a42 60%, #1a3a58 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 40px 44px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}

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

.login-logo-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.login-title {
  text-align: center;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.login-subtitle {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

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

.login-form .form-control { height: 48px; }

.login-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.78rem;
  color: var(--text-light);
}

.login-error {
  background: var(--red-light);
  color: #991b1b;
  border: 1px solid rgba(204,88,82,0.2);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===========================
   EVENT IMAGE THUMB
   =========================== */

.event-thumb {
  width: 52px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg);
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.event-thumb-placeholder {
  width: 52px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  flex-shrink: 0;
}


/* ===========================
   EMPTY STATE
   =========================== */

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state svg {
  opacity: 0.25;
  margin: 0 auto 12px;
}

.empty-state p {
  font-size: 0.875rem;
}


/* ===========================
   LEAD DETAIL INFO LIST
   =========================== */

.info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.info-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.info-value {
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 500;
}

.info-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 4px 0;
}

/* Status dot in lead detail */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* ===========================
   TOAST NOTIFICATION
   =========================== */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: #1a2d3e;
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: all;
  animation: toastIn 0.3s ease;
  max-width: 320px;
}

.toast--success { border-left: 4px solid var(--green); }
.toast--error   { border-left: 4px solid var(--red); }

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


/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 1100px) {
  .kanban-board {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-content {
    margin-left: 0;
  }
  .drawer { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .admin-main { padding: 16px; }
  .kanban-board { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .media-grid { grid-template-columns: 1fr 1fr; }
}
