@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ==========================================
   DESIGN TOKENS & DESIGN SYSTEM
   ========================================== */
:root {
  --bg-deep: #020617;
  --bg-surface: rgba(15, 23, 42, 0.55);
  --bg-surface-solid: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.45);
  --bg-card-hover: rgba(30, 41, 59, 0.7);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-focus: rgba(147, 197, 253, 0.4);
  --border-active: rgba(147, 197, 253, 0.2);
  
  /* Brand Palette (DigAgency style) */
  --accent-primary: #93c5fd;     /* Sky 300 */
  --accent-hover: #60a5fa;       /* Blue 400 */
  --accent-gradient: linear-gradient(135deg, #93c5fd 0%, #3b82f6 100%);
  --accent-glow: rgba(147, 197, 253, 0.25);
  --accent-glow-subtle: rgba(147, 197, 253, 0.08);
  
  /* Status Colors */
  --color-success: #34d399;      /* Emerald 400 */
  --color-success-bg: rgba(52, 211, 153, 0.1);
  --color-danger: #f87171;       /* Rose 400 */
  --color-danger-bg: rgba(248, 113, 113, 0.1);
  --color-warning: #fbbf24;      /* Amber 400 */
  --color-warning-bg: rgba(251, 191, 36, 0.1);
  --color-info: #60a5fa;
  --color-info-bg: rgba(96, 165, 250, 0.1);
  
  /* Typography Text */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --text-dark: #020617;
  
  /* Shadows & Glassmorphism */
  --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(147, 197, 253, 0.15);
  --glass-blur: blur(16px);
  --transition-speed: 0.3s;
}

/* ==========================================
   RESET & GLOBAL BASE STYLES
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep);
}

body {
  font-family: 'Plus Jakarta Sans', 'Outfit', system-ui, sans-serif;
  color: var(--text-secondary);
  background-color: var(--bg-deep);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Typography Resets */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-speed);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* ==========================================
   LAYOUT STRUCTURE
   ========================================== */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* Background floating glow circles */
.glow-backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.glow-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow-subtle) 0%, transparent 70%);
  filter: blur(100px);
  opacity: 0.7;
}

.glow-1 {
  width: 600px;
  height: 600px;
  top: -10%;
  left: 20%;
}

.glow-2 {
  width: 500px;
  height: 500px;
  bottom: -10%;
  right: 15%;
}

.glow-3 {
  width: 400px;
  height: 400px;
  top: 40%;
  left: -10%;
}

/* Navigation Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid transparent;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.nav-link.active {
  border-color: var(--border-active);
  background: rgba(147, 197, 253, 0.05);
  color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(147, 197, 253, 0.1);
}

.user-profile-widget {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.9rem;
  box-shadow: 0 0 10px rgba(147, 197, 253, 0.3);
}

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Logout Button */
.btn-logout {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  transition: all var(--transition-speed);
}

.btn-logout:hover {
  color: var(--color-danger);
  border-color: rgba(248, 113, 113, 0.3);
  background: var(--color-danger-bg);
}

/* Main Content Area */
.main-workspace {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  position: relative;
}

/* ==========================================
   COMPONENTS & UI ELEMENTS
   ========================================== */

/* Glass Cards */
.glass-card {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-premium);
  transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  position: relative;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.glass-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: var(--shadow-premium), var(--shadow-glow);
}

/* Buttons Styling */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--text-dark);
  box-shadow: 0 4px 14px rgba(147, 197, 253, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, #2563eb 100%);
  box-shadow: 0 6px 20px rgba(147, 197, 253, 0.4);
  transform: scale(1.03);
}

.btn-secondary {
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--border-focus);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 15px rgba(147, 197, 253, 0.1);
}

.btn-success {
  background: var(--color-success);
  color: var(--text-dark);
  box-shadow: 0 4px 10px rgba(52, 211, 153, 0.2);
}

.btn-success:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(52, 211, 153, 0.3);
}

.btn-danger {
  background: var(--color-danger);
  color: var(--text-dark);
  box-shadow: 0 4px 10px rgba(248, 113, 113, 0.2);
}

