/* ===================================
   TELECALLER APP - UNIFIED CSS
   Dark Theme Support + All Pages
   =================================== */

:root {
  /* Light Theme Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --text-primary: #1f2937;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --primary: #2563eb;
  --primary-light: #dbeafe;
  --success: #16a34a;
  --success-light: #ecfdf5;
  --warning: #d97706;
  --warning-light: #fffbeb;
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-light: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
  /* Dark Theme Colors */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --surface: #1e293b;
  --border: #334155;
  --border-light: #475569;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --primary: #3b82f6;
  --primary-light: #1e3a8a;
  --success: #22c55e;
  --success-light: #14532d;
  --warning: #f59e0b;
  --warning-light: #78350f;
  --danger: #ef4444;
  --danger-light: #7f1d1d;
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-light: rgba(0, 0, 0, 0.2);
}

/* ===================================
   BASE STYLES
   =================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-secondary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  transition: all 0.3s ease;
}

.app-container {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background: var(--bg-primary);
  position: relative;
  transition: all 0.3s ease;
}

/* ===================================
   LOGIN PAGE STYLES
   =================================== */
.login-container {
  min-height: 100vh;
  background: var(--bg-primary);
}

.login-header {
  display: flex;
  align-items: center;
  background: transparent;
  padding: 16px;
  padding-bottom: 8px;
  justify-content: space-between;
}

.back-btn {
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  cursor: pointer;
}

.login-title {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  flex: 1;
  text-align: center;
  padding-right: 48px;
}

.login-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0 16px;
  max-width: 448px;
  margin: 0 auto;
}

.login-banner {
  width: 100%;
  background: center / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: var(--bg-tertiary);
  border-radius: 12px;
  min-height: 180px;
  margin-top: 16px;
}

.login-banner-icon {
  background: var(--primary-light);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--primary);
}

.login-banner-icon .material-symbols-outlined {
  color: var(--primary);
  font-size: 48px;
}

.welcome-title {
  color: var(--text-primary);
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  padding-top: 32px;
  padding-bottom: 8px;
}

.welcome-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  text-align: center;
  padding-bottom: 32px;
}

/* ===================================
   FORM STYLES
   =================================== */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.form-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  height: 56px;
  padding-left: 48px;
  padding-right: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px var(--shadow-light);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-icon-left {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
}

.input-icon-btn {
  position: absolute;
  top: 24px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.2s ease;
  padding: 8px;
  border-radius: 8px;
}

.icon-btn {
  position: absolute;
  top: 24px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.2s ease;
  padding: 10px;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  background: var(--bg-tertiary);
  transform: scale(1.05);
}

.icon-btn.primary {
  right: 16px;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary);
}

.icon-btn.primary:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px var(--shadow);
}

.input-icon-right {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  cursor: pointer;
}

/* ===================================
   BUTTON STYLES
   =================================== */
.btn-primary {
  width: 100%;
  background: var(--primary);
  color: white;
  padding: 16px;
  border-radius: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--primary);
  filter: brightness(0.9);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--bg-secondary);
}

/* ===================================
   DASHBOARD STYLES
   =================================== */
.dashboard-header {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-primary);
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-tertiary);
}

.welcome-text {
  flex: 1;
  margin-left: 12px;
}

.welcome-text span {
  font-size: 12px;
  color: var(--text-secondary);
}

.welcome-text h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.notification-btn {
  position: relative;
  background: var(--bg-tertiary);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-secondary);
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
}

.summary {
  padding: 16px;
}

.summary h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.summary p {
  color: var(--text-secondary);
  font-size: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px var(--shadow-light);
}

.stat-card:hover {
  border-color: var(--border);
  box-shadow: 0 4px 16px var(--shadow);
  transform: translateY(-2px);
}

.stat-card strong {
  font-size: 26px;
  display: block;
  margin-top: 8px;
  color: var(--text-primary);
}

.stat-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

.stat-icon {
  font-size: 22px;
  padding: 8px;
  border-radius: 8px;
}

