/* =====================================================
   FE Quotes Lead Management — Dark Theme Stylesheet
   ===================================================== */

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1525;
  --bg-card: #141b2d;
  --bg-card-hover: #1a2238;
  --bg-input: #1a2238;
  --border-color: #1e2a45;
  --text-primary: #e4e8f1;
  --text-secondary: #8892a5;
  --text-muted: #5a6478;
  --accent-orange: #078586;
  --accent-orange-hover: #056a6b;
  --accent-orange-glow: rgba(7, 133, 134, 0.3);
  --accent-blue: #3498db;
  --accent-green: #27ae60;
  --accent-red: #e74c3c;
  --accent-teal: #1abc9c;
  --sidebar-width: 240px;
  --header-height: 70px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 15px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--accent-orange); text-decoration: none; }
a:hover { color: var(--accent-orange-hover); }

/* =====================================================
   LOGIN PAGE
   ===================================================== */
.login-page {
  display: flex;
  min-height: 100vh;
}

.login-brand {
  flex: 1;
  background: linear-gradient(135deg, #078586 0%, #056a6b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.brand-content {
  text-align: center;
  z-index: 2;
  padding: 2rem;
}

.brand-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 6px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.2);
  margin-bottom: 0.5rem;
}

.brand-tagline {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  font-weight: 300;
  max-width: 320px;
  margin: 0 auto;
}

.brand-circles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.circle-1 {
  width: 400px; height: 400px;
  top: -100px; left: -100px;
  animation: float 8s ease-in-out infinite;
}

.circle-2 {
  width: 300px; height: 300px;
  bottom: -80px; right: -60px;
  animation: float 6s ease-in-out infinite reverse;
}

.circle-3 {
  width: 200px; height: 200px;
  top: 50%; left: 60%;
  animation: float 10s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}

.login-form-section {
  flex: 1;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.login-form-container {
  width: 100%;
  max-width: 420px;
}

.login-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.login-subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.login-form .form-group {
  margin-bottom: 1.5rem;
}

.login-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.input-wrapper:focus-within {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px var(--accent-orange-glow);
}

.input-wrapper i {
  padding: 0 0.9rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  padding: 0.85rem 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
}

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

.toggle-password {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 0.9rem;
  transition: var(--transition);
}

.toggle-password:hover { color: var(--text-primary); }

.login-footer {
  margin-top: 3rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-orange), #056a6b);
  color: #fff;
  box-shadow: 0 4px 15px var(--accent-orange-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-orange-hover), var(--accent-orange));
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-orange-glow);
  color: #fff;
}

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

.btn-secondary:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
  padding: 0.9rem;
  font-size: 1rem;
}

.btn-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
}

.btn-edit {
  background: rgba(52, 152, 219, 0.15);
  color: var(--accent-blue);
}
.btn-edit:hover { background: rgba(52, 152, 219, 0.3); }

.btn-delete {
  background: rgba(231, 76, 60, 0.15);
  color: var(--accent-red);
}
.btn-delete:hover { background: rgba(231, 76, 60, 0.3); }

/* =====================================================
   APP LAYOUT
   ===================================================== */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
}

.sidebar-brand {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.sidebar-brand h2 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--accent-orange);
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
  margin: 0.15rem 0;
}

.nav-item:hover {
  background: rgba(7, 133, 134, 0.08);
  color: var(--text-primary);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(7, 133, 134, 0.15), transparent);
  color: var(--accent-orange);
  border-left-color: var(--accent-orange);
  font-weight: 600;
}

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

.sidebar-footer {
  padding: 1rem 1.2rem;
  border-top: 1px solid var(--border-color);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

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

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
  font-size: 0.85rem;
}

.user-role {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-red);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0;
  transition: var(--transition);
}

