:root {
  --bg-primary: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --border-color: #e2e8f0;
  --accent-blue: #2563eb;
  --accent-cyan: #0284c7;
  --accent-purple: #7c3aed;
  --accent-green: #10b981;
  --accent-orange: #d97706;
  --accent-red: #dc2626;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Fira Code', monospace;
  
  --top-header-bg: #c85a32; /* Burnt terracotta header */
  --top-appbar-bg: #ffffff; /* Clean bright top toolbar */
}

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

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* STICKY TOP CONTAINER (PERSISTENT NAVBAR) */
.top-nav-container {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* ROW 1: TOP HEADER BAR */
.top-header-bar {
  background: var(--top-header-bg);
  color: #ffffff;
  height: 48px;
  padding: 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-nav-ic-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: background 0.15s;
}

.top-nav-ic-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.device-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.18);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.device-icon {
  font-size: 1rem;
}

.device-dropdown {
  background: transparent;
  border: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  outline: none;
}

.device-dropdown option {
  background: #ffffff;
  color: #0f172a;
}

.sync-info-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-style: italic;
  opacity: 0.95;
  font-size: 0.8rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  transition: all 0.3s ease;
}

.telemetry-pill-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 6px;
}

.telemetry-pill {
  background: rgba(0, 0, 0, 0.2);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-action-btn {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.btn-add {
  background: #ffffff;
  color: var(--top-header-bg);
}

.btn-add:hover {
  background: #f1f5f9;
}

.btn-delete {
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-delete:hover {
  background: rgba(239, 68, 68, 0.85);
}

.user-profile-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #ffffff;
}

/* ROW 2: QUICK APP ICON TOOLBAR */
.top-app-bar {
  background: var(--top-appbar-bg);
  border-bottom: 1px solid var(--border-color);
  height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.top-app-bar::-webkit-scrollbar {
  display: none;
}

.top-bar-divider {
  width: 1px;
  height: 22px;
  background: #cbd5e1;
  margin: 0 6px;
  flex-shrink: 0;
}

.app-icon-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  user-select: none;
}

.app-icon-item:hover {
  background: #f1f5f9;
}

.app-icon-item.active {
  background: #f1f5f9;
  font-weight: 700;
}

.app-icon-item.active::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 4px;
  right: 4px;
  height: 3px;
  background: #ef4444;
  border-radius: 3px 3px 0 0;
  box-shadow: 0 1px 4px rgba(239, 68, 68, 0.4);
}

.ic-badge-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.app-ic {
  font-size: 1.25rem;
}

.app-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--accent-red);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 5px;
  min-width: 15px;
  text-align: center;
  line-height: 1.2;
  border: 1.5px solid #ffffff;
  display: none;
  align-items: center;
  justify-content: center;
}

.app-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #1e293b;
}

/* APP LAYOUT WRAPPER (SIDEBAR + MAIN CONTENT) */
.app-layout-wrapper {
  display: flex;
  flex: 1;
  min-height: calc(100vh - 96px);
  position: relative;
}

/* SIDEBAR STYLING (Wider & Clean Light Mode) */
.sidebar {
  width: 270px;
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: all 0.25s ease;
  z-index: 900;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.1rem;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  font-weight: 500;
  font-size: 0.88rem;
}

.nav-item:hover {
  background: #f1f5f9;
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--accent-blue);
  color: #ffffff;
  font-weight: 600;
  border: none;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

/* BACKDROP OVERLAY FOR MOBILE SIDEBAR */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  display: none;
  z-index: 899;
}

.sidebar-overlay.active {
  display: block;
}

/* RESPONSIVE DRAWER FOR MOBILE & SMALL SCREENS */
@media (max-width: 1024px) {
  .sidebar {
    position: fixed;
    top: 96px;
    left: 0;
    height: calc(100vh - 96px);
    transform: translateX(-100%);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  }

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

  .telemetry-pill-group {
    display: none;
  }
}

/* MAIN CONTENT CONTAINER */
.main-content {
  flex: 1;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-x: hidden;
  background: var(--bg-primary);
}

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

.header-title h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.header-title p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* BUTTONS */
.btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.btn-primary {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--accent-red);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* GRID LAYOUTS */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
}

/* MAP CARD */
.map-card {
  grid-column: span 8;
  height: 400px;
  display: flex;
  flex-direction: column;
}

#map {
  width: 100%;
  flex: 1;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

/* QUICK REMOTE ACTIONS */
.actions-card {
  grid-column: span 4;
}

