/* style.css */
/* Modern Dark-Theme Glassmorphic CSS Design System for OmniTrigger */

:root {
  --bg-primary: #080b11;
  --bg-secondary: #0f1420;
  --bg-tertiary: #191f30;
  --bg-card: rgba(15, 20, 32, 0.65);
  
  --accent-purple: #8b5cf6;
  --accent-purple-hover: #7c3aed;
  --accent-purple-glow: rgba(139, 92, 246, 0.3);
  
  --accent-blue: #06b6d4;
  --accent-blue-hover: #0891b2;
  --accent-blue-glow: rgba(6, 182, 212, 0.3);
  
  --accent-green: #10b981;
  --accent-green-glow: rgba(16, 185, 129, 0.2);
  
  --accent-amber: #f59e0b;
  --accent-amber-glow: rgba(245, 158, 11, 0.2);
  
  --accent-red: #ef4444;
  --accent-red-glow: rgba(239, 68, 68, 0.2);

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #6b7280;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(255, 255, 255, 0.15);
  
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --sidebar-width: 260px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.12) 0%, transparent 45%);
  background-attachment: fixed;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Typography Helper classes */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
  line-height: 1.6;
}

.bold { font-weight: 600; }
.text-green { color: var(--accent-green) !important; }
.text-red { color: var(--accent-red) !important; }
.text-purple { color: var(--accent-purple) !important; }
.text-blue { color: var(--accent-blue) !important; }
.purple-text { color: var(--accent-purple); font-weight: 500; }

/* Utilities */
.hidden {
  display: none !important;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(0.92); }
}

/* Glassmorphism Panel styles */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

.gradient-panel {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(6, 182, 212, 0.25) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px 0 rgba(139, 92, 246, 0.1);
  position: relative;
  overflow: hidden;
}

/* Layout Elements */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
  width: var(--sidebar-width);
  background-color: rgba(10, 14, 24, 0.85);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  height: 100vh;
  z-index: 10;
}

.sidebar-logo {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 0 15px var(--accent-purple-glow);
}

.logo-text {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 20px;
  background: linear-gradient(135deg, #ffffff 30%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar-menu {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.menu-item {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 12px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
  text-align: left;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  padding-left: 20px;
}

.menu-item.active {
  background: linear-gradient(90deg, var(--accent-purple-glow) 0%, transparent 100%);
  border-left: 3px solid var(--accent-purple);
  color: var(--text-main);
  font-weight: 600;
}

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

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-purple);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 600;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

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

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

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

/* Content Area Wrapper */
.content-wrapper {
  margin-left: var(--sidebar-width);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Topbar Styling */
.topbar {
  height: 80px;
  background: rgba(10, 14, 24, 0.5);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 9;
}

#view-title {
  font-size: 26px;
  color: white;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
}

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