.btn-danger:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(248, 113, 113, 0.3);
}

.btn-icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  border-color: var(--border-focus);
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-primary);
}

/* Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-success {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.badge-danger {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.badge-warning {
  background: var(--color-warning-bg);
  color: var(--color-warning);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.badge-info {
  background: var(--color-info-bg);
  color: var(--color-info);
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  background: rgba(147, 197, 253, 0.08);
  color: var(--accent-primary);
  border: 1px solid rgba(147, 197, 253, 0.15);
  padding: 0.15rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Inputs & Form Controls */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  width: 100%;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-speed);
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 15px rgba(147, 197, 253, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.3);
  background: rgba(15, 23, 42, 0.8);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

/* Drop area for files */
.file-drop-area {
  border: 2px dashed rgba(147, 197, 253, 0.2);
  background: rgba(147, 197, 253, 0.02);
  border-radius: 1rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.file-drop-area:hover, .file-drop-area.dragover {
  border-color: var(--accent-primary);
  background: rgba(147, 197, 253, 0.06);
  box-shadow: var(--shadow-glow);
}

.file-drop-icon {
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
  transition: transform var(--transition-speed);
}

.file-drop-area:hover .file-drop-icon {
  transform: translateY(-4px);
}

/* Modal Overlay & Transitions */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: #0b1329;
  border: 1px solid var(--border-subtle);
  border-radius: 1.5rem;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), var(--shadow-glow);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-content form {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

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

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close {
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition-speed);
}

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

.modal-body {
  padding: 1.75rem;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.4);
}

/* Drawers (Slide-in Panels) */
.drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background: #0b1329;
  border-left: 1px solid var(--border-subtle);
  box-shadow: -15px 0 35px rgba(0, 0, 0, 0.5);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.drawer-panel.active {
  transform: translateX(0);
}

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

.drawer-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.drawer-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

/* ==========================================
   SPECIFIC VIEWS
   ========================================== */

/* 1. Login View */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem;
}

.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.login-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.login-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2rem;
}

/* 2. Dashboard View */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  padding: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.stat-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: rgba(147, 197, 253, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 1.5rem;
}

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

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.recent-activities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
}

.recent-block {
  padding: 1.75rem;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.recent-title {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.recent-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  transition: all var(--transition-speed);
}

.recent-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(147, 197, 253, 0.15);
}

/* 3. Persons View */
.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.view-title {
  font-size: 1.75rem;
}

.view-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.filters-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-input {
  padding-left: 2.75rem !important;
}

.persons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.person-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: auto;
  cursor: pointer;
}

.person-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.person-avatar-container {
  position: relative;
}

.person-photo {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  object-cover: cover;
  background: var(--bg-surface-solid);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.person-initials {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-dark);
  box-shadow: 0 4px 10px rgba(147, 197, 253, 0.2);
}

.person-badge-alert {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  background: var(--color-warning);
  color: var(--text-dark);
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.7rem;
  border: 2px solid var(--bg-surface-solid);
  cursor: pointer;
  animation: pulse-glow 2s infinite;
}