.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.action-btn {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: #f1f5f9;
  border-color: var(--accent-blue);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.action-btn i {
  font-size: 1.4rem;
  color: var(--accent-cyan);
}

.action-btn span {
  font-size: 0.8rem;
  font-weight: 600;
}

/* LIVE STREAM SECTION */
.stream-card {
  grid-column: span 6;
  height: 380px;
}

.video-frame {
  width: 100%;
  height: 280px;
  background: #0f172a;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border-color);
  position: relative;
  overflow: hidden;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stream-placeholder {
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* TELEMETRY LOGS CARD */
.logs-card {
  grid-column: span 6;
  height: 380px;
  display: flex;
  flex-direction: column;
}

.log-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding-right: 4px;
}

.log-item {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.log-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.log-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(2, 132, 199, 0.12);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.log-details h5 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.log-details p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.log-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* MEDIA GALLERY GRID */
.media-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

.media-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.media-card:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.media-preview-box {
  width: 100%;
  height: 160px;
  background: #f1f5f9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.media-card-info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.media-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
}

.media-card-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* LOCATION PAGE GRID */
.location-page-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  height: calc(100vh - 180px);
}

.location-history-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.location-history-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-item {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.15s;
}

.history-item:hover {
  border-color: var(--accent-cyan);
  background: #f1f5f9;
}

.history-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(2, 132, 199, 0.12);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.history-info h5 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

.big-map-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#bigMap {
  width: 100%;
  flex: 1;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

/* CALL STATS ROW */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.stat-info h3, .stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-info p, .stat-label {
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.2;
  white-space: nowrap;
}

/* TABLE TOOLBAR & FILTERS */
.table-header-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 16px;
}

.filter-pills {
  display: flex;
  gap: 6px;
}

.pill-btn {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.pill-btn.active, .pill-btn:hover {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
}

.table-search {
  position: relative;
  width: 240px;
}

.table-search input {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 7px 12px 7px 32px;
  color: var(--text-primary);
  font-size: 0.8rem;
  outline: none;
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* DATA TABLE */
.table-responsive {
  overflow-x: auto;
}

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

.data-table th {
  padding: 12px 14px;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
  background: #f1f5f9;
}

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

.badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-incoming {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
}

.badge-outgoing {
  background: rgba(2, 132, 199, 0.15);
  color: #0369a1;
}

.badge-missed {
  background: rgba(239, 68, 68, 0.15);
  color: #b91c1c;
}

/* LIVE DEBUG CONSOLE */
.debug-card {
  height: calc(100vh - 180px);
  display: flex;
  flex-direction: column;
}

.debug-header-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.debug-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.debug-controls {
  display: flex;
  gap: 8px;
}

.terminal-window {
  flex: 1;
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #34d399;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.log-line {
  line-height: 1.4;
  word-break: break-all;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 4px;
}

.log-line.sys-msg {
  color: #38bdf8;
}

/* MODAL WINDOW */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  width: 440px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.4rem;
  cursor: pointer;
}

.pin-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 16px 0;
}

.pin-box {
  width: 40px;
  height: 48px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.qr-container {
  display: flex;
  justify-content: center;
  margin: 12px 0;
}

/* SOCIAL NETWORKS GRID */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.social-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.social-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.social-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: transform 0.2s;
}

.social-card:hover .social-card-icon {
  transform: scale(1.1);
}

.social-card-info {
  flex: 1;
}

.social-card-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.social-card-count {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.social-card-arrow {
  color: #94a3b8;
  font-size: 1.1rem;
  transition: transform 0.2s;
}

.social-card:hover .social-card-arrow {
  transform: translateX(4px);
}

/* BRAND SPECIFIC CARDS */
.whatsapp-card {
  border-left: 4px solid #25D366;
}
.whatsapp-card .social-card-icon {
  background: rgba(37, 211, 102, 0.1);
  color: #25D366;
}

.telegram-card {
  border-left: 4px solid #0088cc;
}
.telegram-card .social-card-icon {
  background: rgba(0, 136, 204, 0.1);
  color: #0088cc;
}

.instagram-card {
  border-left: 4px solid #E4405F;
}
.instagram-card .social-card-icon {
  background: rgba(228, 64, 95, 0.1);
  color: #E4405F;
}

.facebook-card {
  border-left: 4px solid #1877F2;
}
.facebook-card .social-card-icon {
  background: rgba(24, 119, 242, 0.1);
  color: #1877F2;
}

.messenger-card {
  border-left: 4px solid #006AFF;
}
.messenger-card .social-card-icon {
  background: rgba(0, 106, 255, 0.1);
  color: #006AFF;
}

.snapchat-card {
  border-left: 4px solid #eab308;
}
.snapchat-card .social-card-icon {
  background: rgba(234, 179, 8, 0.1);
  color: #eab308;
}

.gmail-card {
  border-left: 4px solid #EA4335;
}
.gmail-card .social-card-icon {
  background: rgba(234, 67, 53, 0.1);
  color: #EA4335;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

/* AUDIO STREAM VISUALIZER */
.audio-wave-bars.active span {
  animation: bounce 1s ease-in-out infinite alternate;
}
.audio-wave-bars.active span:nth-child(1) { animation-delay: 0.1s; }
.audio-wave-bars.active span:nth-child(2) { animation-delay: 0.3s; }
.audio-wave-bars.active span:nth-child(3) { animation-delay: 0.6s; }
.audio-wave-bars.active span:nth-child(4) { animation-delay: 0.2s; }
.audio-wave-bars.active span:nth-child(5) { animation-delay: 0.5s; }
.audio-wave-bars.active span:nth-child(6) { animation-delay: 0.8s; }

@keyframes bounce {
  10% { height: 10px; }
  50% { height: 60px; }
  100% { height: 20px; }
}

.pulse-active {
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(2, 132, 199, 0); }
  100% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}