.status-dot.green {
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.status-text {
  font-size: 12px;
  color: var(--accent-green);
  font-weight: 500;
}

/* Button Component styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-purple-hover) 100%);
  color: white;
  box-shadow: 0 4px 15px var(--accent-purple-glow);
}

.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.5);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn-purple {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c084fc;
}

.btn-purple:hover {
  background: var(--accent-purple);
  color: white;
  box-shadow: 0 4px 12px var(--accent-purple-glow);
}

.btn-white {
  background: white;
  color: var(--bg-primary);
}

.btn-white:hover {
  opacity: 0.9;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-full {
  width: 100%;
}

/* Main Body Views Container */
.main-body {
  padding: 32px;
  flex-grow: 1;
}

.tab-view {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeIn 0.3s ease;
}

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

/* Stats Cards styling */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

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

.stat-icon.purple { background: rgba(139, 92, 246, 0.1); color: #c084fc; }
.stat-icon.blue { background: rgba(6, 182, 212, 0.1); color: #22d3ee; }
.stat-icon.green { background: rgba(16, 185, 129, 0.1); color: #34d399; }
.stat-icon.amber { background: rgba(245, 158, 11, 0.1); color: #fbbf24; }

.stat-val {
  font-size: 32px;
  font-family: var(--font-title);
  font-weight: 700;
  color: white;
}

.stat-change {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
}

.stat-change.positive { color: var(--accent-green); }
.stat-change.negative { color: var(--accent-red); }
.stat-change.neutral { color: var(--text-muted); }

/* Common Grid styles */
.grid-2-col {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
}

@media (max-width: 1024px) {
  .grid-2-col {
    grid-template-columns: 1fr;
  }
}

.grid-2-col-gap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Feed Panel Styles */
.feed-panel {
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

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

.panel-header h2 {
  font-size: 18px;
  color: white;
}

.badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.badge-purple {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Activity Feed items */
.activity-feed {
  flex-grow: 1;
  overflow-y: auto;
  max-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.empty-feed-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 60px 20px;
  text-align: center;
}

.empty-feed-state i {
  width: 48px;
  height: 48px;
  color: var(--text-dark);
}

.empty-feed-state p {
  font-size: 13px;
  max-width: 320px;
}

.feed-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.02);
  transition: all var(--transition-fast);
}

.feed-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.05);
}

.feed-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.feed-item-icon.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); }
.feed-item-icon.linkedin { background: #0077b5; }
.feed-item-icon.facebook { background: #1877f2; }
.feed-item-icon.twitter { background: #111111; }

.feed-item-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feed-item-title {
  font-size: 13px;
  color: var(--text-main);
}

.feed-item-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.feed-item-comment {
  font-style: italic;
  color: #e5e7eb;
  padding-left: 6px;
  border-left: 2px solid var(--accent-purple);
  margin: 4px 0;
}

.feed-item-timestamp {
  font-size: 10px;
  color: var(--text-dark);
  align-self: flex-end;
}

/* Connected profile summaries */
.profile-summary-panel {
  margin-bottom: 20px;
}

.profile-summary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
}

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

.profile-sum-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  border: 1.5px solid var(--border-color);
}

.profile-sum-avatar.instagram { border-color: #d6249f; }
.profile-sum-avatar.linkedin { border-color: #0077b5; }
.profile-sum-avatar.facebook { border-color: #1877f2; }
.profile-sum-avatar.twitter { border-color: #ffffff; }

.profile-sum-meta {
  display: flex;
  flex-direction: column;
}

.profile-sum-handle {
  font-size: 13px;
  font-weight: 600;
  color: white;
}

.profile-sum-followers {
  font-size: 10px;
  color: var(--text-muted);
}

/* Quick Start Gradient panel */
.quick-start-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quick-start-card h3 {
  font-size: 18px;
  color: white;
}

.quick-start-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}

/* Action row above table */
.view-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: 8px;
  gap: 12px;
  max-width: 400px;
  flex-grow: 1;
}

.search-box i {
  color: var(--text-muted);
  width: 16px;
  height: 16px;
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: white;
  width: 100%;
  font-family: var(--font-body);
  font-size: 13px;
}

/* Campaigns Table styling */
.table-container {
  overflow-x: auto;
  padding: 0;
  border-radius: 12px;
}

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

.data-table th, .data-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background: rgba(255, 255, 255, 0.01);
  color: var(--text-muted);
  font-family: var(--font-title);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
}

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

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.015);
}

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

/* Table statuses and pills */
.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: white;
}

.platform-pill.instagram { background: rgba(214, 36, 159, 0.15); border: 1px solid rgba(214, 36, 159, 0.3); }
.platform-pill.linkedin { background: rgba(0, 119, 181, 0.15); border: 1px solid rgba(0, 119, 181, 0.3); }
.platform-pill.facebook { background: rgba(24, 119, 242, 0.15); border: 1px solid rgba(24, 119, 242, 0.3); }
.platform-pill.twitter { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); }

.tag-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 11px;
  color: #e5e7eb;
  margin-right: 4px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

.status-pill.active {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-pill.paused {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.table-btn-row {
  display: flex;
  gap: 8px;
}

.table-action-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  border-radius: 4px;
  transition: all var(--transition-fast);
  display: inline-flex;
}

.table-action-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.table-action-btn:hover.btn-delete {
  color: var(--accent-red);
}

.empty-table-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 24px;
  text-align: center;
}

.empty-table-state i {
  width: 48px;
  height: 48px;
  color: var(--text-dark);
}

/* Integrations grid cards */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.integration-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(15, 20, 32, 0.45);
}

