/* Lead Radar - Shared Styles */
:root {
  --navy: #1a1a2e;
  --navy-light: #16213e;
  --navy-mid: #0f3460;
  --blue: #4361ee;
  --blue-hover: #3a56d4;
  --blue-glow: rgba(67, 97, 238, 0.15);
  --white: #ffffff;
  --gray-50: #f8f9fc;
  --gray-100: #eef0f6;
  --gray-200: #d8dce8;
  --gray-300: #b0b8cc;
  --gray-400: #8892a8;
  --gray-500: #6b7280;
  --green: #10b981;
  --green-bg: rgba(16, 185, 129, 0.1);
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, 0.1);
  --orange: #f59e0b;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--gray-50);
  color: var(--navy);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.92);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-brand span {
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-400);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue);
  background: var(--blue-glow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  width: 100%;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(67, 97, 238, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--gray-200);
}

.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* Inputs */
.input-group {
  margin-bottom: 16px;
}

.input-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--navy);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.input::placeholder {
  color: var(--gray-300);
}

.phone-input {
  display: flex;
  gap: 8px;
}

.phone-input .country-code {
  width: 90px;
  flex-shrink: 0;
  text-align: center;
}

.phone-input .phone-number {
  flex: 1;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}

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

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.status-badge.active {
  background: var(--green-bg);
  color: var(--green);
}

.status-badge.inactive {
  background: var(--red-bg);
  color: var(--red);
}

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

.status-badge.active .status-dot {
  animation: pulse 2s infinite;
}

.status-dot.active {
  background: #10b981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Bottom Nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--gray-100);
  padding: 8px 0;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 100;
}

.bottom-nav .container {
  display: flex;
  justify-content: space-around;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--gray-400);
  font-size: 0.6875rem;
  font-weight: 500;
  transition: var(--transition);
}

.bottom-nav-item .icon {
  font-size: 1.375rem;
}

.bottom-nav-item.active {
  color: var(--blue);
}

/* Page Content with bottom nav space */
.page-content {
  padding-bottom: 80px;
}

/* Fade In */
.fade-in {
  animation: fadeIn 0.4s ease-out;
}

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

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
  color: var(--navy);
}

.empty-state p {
  color: var(--gray-400);
  font-size: 0.9375rem;
}

/* Responsive */
@media (min-width: 640px) {
  .container {
    max-width: 560px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 640px;
  }
}