.icon-blue { color: var(--primary); background: var(--primary-light); }
.icon-green { color: var(--success); background: var(--success-light); }
.icon-amber { color: var(--warning); background: var(--warning-light); }
.icon-red { color: var(--danger); background: var(--danger-light); }

/* ===================================
   ACTIVITY STYLES
   =================================== */
.activity {
  padding: 16px;
}

.activity h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.activity-item {
  display: flex;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 12px;
}

.activity-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  margin-right: 12px;
}

.activity-info {
  flex: 1;
}

.activity-info strong {
  font-size: 15px;
  color: var(--text-primary);
}

.activity-info p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.activity-amount {
  color: var(--success);
  font-weight: 600;
}

.activity-pending {
  color: var(--warning);
  font-weight: 600;
}

/* ===================================
   CALL HISTORY STYLES
   =================================== */
.call-history-header {
  position: sticky;
  top: 0;
  background: rgba(242, 242, 247, 0.85);
  backdrop-filter: blur(12px);
  padding: 24px 16px 12px;
  border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .call-history-header {
  background: rgba(30, 41, 59, 0.85);
}

.call-history-header h1 {
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.filters {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  overflow-x: auto;
}

.filter {
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
}

.call-content {
  padding: 16px;
}

.section-title {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  margin: 12px 0;
}

.call-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px var(--shadow-light);
  transition: all 0.2s ease;
}

.call-card:hover {
  box-shadow: 0 4px 16px var(--shadow);
  transform: translateY(-1px);
}

.call-user {
  display: flex;
  gap: 12px;
  position: relative;
}

.call-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-tertiary);
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  position: absolute;
  bottom: -2px;
  left: 34px;
  border: 2px solid var(--bg-primary);
}

.status-success { background: var(--success); }
.status-warning { background: var(--warning); }
.status-danger { background: var(--danger); }

.call-info strong {
  font-size: 15px;
  color: var(--text-primary);
}

.call-status {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
}

.status-success-text { color: var(--success); }
.status-warning-text { color: var(--warning); }
.status-danger-text { color: var(--danger); }

.call-info small {
  font-size: 12px;
  color: var(--text-muted);
}

.call-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.call-btn {
  background: var(--primary-light);
  border: none;
  padding: 8px;
  border-radius: 50%;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.call-btn:hover {
  background: var(--primary);
  color: white;
}

.call-arrow {
  color: var(--text-muted);
}

/* ===================================
   FORGOT PASSWORD STYLES
   =================================== */
.forgot-container {
  min-height: 100vh;
  background: var(--bg-secondary);
  display: flex;
  justify-content: center;
}

.forgot-app {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px var(--shadow);
}

.forgot-top-bar {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-primary);
}

.forgot-title {
  flex: 1;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-right: 48px;
}

.forgot-icon-section {
  display: flex;
  justify-content: center;
  padding: 40px 0 16px;
}

.forgot-icon-circle {
  width: 80px;
  height: 80px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.forgot-icon-large {
  font-size: 40px;
  color: var(--primary);
}

.forgot-content {
  padding: 0 24px;
}

.forgot-page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.forgot-page-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.forgot-form-section {
  padding: 0 24px;
}

.forgot-form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.forgot-input-wrapper {
  position: relative;
}

.forgot-input-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.forgot-button-section {
  padding: 24px;
}

.forgot-footer {
  padding: 32px 24px;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
}

.forgot-footer-link {
  color: var(--primary);
  font-weight: 700;
  margin-left: 4px;
  text-decoration: none;
}

.forgot-footer-link:hover {
  text-decoration: underline;
}

/* ===================================
   RESET PASSWORD STYLES
   =================================== */
.reset-content-area {
  flex: 1;
  padding: 24px 16px;
}

.reset-page-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.reset-page-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.reset-field-group {
  margin-bottom: 20px;
}

.reset-field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.reset-password-box {
  display: flex;
  align-items: center;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
}

.reset-password-icon,
.reset-password-toggle {
  padding: 0 16px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  cursor: pointer;
}

.reset-password-input {
  flex: 1;
  height: 56px;
  border: none;
  background: transparent;
  font-size: 16px;
  color: var(--text-primary);
}

.reset-password-input:focus {
  outline: none;
}

.reset-strength-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.reset-strength-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.reset-strength-fill {
  width: 66%;
  height: 100%;
  background: var(--primary);
}

.reset-strength-text {
  font-size: 12px;
  color: var(--text-secondary);
}

.reset-rules-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: var(--primary-light);
  border: 1px solid var(--primary);
}