.integration-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.platform-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.platform-logo.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); }
.platform-logo.linkedin { background: #0077b5; }
.platform-logo.facebook { background: #1877f2; }
.platform-logo.twitter { background: #111111; }

.status-badge {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 10px;
}

.status-badge.disconnected {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.status-badge.connected {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.integration-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.integration-body h3 {
  font-size: 16px;
  color: white;
}

.integration-body p {
  font-size: 12px;
}

/* Simulator Bar and Grid Layout */
.simulator-setup {
  padding: 16px 24px;
}

.form-group.row-group {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

.form-group.row-group .field-item {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.row-group label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-weight: 600;
}

.form-control {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  outline: none;
  font-family: var(--font-body);
  font-size: 13px;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple-glow);
}

.simulator-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 38px;
  align-items: center;
}

.simulator-tags .tag {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-family: monospace;
}

.simulator-action-summary {
  display: flex;
  align-items: center;
  min-height: 38px;
  font-size: 13px;
  color: white;
}

/* Phone Mockup Styling */
.simulator-layout {
  display: grid;
  grid-template-columns: minmax(320px, 360px) 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 768px) {
  .simulator-layout {
    grid-template-columns: 1fr;
  }
}

.phone-mockup {
  padding: 12px;
  border-radius: 40px;
  background: #030712;
  border: 4px solid #1f2937;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 360px;
  justify-self: center;
}

.phone-screen {
  background: #000000;
  border-radius: 32px;
  overflow: hidden;
  height: 580px;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Phone Status Bar */
.phone-header {
  height: 32px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}

.phone-time {
  font-size: 11px;
  color: white;
  font-weight: 600;
}

.phone-notch {
  width: 100px;
  height: 18px;
  background: #030712;
  border-radius: 0 0 12px 12px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  color: white;
}

/* Phone App Navigation Bar */
.phone-app-bar {
  height: 44px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  color: white;
  background: #000;
}

.phone-app-title {
  font-size: 14px;
  font-weight: 700;
}

/* Phone App Body Content */
.phone-body {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: #000;
}

.post-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
}

.post-user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #c084fc;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: bold;
}

.post-user-name {
  font-size: 11px;
  font-weight: bold;
  color: white;
}

/* Simulated media content inside phone */
.post-media {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1e1b4b 0%, #311042 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 0.5px solid rgba(255, 255, 255, 0.05);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.05);
}

.post-placeholder-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
}

.media-icon {
  width: 32px;
  height: 32px;
}

.post-placeholder-media span {
  font-size: 11px;
  text-align: center;
  padding: 0 10px;
}

.post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
}

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

.post-icon {
  color: white;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.active-comment-icon {
  color: var(--accent-purple);
}

.post-likes {
  font-size: 10px;
  padding: 0 12px 6px;
  color: white;
}

.post-caption {
  font-size: 11px;
  padding: 0 12px 10px;
  color: white;
  line-height: 1.4;
}

/* Comment Box inside Mock phone */
.post-comments-container {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.comments-divider {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--text-dark);
  font-weight: bold;
  padding: 6px 12px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.1);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.01);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
}

.sim-comment-item {
  display: flex;
  gap: 8px;
  font-size: 10px;
  line-height: 1.3;
  animation: slideUp 0.25s ease-out;
}

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

.commenter-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #374151;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  font-weight: bold;
  flex-shrink: 0;
}

.comment-content {
  color: #e5e7eb;
}

/* Phone bottom commenting input */
.phone-comment-input-bar {
  border-top: 0.5px solid rgba(255, 255, 255, 0.15);
  background: #000;
  padding: 8px 12px 14px;
}

.simulator-commenter-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.commenter-select {
  background: #1f2937;
  border: none;
  outline: none;
  color: white;
  font-size: 9px;
  font-weight: bold;
  padding: 2px 4px;
  border-radius: 3px;
}

.comment-input-field-wrapper {
  display: flex;
  align-items: center;
  background: #111827;
  border-radius: 16px;
  padding: 4px 6px 4px 12px;
}

.comment-input-field-wrapper input {
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: 11px;
  flex-grow: 1;
}

.btn-post-comment {
  background: transparent;
  border: none;
  color: var(--accent-purple);
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  padding: 4px 8px;
}

.btn-post-comment:hover {
  color: #a78bfa;
}

/* Side simulation logs and DMs */
.simulator-side-panel {
  display: flex;
  flex-direction: column;
  height: 580px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.tab-toggle-bar {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-color);
}

.sim-tab {
  flex-grow: 1;
  background: transparent;
  border: none;
  padding: 14px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all var(--transition-fast);
  border-bottom: 2px solid transparent;
}

.sim-tab:hover {
  color: white;
}

.sim-tab.active {
  color: var(--accent-purple);
  border-bottom-color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.03);
}

.sim-panel-content {
  flex-grow: 1;
  overflow: hidden;
  position: relative;
}

.sim-subview {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
}

/* Developer log console styling */
.log-terminal {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #040810;
  font-family: 'Courier New', Courier, monospace;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #090e18;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.terminal-dot.red { background-color: var(--accent-red); }
.terminal-dot.yellow { background-color: var(--accent-amber); }
.terminal-dot.green { background-color: var(--accent-green); }

.terminal-title {
  color: var(--text-muted);
  font-size: 10px;
  flex-grow: 1;
  margin-left: 6px;
}

.btn-clear-logs {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 3px;
  cursor: pointer;
}

.btn-clear-logs:hover {
  color: white;
  background: rgba(255,255,255,0.1);
}

.terminal-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
}