.logout-btn:hover {
  color: #e74c3c;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.content-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.badge-admin {
  background: linear-gradient(135deg, var(--accent-orange), #056a6b);
  color: #fff;
}

.badge-client {
  background: linear-gradient(135deg, var(--accent-blue), #2980b9);
  color: #fff;
}

/* Welcome Banner */
.welcome-banner {
  background: linear-gradient(135deg, rgba(7, 133, 134, 0.12), rgba(5, 106, 107, 0.06));
  border: 1px solid rgba(7, 133, 134, 0.2);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.welcome-banner i {
  color: var(--accent-orange);
  margin-right: 0.3rem;
}

/* =====================================================
   STAT CARDS
   ===================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

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

.stat-card {
  border-radius: var(--radius);
  padding: 1.3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: var(--transition);
}

.stat-card:hover::before {
  opacity: 0.05;
  background: #fff;
}

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

.stat-blue { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.stat-green { background: linear-gradient(135deg, #16a34a, #15803d); }
.stat-red { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.stat-teal { background: linear-gradient(135deg, #0d9488, #0f766e); }
.stat-orange { background: linear-gradient(135deg, #ea580c, #c2410c); }

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  margin-top: 0.2rem;
}

/* =====================================================
   CARDS
   ===================================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(7, 133, 134, 0.2);
}

.card-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h3 {
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-body {
  padding: 1.5rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Quick Actions */
.actions-grid {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.3rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
  transition: var(--transition);
}

.action-blue { background: linear-gradient(135deg, #3498db, #2980b9); }
.action-blue:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(52,152,219,0.3); color: #fff; }
.action-orange { background: linear-gradient(135deg, var(--accent-orange), #056a6b); }
.action-orange:hover { transform: translateY(-2px); box-shadow: 0 4px 15px var(--accent-orange-glow); color: #fff; }
.action-green { background: linear-gradient(135deg, var(--accent-green), #219a52); }
.action-green:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(39,174,96,0.3); color: #fff; }

/* Empty State */
.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.4;
}

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

/* Mini Table */
.mini-table {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.mini-row:last-child { border-bottom: none; }

.mini-file {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  flex: 1;
}

.mini-file i { color: var(--accent-orange); }

.mini-user {
  color: var(--text-secondary);
  flex: 1;
}

.mini-date {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* =====================================================
   TABLES
   ===================================================== */
.table-responsive {
  overflow-x: auto;
}

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

.data-table th {
  text-align: left;
  padding: 0.9rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

.data-table tbody tr {
  transition: var(--transition);
}

.data-table tbody tr:hover {
  background: rgba(7, 133, 134, 0.04);
}

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

.user-cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

.campaign-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(7, 133, 134, 0.12);
  color: var(--accent-orange);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 500;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-online {
  background: rgba(39, 174, 96, 0.15);
  color: #2ecc71;
}

.status-offline {
  background: rgba(149, 165, 166, 0.15);
  color: #95a5a6;
}

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

.status-online .status-dot {
  background: #2ecc71;
  box-shadow: 0 0 6px rgba(46, 204, 113, 0.5);
  animation: pulse-green 2s ease-in-out infinite;
}

.status-offline .status-dot {
  background: #95a5a6;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 4px rgba(46, 204, 113, 0.4); }
  50% { box-shadow: 0 0 12px rgba(46, 204, 113, 0.7); }
}

.action-btns {
  display: flex;
  gap: 0.4rem;
}

.text-orange { color: var(--accent-orange); }

/* =====================================================
   FORMS
   ===================================================== */
.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  letter-spacing: 0.3px;
}

.form-group label small {
  font-weight: 400;
  color: var(--text-muted);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-select:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px var(--accent-orange-glow);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238892a5'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 20px;
  cursor: pointer;
}

.form-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.form-row {
  display: flex;
  gap: 1rem;
}

.flex-1 { flex: 1; }

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem 0.7rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.checkbox-item:hover {
  border-color: var(--accent-orange);
}

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

/* File Upload */
.file-upload-wrapper {
  position: relative;
}

.file-upload-wrapper input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}

.file-upload-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-input);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

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

.file-upload-label i {
  font-size: 1.2rem;
}

.upload-form .form-row {
  margin-bottom: 1.2rem;
}

/* =====================================================
   MODALS
   ===================================================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
}

.modal-close:hover { color: var(--text-primary); }

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* =====================================================
   PROFILE
   ===================================================== */
.profile-card .card-body {
  padding: 2rem;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-orange), #d35400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 2.2rem;
  color: #fff;
  flex-shrink: 0;
}

.profile-info h2 {
  font-size: 1.4rem;
  font-weight: 700;
}

.profile-info p {
  color: var(--text-secondary);
  margin: 0.2rem 0 0.5rem;
}

.profile-campaigns {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.profile-form .form-row {
  margin-bottom: 0.5rem;
}

/* =====================================================
   CLIENT: STATUS TOGGLE
   ===================================================== */
.status-toggle-section {
  margin-bottom: 1.5rem;
}

.status-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.status-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.status-info p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.status-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 2rem;
  border: 2px solid;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  min-width: 280px;
  justify-content: center;
}

.status-toggle-btn.status-online {
  background: rgba(39, 174, 96, 0.12);
  border-color: var(--accent-green);
  color: #2ecc71;
}

.status-toggle-btn.status-online:hover {
  background: rgba(39, 174, 96, 0.2);
  box-shadow: 0 0 20px rgba(46, 204, 113, 0.2);
}

.status-toggle-btn.status-offline {
  background: rgba(149, 165, 166, 0.12);
  border-color: #7f8c8d;
  color: #95a5a6;
}

.status-toggle-btn.status-offline:hover {
  background: rgba(149, 165, 166, 0.2);
}

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

.status-online .status-dot-lg {
  background: #2ecc71;
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.6);
  animation: pulse-green 2s ease-in-out infinite;
}

.status-offline .status-dot-lg {
  background: #95a5a6;
}

/* Campaign Pills */
.campaign-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.campaign-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: rgba(230, 126, 34, 0.12);
  border: 1px solid rgba(230, 126, 34, 0.2);
  border-radius: 20px;
  color: var(--accent-orange);
  font-size: 0.85rem;
  font-weight: 500;
}

.campaign-pill i {
  font-size: 0.75rem;
}

/* =====================================================
   ALERTS
   ===================================================== */
.alert {
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-error {
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #e74c3c;
}

/* =====================================================
   FOOTER
   ===================================================== */
.app-footer {
  margin-top: auto;
  padding: 1.5rem 0 0.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* =====================================================
   PUBLIC BOARD
   ===================================================== */
.public-body {
  background: linear-gradient(135deg, #0a0e1a, #0f1525);
}

.public-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.public-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.public-brand h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.public-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

.public-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #2ecc71;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2ecc71;
  animation: pulse-green 1.5s ease-in-out infinite;
}

/* Public Stats */
.public-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.public-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.2rem 2rem;
  text-align: center;
  flex: 1;
  transition: var(--transition);
}

.public-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(230, 126, 34, 0.2);
}

.public-stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.public-stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.public-stat-online .public-stat-number { color: #2ecc71; }
.public-stat-offline .public-stat-number { color: #95a5a6; }

/* Agent Grid */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

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

.agent-card.agent-online {
  border-color: rgba(46, 204, 113, 0.3);
}

.agent-card.agent-online:hover {
  box-shadow: 0 4px 20px rgba(46, 204, 113, 0.15);
}

.agent-card.agent-offline {
  opacity: 0.7;
}

.agent-card.agent-offline:hover {
  opacity: 1;
}

.agent-status-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.agent-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.agent-dot-online {
  background: #2ecc71;
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.6);
  animation: pulse-green 2s ease-in-out infinite;
}

.agent-dot-offline {
  background: #7f8c8d;
}

.agent-status-text {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.agent-online .agent-status-text { color: #2ecc71; }
.agent-offline .agent-status-text { color: #95a5a6; }

.agent-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-orange), #d35400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.6rem;
  color: #fff;
  margin: 0 auto 0.75rem;
}

.agent-name {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.agent-company {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 0.8rem;
}

.agent-campaigns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
}

.agent-tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: rgba(230, 126, 34, 0.1);
  color: var(--accent-orange);
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 500;
}

.empty-state-public {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}

.empty-state-public i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.public-footer {
  margin-top: auto;
  padding: 1.5rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  border-top: 1px solid var(--border-color);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .login-page {
    flex-direction: column;
  }
  .login-brand {
    padding: 3rem 2rem;
    min-height: 200px;
  }
  .brand-title { font-size: 2rem; }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  .main-content {
    margin-left: 0;
    padding: 1rem;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-row {
    flex-direction: column;
  }
  .status-card-body {
    flex-direction: column;
    text-align: center;
  }
  .content-header {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
  .public-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  .public-stats {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .agents-grid {
    grid-template-columns: 1fr;
  }
}