.person-identity {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.person-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.person-job {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.person-card-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin-bottom 0.3s ease, margin-top 0.3s ease, padding-top 0.3s ease, border-top 0.3s ease;
}

.person-card.expanded .person-card-body {
  max-height: 350px;
  opacity: 1;
  margin-bottom: 1.25rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

/* Quick tags in compact mode */
.person-card-quick-tags {
  max-height: 60px;
  opacity: 1;
  overflow: hidden;
  margin-top: 0.4rem;
  transition: max-height 0.3s ease, opacity 0.2s ease, margin-top 0.3s ease;
}

.person-card.expanded .person-card-quick-tags {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

.person-card.expanded .person-card-expand-indicator {
  transform: rotate(90deg);
  color: var(--accent-primary) !important;
  opacity: 1 !important;
}

.person-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.person-info-icon {
  color: var(--accent-primary);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.person-info-text {
  color: var(--text-secondary);
}

.person-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  margin-top: auto;
}

/* Pagination */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}

.pagination-info {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pagination-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 4. Meetings View */
.meetings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.meeting-card {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.meeting-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 140px;
}

.meeting-date {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

.meeting-main {
  flex: 1;
}

.meeting-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.meeting-person-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--accent-primary);
  font-weight: 600;
}

.meeting-person-link:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

.meeting-actions-status {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* 5. Enrichments Drawer specific styles */
.enrichment-suggestion-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.enrichment-field-name {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-primary);
  letter-spacing: 0.05em;
}

.enrichment-value-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.enrichment-val-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.enrichment-val-content {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 0.6rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  word-break: break-word;
}

.enrichment-val-content.suggested {
  border-color: rgba(147, 197, 253, 0.15);
  background: rgba(147, 197, 253, 0.03);
  color: var(--text-primary);
}

.enrichment-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.enrichment-actions button {
  flex: 1;
}

/* Ingestion panel / Details inside drawer */
.detail-block {
  margin-bottom: 1.5rem;
}

.detail-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-primary);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.detail-content {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 1rem;
  font-size: 0.9rem;
  white-space: pre-line;
  color: var(--text-secondary);
}

.detail-empty {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.85rem;
}

/* AI Highlight summary box */
.ai-summary-highlight {
  background: linear-gradient(135deg, rgba(147, 197, 253, 0.08) 0%, rgba(59, 130, 246, 0.03) 100%);
  border: 1px solid rgba(147, 197, 253, 0.25);
  box-shadow: 0 0 20px rgba(147, 197, 253, 0.05);
}

.ai-questions-highlight {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.05) 0%, transparent 100%);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

/* Loading Spiner */
.spinner {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loader-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
}

/* Telegram deep link view details */
.telegram-card {
  max-width: 500px;
  margin: 2rem auto;
  padding: 2.5rem;
  text-align: center;
}

.telegram-logo-big {
  color: #24A1DE;
  width: 5.5rem;
  height: 5.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.telegram-logo-big:hover {
  transform: scale(1.08) rotate(3deg);
}

.btn-tg-transition {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.btn-glowing-active {
  background: linear-gradient(135deg, #24A1DE 0%, #1e83b4 100%) !important;
  border-color: #24A1DE !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(36, 161, 222, 0.4) !important;
  animation: pulse-tg-glow 2.2s infinite ease-in-out;
}

.btn-glowing-active:hover {
  background: linear-gradient(135deg, #2ab0f1 0%, #24A1DE 100%) !important;
  box-shadow: 0 0 30px rgba(36, 161, 222, 0.6) !important;
  transform: translateY(-2px) scale(1.03) !important;
}

@keyframes pulse-tg-glow {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(36, 161, 222, 0.35), 0 0 0 0 rgba(36, 161, 222, 0.4);
  }
  50% {
    box-shadow: 0 8px 30px rgba(36, 161, 222, 0.6), 0 0 0 10px rgba(36, 161, 222, 0);
  }
}

.telegram-link-display {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 1rem;
  font-size: 0.95rem;
  font-family: monospace;
  color: var(--accent-primary);
  word-break: break-all;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ==========================================
   ANIMATIONS & MEDIA QUERIES
   ========================================== */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse-glow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(251, 191, 36, 0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: #0f172a;
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  color: var(--text-primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), var(--shadow-glow);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  transform: translateY(20px);
  opacity: 0;
  animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toast-in {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.toast.success {
  border-left: 4px solid var(--color-success);
}

.toast.error {
  border-left: 4px solid var(--color-danger);
}

.toast.info {
  border-left: 4px solid var(--color-info);
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .app-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .nav-links {
    width: 100%;
    justify-content: center;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }
  
  .user-profile-widget {
    width: 100%;
    justify-content: space-between;
  }
  
  .view-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .view-actions {
    margin-top: 0.5rem;
    justify-content: flex-end;
  }
  
  .meeting-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .meeting-meta {
    min-width: unset;
  }
  
  .meeting-actions-status {
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid var(--border-subtle);
    padding-top: 0.75rem;
  }
}