.log-line {
  line-height: 1.4;
  white-space: pre-wrap;
}

.log-line.system { color: #8892b0; }
.log-line.incoming { color: #38bdf8; }
.log-line.analyze { color: #e2e8f0; }
.log-line.success { color: #4ade80; }
.log-line.error { color: #f87171; }

/* DM Chat box inside monitor view */
.dm-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dm-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.1);
}

.dm-header-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #4f46e5;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
}

.dm-header-info {
  flex-grow: 1;
}

.dm-header-name {
  font-size: 12px;
  font-weight: 700;
}

.dm-header-status {
  font-size: 9px;
  color: var(--accent-green);
}

.dm-header-actions {
  display: flex;
  gap: 16px;
  color: var(--text-muted);
}

.dm-header-actions i {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.dm-header-actions i:hover {
  color: white;
}

.dm-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #0a0e17;
}

.dm-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  color: var(--text-dark);
}

.dm-empty-state i {
  width: 32px;
  height: 32px;
}

.dm-empty-state p {
  font-size: 11px;
  text-align: center;
}

.dm-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 11px;
  line-height: 1.4;
  animation: scaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.dm-bubble.inbound {
  background: #1f2937;
  color: #f3f4f6;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.dm-bubble.outbound {
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-purple-hover) 100%);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  box-shadow: 0 3px 10px rgba(139, 92, 246, 0.2);
}

.dm-bubble-file {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dm-bubble-file i {
  width: 20px;
  height: 20px;
  color: #c084fc;
}

.dm-bubble-file-info {
  display: flex;
  flex-direction: column;
}

.dm-bubble-file-name {
  font-weight: bold;
  font-size: 10px;
}

.dm-bubble-file-size {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.65);
}

.dm-bubble-url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #22d3ee !important;
  text-decoration: none;
  font-weight: 600;
  margin-top: 6px;
  background: rgba(0,0,0,0.15);
  padding: 6px 10px;
  border-radius: 4px;
  border: 0.5px solid rgba(6, 182, 212, 0.3);
}

.dm-bubble-url:hover {
  text-decoration: underline;
  background: rgba(0,0,0,0.25);
}

.dm-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-dark);
}

.dm-footer i {
  width: 18px;
  height: 18px;
}

.dm-input-mock {
  background: rgba(255,255,255,0.03);
  border: 1.5px dashed var(--border-color);
  color: var(--text-muted);
  border-radius: 20px;
  font-size: 10px;
  padding: 8px 16px;
  flex-grow: 1;
  text-align: center;
}

/* Analytics View Styles */
.analytics-overview-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.analytics-overview-row .overview-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.analytics-overview-row .overview-card h3 {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.analytics-overview-row .overview-card .val {
  font-size: 28px;
  font-family: var(--font-title);
  font-weight: 700;
  color: white;
}

.chart-panel {
  display: flex;
  flex-direction: column;
}

.panel-header .subtext {
  font-size: 11px;
  color: var(--text-muted);
}

.chart-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 240px;
  flex-grow: 1;
  padding-top: 10px;
}