.reset-rules-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.reset-rules-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.reset-rules-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.reset-rule-ok {
  color: var(--success);
}

.reset-rule-pending {
  color: var(--text-muted);
}

.reset-footer-actions {
  padding: 16px;
}

.reset-cancel-btn {
  width: 100%;
  margin-top: 8px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
}

/* ===================================
   FLOATING ACTION BUTTON
   =================================== */
.fab {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  border: none;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 10px 24px var(--shadow);
  transition: all 0.2s ease;
  z-index: 100;
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px var(--shadow);
}

/* ===================================
   BOTTOM NAVIGATION
   =================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 430px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 10px 0 24px;
}

[data-theme="dark"] .bottom-nav {
  background: rgba(30, 41, 59, 0.85);
}

.nav-item {
  text-align: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-item:hover {
  color: var(--text-secondary);
}

.nav-item.active {
  color: var(--primary);
}

.nav-item small {
  font-size: 10px;
  display: block;
  margin-top: 2px;
}

/* ===================================
   iOS INDICATOR
   =================================== */
.ios-wrapper {
  display: flex;
  justify-content: center;
  padding-bottom: 8px;
}

.ios-indicator {
  width: 128px;
  height: 6px;
  background: var(--border);
  border-radius: 999px;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 640px) {
  .min-h-180 { min-height: 140px; }
  .text-32 { font-size: 28px; }
  .text-lg { font-size: 16px; }
  .form-input { height: 48px; }
  .btn-primary { padding: 14px; }
  .login-content { padding: 0 12px; }
  .forgot-content, .forgot-form-section, .forgot-button-section, .forgot-footer { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 480px) {
  .min-h-180 { min-height: 120px; }
  .text-32 { font-size: 24px; }
  .text-base { font-size: 14px; }
  .form-input { 
    height: 44px; 
    padding-left: 44px;
    font-size: 14px;
  }
  .input-icon-left { left: 12px; }
  .input-icon-right { right: 12px; }
  .btn-primary { padding: 12px; font-size: 14px; }
  .login-content { padding: 0 8px; }
  .forgot-content, .forgot-form-section, .forgot-button-section, .forgot-footer { padding-left: 16px; padding-right: 16px; }
  .forgot-icon-circle { width: 64px; height: 64px; }
  .forgot-icon-large { font-size: 32px; }
  .forgot-page-title { font-size: 24px; }
}

@media (max-width: 380px) {
  .min-h-180 { min-height: 100px; }
  .text-32 { font-size: 20px; }
  .text-base { font-size: 13px; }
  .text-lg { font-size: 15px; }
  .form-input { 
    height: 40px; 
    padding-left: 40px;
    font-size: 13px;
  }
  .input-icon-left { left: 10px; font-size: 18px; }
  .input-icon-right { right: 10px; font-size: 18px; }
  .btn-primary { padding: 10px; font-size: 13px; }
  .login-content { padding: 0 4px; }
  .forgot-content, .forgot-form-section, .forgot-button-section, .forgot-footer { padding-left: 12px; padding-right: 12px; }
  .forgot-icon-circle { width: 56px; height: 56px; }
  .forgot-icon-large { font-size: 28px; }
  .forgot-page-title { font-size: 20px; }
}

/* ===================================
   DESKTOP RESPONSIVE
   =================================== */
@media (min-width: 768px) {
  .min-h-180 { min-height: 200px; }
  .text-32 { font-size: 36px; }
  .login-content { padding: 0 32px; }
  .forgot-content, .forgot-form-section, .forgot-button-section, .forgot-footer { padding-left: 32px; padding-right: 32px; }
}

@media (min-width: 1024px) {
  .min-h-180 { min-height: 220px; }
  .text-32 { font-size: 40px; }
  .text-lg { font-size: 20px; }
  .text-base { font-size: 18px; }
  .form-input { height: 60px; font-size: 18px; }
  .btn-primary { padding: 18px; font-size: 18px; }
  .login-content { padding: 0 48px; }
  .forgot-content, .forgot-form-section, .forgot-button-section, .forgot-footer { padding-left: 48px; padding-right: 48px; }
}

@media (min-width: 1280px) {
  .min-h-180 { min-height: 240px; }
  .text-32 { font-size: 44px; }
  .login-content { padding: 0 64px; }
  .forgot-content, .forgot-form-section, .forgot-button-section, .forgot-footer { padding-left: 64px; padding-right: 64px; }
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.relative { position: relative; }
.absolute { position: absolute; }
.flex-1 { flex: 1; }
.flex-grow { flex-grow: 1; }
.w-full { width: 100%; }
.max-w-md { max-width: 448px; margin-left: auto; margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.leading-tight { line-height: 1.25; }
.cursor-pointer { cursor: pointer; }
.rounded-lg { border-radius: 8px; }
.rounded-xl { border-radius: 12px; }
.rounded-full { border-radius: 9999px; }
.border { border: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.overflow-x-hidden { overflow-x: hidden; }
.min-h-screen { min-height: 100vh; }
.shadow-lg { box-shadow: 0 10px 24px var(--shadow); }
.transition { transition: all 0.2s ease; }

/* Spacing */
.p-4 { padding: 16px; }
.pb-2 { padding-bottom: 8px; }

/* ===================================
   CALLING PAGE STYLES
   =================================== */
.call-interface {
  padding: 20px 0;
}

.lead-selector {
  background: var(--surface);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.lead-selector h3 {
  margin-bottom: 16px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}

.search-box {
  position: relative;
  margin-bottom: 20px;
}

.search-box .material-symbols-outlined {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-box input {
  width: 100%;
  padding: 12px 12px 12px 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
}

.lead-list {
  max-height: 300px;
  overflow-y: auto;
}

.lead-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  background: var(--bg-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.lead-item:hover {
  background: var(--bg-tertiary);
}

.lead-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  margin-right: 12px;
}

.lead-info {
  flex: 1;
}

.lead-info strong {
  display: block;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
}

.lead-info p {
  color: var(--text-secondary);
  font-size: 12px;
  margin: 2px 0;
}

.lead-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 500;
}

.status-hot {
  background: var(--danger-light);
  color: var(--danger);
}

.status-warm {
  background: var(--warning-light);
  color: var(--warning);
}

.status-cold {
  background: var(--primary-light);
  color: var(--primary);
}

.call-lead-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--success);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.call-lead-btn:hover {
  background: var(--success);
  transform: scale(1.1);
}

.active-call {
  background: var(--surface);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.call-header {
  text-align: center;
  margin-bottom: 20px;
}

.call-header h3 {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.call-header p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 8px;
}

.call-timer {
  color: var(--primary);
  font-size: 18px;
  font-weight: 600;
  font-family: monospace;
}

.call-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.call-control-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.call-control-btn:hover {
  background: var(--primary);
  color: white;
}

.call-control-btn.active {
  background: var(--primary);
  color: white;
}

.call-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.end-call-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--danger);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.end-call-btn:hover {
  background: var(--danger);
  transform: scale(1.1);
}

.call-notes h4 {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.call-notes textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  resize: vertical;
  margin-bottom: 12px;
}

.note-actions {
  display: flex;
  justify-content: flex-end;
}

.quick-actions {
  background: var(--surface);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border);
}

.quick-actions h3 {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: var(--bg-tertiary);
  color: var(--primary);
}

.action-btn .material-symbols-outlined {
  font-size: 24px;
  margin-bottom: 8px;
}

.action-btn span:last-child {
  font-size: 12px;
  text-align: center;
}

/* ===================================
   CALL STATUS PAGE STYLES
   =================================== */
.current-call-status {
  padding: 20px 0;
}

.current-call-status h3 {
  margin-bottom: 16px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}

.active-call-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.call-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-indicator.live {
  color: var(--success);
}

.pulse {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.call-duration {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  font-family: monospace;
}

.call-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.caller-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.caller-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
}

.caller-details h4 {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.caller-details p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 4px;
}

.lead-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 500;
  background: var(--danger-light);
  color: var(--danger);
}

.call-metrics {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metric {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 12px;
}

.metric .material-symbols-outlined {
  font-size: 16px;
}

.today-stats {
  padding: 20px 0;
}

.today-stats h3 {
  margin-bottom: 16px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}

.call-queue {
  padding: 20px 0;
}

.call-queue h3 {
  margin-bottom: 16px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}

.queue-list {
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.queue-item {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.queue-item:last-child {
  border-bottom: none;
}

.queue-item:hover {
  background: var(--bg-secondary);
}

.queue-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  margin-right: 12px;
}

.queue-info {
  flex: 1;
}

.queue-info strong {
  display: block;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
}

.queue-info p {
  color: var(--text-secondary);
  font-size: 12px;
  margin: 2px 0;
}

.queue-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 500;
}

.queue-status.waiting {
  background: var(--warning-light);
  color: var(--warning);
}

.queue-status.scheduled {
  background: var(--primary-light);
  color: var(--primary);
}

.queue-status.callback {
  background: var(--success-light);
  color: var(--success);
}

.queue-time {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 12px;
}

.queue-time .material-symbols-outlined {
  font-size: 16px;
}

.recent-calls {
  padding: 20px 0;
}

.recent-calls h3 {
  margin-bottom: 16px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}

.call-list {
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.call-item {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.call-item:last-child {
  border-bottom: none;
}

.call-item:hover {
  background: var(--bg-secondary);
}

.call-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  margin-right: 12px;
}

.call-info {
  flex: 1;
}

.call-info strong {
  display: block;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
}

.call-info p {
  color: var(--text-secondary);
  font-size: 12px;
  margin: 2px 0;
}

.call-meta {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.call-duration {
  color: var(--text-muted);
  font-size: 11px;
}

.call-time {
  color: var(--text-muted);
  font-size: 11px;
}

.result-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 500;
}

.result-badge.success {
  background: var(--success-light);
  color: var(--success);
}

.result-badge.missed {
  background: var(--danger-light);
  color: var(--danger);
}

.result-badge.followup {
  background: var(--warning-light);
  color: var(--warning);
}

/* ===================================
   RESPONSIVE FOR CALLING PAGES
   =================================== */
@media (max-width: 480px) {
  .action-grid {
    grid-template-columns: 1fr;
  }
  
  .call-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .call-metrics {
    flex-direction: row;
    gap: 16px;
  }
}
.px-4 { padding-left: 16px; padding-right: 16px; }
.pt-8 { padding-top: 32px; }
.pb-8 { padding-bottom: 32px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.mt-4 { margin-top: 16px; }
.pt-4 { padding-top: 16px; }
.pr-12 { padding-right: 48px; }
.mb-4 { margin-bottom: 16px; }
.gap-3 { gap: 12px; }
.gap-8 { gap: 32px; }

/* Size */
.size-12 { width: 48px; height: 48px; }
.w-20 { width: 80px; }
.h-20 { height: 80px; }
.h-14 { height: 56px; }
.text-5xl { font-size: 48px; }
.text-3xl { font-size: 30px; }
.text-40 { font-size: 40px; }

/* Space utilities */
.space-y-4 > * + * { margin-top: 16px; }