/* SVG Chart styles */
.chart-bar-rect {
  fill: url(#bar-gradient);
  rx: 4;
  transition: height var(--transition-normal), y var(--transition-normal);
}

.chart-bar-rect:hover {
  fill: url(#bar-gradient-hover);
}

.chart-grid-line {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-dasharray: 2 2;
}

.chart-axis-line {
  stroke: rgba(255, 255, 255, 0.15);
}

.chart-text-label {
  fill: var(--text-muted);
  font-size: 9px;
  font-family: var(--font-body);
}

.chart-text-value {
  fill: white;
  font-size: 9px;
  font-weight: bold;
}

.chart-donut-segment {
  fill: none;
  stroke-width: 24;
  transition: stroke-dasharray var(--transition-normal);
}

.chart-donut-segment.instagram { stroke: #d6249f; }
.chart-donut-segment.linkedin { stroke: #0077b5; }
.chart-donut-segment.facebook { stroke: #1877f2; }
.chart-donut-segment.twitter { stroke: #ffffff; }

.chart-donut-center {
  fill: #111827;
}

/* Modals Overlay styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

.modal-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes scaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

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

.modal-header h2 {
  font-size: 20px;
  color: white;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
}

.btn-close-modal:hover {
  color: white;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

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

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
}

.form-help {
  font-size: 11px;
  color: var(--text-muted);
}

.rows-3 { height: 70px; resize: none; }
.rows-4 { height: 90px; resize: none; }

/* Modal specific inputs */
.post-selector-wrapper {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
}

.post-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.post-picker-empty {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 12px;
  color: var(--text-dark);
  padding: 20px;
}

.post-picker-item {
  aspect-ratio: 1;
  border-radius: 6px;
  border: 2px solid transparent;
  background: #1f2937;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.post-picker-item img, .post-picker-item svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-picker-item.selected {
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple-glow);
}

.post-picker-item-id {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 7px;
  padding: 1px 3px;
  border-radius: 2px;
  font-family: monospace;
}

.post-id-manual-field {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.post-id-manual-field span {
  flex-shrink: 0;
  color: var(--text-muted);
}

.action-type-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.action-type-card {
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.action-type-card i {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
}

.action-type-card h4 {
  font-size: 13px;
  color: white;
}

.action-type-card span {
  font-size: 10px;
  color: var(--text-dark);
}

.action-type-card:hover {
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.15);
}

.action-type-card.active {
  border-color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.05);
}

.action-type-card.active i {
  color: var(--accent-purple);
}

/* File Drop Zone styling */
.file-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  background: var(--bg-primary);
}

.file-dropzone:hover {
  border-color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.01);
}

.file-dropzone i {
  width: 32px;
  height: 32px;
  color: var(--text-muted);
}

.file-dropzone p {
  font-size: 12px;
}

.selected-file-info {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-tertiary);
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  margin-top: 6px;
}

.file-name {
  font-size: 11px;
  font-weight: bold;
  color: white;
}

.file-size {
  font-size: 10px;
  color: var(--text-muted);
}

.hidden-file-input {
  display: none;
}

.action-details-area {
  min-height: 120px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: 8px;
}

.action-detail-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeIn var(--transition-fast);
}

/* OAuth Modal Specific Design */
.oauth-dialog {
  background: #1c2130;
  border: 1px solid #3b4252;
  border-radius: 8px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: scaleUp var(--transition-fast);
}

.oauth-popup-header {
  background: #141822;
  height: 36px;
  padding: 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid #2e3440;
  user-select: none;
}

.oauth-window-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
}

.oauth-window-actions {
  display: flex;
  gap: 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.oauth-window-actions span {
  cursor: pointer;
}

.close-popup:hover {
  color: var(--accent-red);
}

.oauth-popup-body {
  padding: 32px 24px;
}

.oauth-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  animation: fadeIn 0.25s ease;
}

.platform-login-logo {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 8px;
}

.platform-login-logo.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); }
.platform-login-logo.linkedin { background: #0077b5; }
.platform-login-logo.facebook { background: #1877f2; }
.platform-login-logo.twitter { background: #111111; }

.oauth-popup-body h2 {
  font-size: 20px;
  color: white;
}

.oauth-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 320px;
}

.oauth-field {
  background: #111520;
  border-color: #2e3440;
  width: 280px;
}

.btn-oauth-action {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: white;
  width: 280px;
  padding: 12px;
}

.btn-oauth-action:hover {
  background: #4338ca;
}

.oauth-secure-note {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dark);
  font-size: 10px;
  max-width: 260px;
  margin-top: 12px;
}

/* OAuth consent styles */
.oauth-consent-avatars {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.app-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 0 10px var(--accent-purple-glow);
}

.transfer-arrow {
  color: var(--text-dark);
}

.social-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.social-avatar-circle.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); }
.social-avatar-circle.linkedin { background: #0077b5; }
.social-avatar-circle.facebook { background: #1877f2; }
.social-avatar-circle.twitter { background: #111111; }

.permissions-checklist {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  background: #141822;
  border: 1px solid #2e3440;
  border-radius: 6px;
  padding: 16px;
  width: 100%;
}

.permission-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.permission-check-item i {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

.check-green {
  color: var(--accent-green);
}

.permission-desc {
  display: flex;
  flex-direction: column;
}

.permission-desc strong {
  font-size: 12px;
  color: white;
}

.permission-desc span {
  font-size: 10px;
  color: var(--text-muted);
}

.consent-action-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.connect-approve-btn {
  flex-grow: 1;
}

.connect-decline-btn {
  width: 100px;
}

/* OAuth Spinner */
.oauth-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.05);
  border-top-color: var(--accent-purple);
  border-radius: 50%;
  animation: oauth-spin 1s linear infinite;
  margin-bottom: 8px;
}

@keyframes oauth-spin {
  to { transform: rotate(360deg); }
}

/* OAuth Success checkmark */
.success-checkmark-circle {
  color: var(--accent-green);
  margin-bottom: 8px;
}
