/* ============================================
   GHOULAX DEVBOARD - STYLES (Ocean Ice Theme)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  /* Brand Colors - Ocean Ice Theme */
  --primary-light: #7DD8F0;
  --primary: #5EC6E3;
  --primary-dark: #1B5A7D;
  --primary-darker: #0D3B5C;

  /* Background Colors */
  --bg-dark: #060D1A;
  --bg-darker: #030812;
  --bg-card: rgba(10, 22, 40, 0.85);
  --bg-card-hover: rgba(15, 35, 60, 0.9);
  --bg-input: rgba(255, 255, 255, 0.05);
  --bg-gradient: linear-gradient(135deg, #060D1A 0%, #0A1628 50%, #060D1A 100%);

  /* Text Colors */
  --text-primary: #EAF4FA;
  --text-secondary: #9AB8CE;
  --text-muted: #5A7A92;

  /* Accent Colors */
  --accent-gold: #F0C850;
  --accent-green: #22c55e;
  --accent-red: #ef4444;
  --accent-purple: #7C6FF0;
  
  --priority-low: #22c55e;
  --priority-medium: #F0C850;
  --priority-high: #f97316;
  --priority-critical: #ef4444;

  --status-todo: #5A7A92;
  --status-progress: #5EC6E3;
  --status-review: #7C6FF0;
  --status-done: #22c55e;

  /* Primary Gradient - Icy/Ocean */
  --primary-gradient: linear-gradient(135deg, #5EC6E3, #1B5A7D);
  --metallic-gradient: linear-gradient(135deg, #A8E0F5 0%, #5EC6E3 25%, #1B5A7D 50%, #5EC6E3 75%, #A8E0F5 100%);
  --metallic-text: linear-gradient(180deg, #A8E0F5 0%, #5EC6E3 50%, #1B5A7D 100%);

  /* Shadows & Effects */
  --shadow-sm: 0 2px 10px rgba(94, 198, 227, 0.1);
  --shadow-md: 0 4px 20px rgba(94, 198, 227, 0.15);
  --shadow-lg: 0 8px 40px rgba(94, 198, 227, 0.2);
  --shadow-glow: 0 0 30px rgba(94, 198, 227, 0.4);

  /* Typography */
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Glass Effects */
  --glass-bg: rgba(6, 15, 30, 0.6);
  --glass-blur: blur(12px);
  --glass-border: 1px solid rgba(94, 198, 227, 0.1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --primary-light: #A3B1C6;
  --primary: #5A6A85;
  --primary-dark: #323E54;
  --primary-darker: #1A2235;

  --bg-dark: #000000;
  --bg-darker: #050505;
  --bg-card: rgba(15, 15, 15, 0.85);
  --bg-card-hover: rgba(25, 25, 25, 0.9);
  --bg-input: rgba(255, 255, 255, 0.05);
  --bg-gradient: linear-gradient(135deg, #000000 0%, #0A0A0A 50%, #000000 100%);

  --text-primary: #EDEDED;
  --text-secondary: #999999;
  --text-muted: #555555;
  
  --primary-gradient: linear-gradient(135deg, #5A6A85, #323E54);
  --metallic-gradient: linear-gradient(135deg, #A3B1C6 0%, #5A6A85 25%, #323E54 50%, #5A6A85 75%, #A3B1C6 100%);
  --metallic-text: linear-gradient(180deg, #A3B1C6 0%, #5A6A85 50%, #323E54 100%);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 30px rgba(0, 0, 0, 0.5);

  --glass-bg: rgba(10, 10, 10, 0.6);
  --glass-border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] {
  color-scheme: light;
  --primary-light: #4A9CBA;
  --primary: #3884A0;
  --primary-dark: #1F5F7A;
  --primary-darker: #134559;

  --bg-dark: #F5F7FA;
  --bg-darker: #E4E8F0;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --bg-input: rgba(0, 0, 0, 0.05);
  --bg-gradient: linear-gradient(135deg, #F5F7FA 0%, #EAEFF5 50%, #F5F7FA 100%);

  --text-primary: #1A2235;
  --text-secondary: #4A5A75;
  --text-muted: #8292A5;
  
  --primary-gradient: linear-gradient(135deg, #4A9CBA, #1F5F7A);
  --metallic-gradient: linear-gradient(135deg, #7AC3DD 0%, #3884A0 25%, #1F5F7A 50%, #3884A0 75%, #7AC3DD 100%);
  --metallic-text: linear-gradient(180deg, #3884A0 0%, #1F5F7A 50%, #134559 100%);

  --shadow-sm: 0 2px 10px rgba(56, 132, 160, 0.1);
  --shadow-md: 0 4px 20px rgba(56, 132, 160, 0.15);
  --shadow-lg: 0 8px 40px rgba(56, 132, 160, 0.2);
  --shadow-glow: 0 0 30px rgba(56, 132, 160, 0.3);

  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: 1px solid rgba(0, 0, 0, 0.1);
}

/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--primary-light); text-decoration: none; }
a:hover { color: var(--primary); }

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  outline: none;
}

input, select, textarea {
  font-family: var(--font-body);
  outline: none;
}

input[type="color"]::-webkit-color-swatch-wrapper {
	padding: 0;
}
input[type="color"]::-webkit-color-swatch {
	border: none;
}

/* ── SVG Utilities ── */
.svg-icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex-shrink: 0;
}
.svg-icon.stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-xl);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--metallic-gradient);
  color: white;
  box-shadow: var(--shadow-md);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

.btn-danger {
  background: transparent;
  color: var(--accent-red);
  border: 1px solid var(--accent-red);
}
.btn-danger:hover {
  background: var(--accent-red);
  color: white;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.75rem;
}

/* ============================================
   LOGIN PAGE
   ============================================ */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 50%, rgba(94, 198, 227, 0.08) 0%, transparent 60%);
}

.login-card {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  max-width: 440px;
  width: 90%;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  animation: floatCard 4s ease-in-out infinite alternate;
}

@keyframes floatCard {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

.login-card .logo {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 20px rgba(94, 198, 227, 0.3));
}

.login-card h1 {
  font-size: 1.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  background: var(--metallic-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
  letter-spacing: 1px;
}

.login-card .subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.login-btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  background: #5865F2;
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.3);
  width: 100%;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.login-btn-discord:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(88, 101, 242, 0.5);
  color: #fff;
}

.login-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-footer {
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}


/* ============================================
   DASHBOARD LAYOUT
   ============================================ */

.app {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--bg-card);
  border-right: var(--glass-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  transition: transform var(--transition-normal);
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(94, 198, 227, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-header img {
  width: 36px;
  height: 36px;
}

.sidebar-header .brand-text h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  background: var(--metallic-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.sidebar-header .brand-text span {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.sidebar-nav {
  flex: 1;
  padding: 1.5rem 1rem;
  overflow-y: auto;
}

.nav-section {
  margin-bottom: 2rem;
}

.nav-section-title {
  font-size: 0.65rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  padding: 0 12px;
  margin-bottom: 12px;
  font-weight: 700;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  background: rgba(94, 198, 227, 0.08);
  color: var(--text-primary);
}

.nav-link.active {
  background: rgba(94, 198, 227, 0.15);
  color: var(--primary-light);
  font-weight: 600;
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: var(--metallic-gradient);
  border-radius: 0 4px 4px 0;
}

.nav-link .nav-icon {
  font-size: 1.1rem;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.nav-link .badge {
  margin-left: auto;
  background: var(--primary);
  color: var(--bg-dark);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
}

/* Sidebar user */
.sidebar-user {
  padding: 1.25rem;
  border-top: 1px solid rgba(94, 198, 227, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-user .user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-dark);
}

.sidebar-user .user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user .user-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user .user-role {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-user .logout-btn {
  background: none;
  color: var(--text-muted);
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: flex;
}

.sidebar-user .logout-btn:hover {
  color: var(--accent-red);
  background: rgba(239, 68, 68, 0.1);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 200;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--primary);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

/* ── Main Content ── */
.main-content {
  flex: 1;
  margin-left: 260px;
  min-height: 100vh;
  position: relative;
  background: var(--bg-gradient);
}

.page-content {
  position: relative;
  z-index: 1;
  padding: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* ── Page Header ── */
.page-header {
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  background: var(--metallic-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-header h1 .h1-icon {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.page-header .subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 4px;
}


/* ============================================
   STATS CARDS
   ============================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid rgba(94, 198, 227, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(94, 198, 227, 0.15);
}

.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 15px;
  color: var(--primary);
  background: rgba(94, 198, 227, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-card .stat-icon svg { width: 24px; height: 24px; }

.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--metallic-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
}


/* ============================================
   PROJECT CARDS
   ============================================ */
.section-header {
  margin-bottom: 1.5rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid rgba(94, 198, 227, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.project-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 20px 50px rgba(94, 198, 227, 0.15);
}

.project-card .project-header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 1rem;
}

.project-card .project-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(94, 198, 227, 0.1);
  color: var(--primary);
}

.project-card .project-icon svg { width: 26px; height: 26px; }

.project-card .project-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.project-card .project-desc {
  color: rgba(180, 190, 210, 0.85);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card .project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(94, 198, 227, 0.1);
  padding-top: 15px;
}

.project-card .project-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.project-card .project-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.project-card .project-meta span svg { width: 14px; height: 14px; color: var(--primary-light); }

.project-card .progress-bar {
  width: 90px;
  height: 6px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
  overflow: hidden;
}

.project-card .progress-bar .fill {
  height: 100%;
  background: var(--metallic-gradient);
  border-radius: 3px;
}


/* ============================================
   KANBAN BOARD
   ============================================ */

.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  min-height: 600px;
}

.kanban-column {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
}

.kanban-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(94, 198, 227, 0.15);
}

.kanban-column-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.kanban-column-title .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

.kanban-column-count {
  background: rgba(94, 198, 227, 0.15);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  color: var(--primary-light);
  font-weight: 700;
}

.kanban-tasks {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  overflow-y: auto;
  min-height: 150px;
  padding-right: 5px;
}
.kanban-tasks::-webkit-scrollbar { width: 4px; }
.kanban-tasks::-webkit-scrollbar-thumb { background: rgba(94, 198, 227, 0.3); border-radius: 4px; }

.kanban-tasks.drag-over {
  background: rgba(94, 198, 227, 0.05);
  border-radius: var(--radius-md);
}

/* ── Task Card ── */
.task-card {
  background: var(--bg-card);
  border: 1px solid rgba(94, 198, 227, 0.1);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: grab;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--metallic-gradient);
  opacity: 0;
  transition: opacity var(--transition-normal);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.task-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(94, 198, 227, 0.4);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  transform: translateY(-3px);
}

.task-card:hover::before {
  opacity: 1;
}

.task-card:active {
  cursor: grabbing;
  transform: translateY(0);
}

.task-card.dragging {
  opacity: 0.6;
  transform: rotate(3deg) scale(1.05);
  box-shadow: var(--shadow-lg);
}

.task-card .task-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.task-card .task-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.task-card .task-assignee {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.task-card .task-assignee img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--primary-dark);
}

.add-task-inline {
  width: 100%;
  padding: 10px;
  margin-top: 1rem;
  background: transparent;
  border: 1px dashed rgba(94, 198, 227, 0.3);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.add-task-inline svg { width: 14px; height: 14px; }

.add-task-inline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(94, 198, 227, 0.05);
}


/* ============================================
   FORMS & MODALS
   ============================================ */

.form-group {
  margin-bottom: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(94, 198, 227, 0.2);
  color: var(--text-primary);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(94, 198, 227, 0.1);
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235EC6E3'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  cursor: pointer;
  padding-right: 40px;
}

[data-theme="light"] .form-select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233884A0'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
}

.form-select option {
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-body);
}

input[type="date"].form-input {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  color: var(--text-primary);
  position: relative;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
  transition: 0.2s;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

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

/* ── Custom Form Elements (Color/Icon) ── */
.icon-picker {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.icon-option {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}
.icon-option svg { width: 22px; height: 22px; }
.icon-option:hover {
  background: rgba(94, 198, 227, 0.1);
  color: var(--primary);
  border-color: var(--primary);
}
.icon-option.active {
  background: var(--primary);
  color: var(--bg-dark);
  border-color: var(--primary-light);
  box-shadow: 0 0 10px rgba(94, 198, 227, 0.4);
}

.color-picker {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.color-option {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
}
.color-option:hover {
  transform: scale(1.15);
}
.color-option.active {
  border-color: white;
  box-shadow: 0 0 10px currentColor;
  transform: scale(1.2);
}

/* ── Theme Switcher ── */
.theme-switcher {
  display: flex;
  gap: 8px;
  padding: 0 12px;
}
.theme-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}
.theme-btn:hover {
  color: var(--primary);
  background: rgba(94, 198, 227, 0.1);
}
.theme-btn.active {
  background: var(--primary);
  color: var(--bg-dark);
  border-color: var(--primary-light);
  box-shadow: 0 0 10px rgba(94, 198, 227, 0.4);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 18, 0.8);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

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

.modal {
  background: var(--bg-card);
  border: 1px solid rgba(94, 198, 227, 0.15);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.95);
  transition: all var(--transition-normal);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

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

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(94, 198, 227, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--primary-light);
}

.modal-close {
  background: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: color var(--transition-fast);
}

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

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(94, 198, 227, 0.15);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(0,0,0,0.2);
}


/* ============================================
   TASK DETAIL PANEL
   ============================================ */

.task-detail-panel {
  position: fixed;
  top: 0;
  right: -500px;
  width: 500px;
  max-width: 100vw;
  height: 100vh;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-left: 1px solid rgba(94, 198, 227, 0.15);
  z-index: 150;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  transition: right 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.task-detail-panel.open {
  right: 0;
}

.task-detail-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(94, 198, 227, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,0,0,0.2);
}
.task-detail-header h3 {
  font-family: var(--font-display);
  color: var(--primary-light);
  font-size: 1.2rem;
}

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

/* ── Comments ── */
.comments-section {
  margin-top: 2rem;
}

.comment {
  display: flex;
  gap: 12px;
  margin-bottom: 1.2rem;
}

.comment img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(94, 198, 227, 0.2);
}

.comment-body {
  flex: 1;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(94, 198, 227, 0.1);
  padding: 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) var(--radius-sm);
}

.comment-author {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary-light);
}

.comment-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.comment-text {
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-top: 6px;
  line-height: 1.5;
}


/* ============================================
   MISC UTILITIES
   ============================================ */

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

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

.priority-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(0,0,0,0.3);
  border: 1px solid transparent;
}
.priority-low { color: var(--priority-low); border-color: rgba(34, 197, 94, 0.3); }
.priority-medium { color: var(--priority-medium); border-color: rgba(240, 200, 80, 0.3); }
.priority-high { color: var(--priority-high); border-color: rgba(249, 115, 22, 0.3); }
.priority-critical { color: var(--priority-critical); border-color: rgba(239, 68, 68, 0.3); }

.role-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  border: 1px solid currentColor;
}

.role-admin { color: var(--accent-red); background: rgba(239, 68, 68, 0.1); }
.role-lead { color: var(--accent-gold); background: rgba(240, 200, 80, 0.1); }
.role-developer { color: var(--primary); background: rgba(94, 198, 227, 0.1); }

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(94, 198, 227, 0.2);
}
.empty-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.empty-state h3 {
  font-family: var(--font-display);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.empty-state p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(94, 198, 227, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

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

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

.toast {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-md);
  padding: 16px 20px;
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: slideIn 0.3s ease forwards;
  transition: all 0.3s ease;
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--error); }
.toast.info { border-left-color: var(--info); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.toast.success svg { color: var(--success); }
.toast.error svg { color: var(--error); }
.toast.info svg { color: var(--info); }

/* Members section */
.member-chip {
  display: inline-flex;
  align-items: center;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(94, 198, 227, 0.15);
  border-radius: 20px;
  padding: 4px 12px 4px 4px;
  margin: 0 8px 8px 0;
  gap: 8px;
  font-size: 0.8rem;
}
.member-chip img {
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--primary-dark);
}
.member-chip .remove-member {
  background: none;
  color: var(--text-muted);
  font-size: 14px;
  padding: 0 4px;
}
.member-chip .remove-member:hover {
  color: var(--accent-red);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}
.team-card {
  background: var(--bg-card);
  border: 1px solid rgba(94, 198, 227, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem 1rem;
  text-align: center;
  transition: transform var(--transition-fast);
}
.team-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}
.team-card img {
  width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--primary); margin-bottom: 1rem;
}
.team-card .name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

/* ── List view for tasks ── */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.task-list-item {
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(94, 198, 227, 0.1);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
}
.task-list-item:hover {
  background: rgba(10, 22, 40, 0.9);
  border-color: var(--primary-dark);
}
.task-list-item .status-dot { margin-right: 16px; }
.task-list-item .task-info { flex: 1; }
.task-list-item .title { font-size: 0.95rem; font-weight: 500; color: var(--text-primary); margin-bottom: 2px;}
.task-list-item .meta { font-size: 0.75rem; color: var(--text-muted); display: flex; gap: 12px; align-items: center; }
.task-list-item .task-assignee-avatar {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border-color);
}

@media (max-width: 900px) {
  .kanban-board { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); width: 280px; }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .main-content { margin-left: 0; }
  .mobile-toggle { display: block; }
  .task-detail-panel { width: 100vw; }
}

/* ============================================
   PROJECT VIEW HEADER
   ============================================ */
.project-view-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(94,198,227,0.12);
  padding-bottom: 20px;
  margin-bottom: 1.5rem;
  gap: 16px;
  flex-wrap: wrap;
}
.project-view-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}
.project-view-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(94,198,227,0.08);
  border: 1px solid;
  flex-shrink: 0;
}
.project-view-title {
  margin: 0;
  font-family: var(--font-display);
  background: var(--metallic-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.5rem;
}
.project-view-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.project-category-tag {
  font-size: 0.65rem;
  background: rgba(94,198,227,0.12);
  color: var(--primary-light);
  padding: 3px 10px;
  border-radius: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.project-view-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.member-avatars {
  display: flex;
  align-items: center;
}
.member-avatar-pill {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  margin-left: -10px;
  z-index: 1;
  position: relative;
  object-fit: cover;
}
.member-avatar-add {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px dashed rgba(94,198,227,0.4);
  background: transparent;
  color: var(--primary-light);
  font-size: 16px;
  margin-left: -10px;
  z-index: 2;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.member-avatar-add:hover {
  background: rgba(94,198,227,0.15);
  border-color: var(--primary);
}
.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(94,198,227,0.08);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  margin-left: 10px;
  border: 1px solid rgba(94,198,227,0.15);
  cursor: pointer;
}
.btn-icon:hover {
  background: rgba(94,198,227,0.15);
  color: var(--primary-light);
  border-color: var(--primary);
}

/* ============================================
   TASK CARD (compact Kanban card)
   ============================================ */
.task-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.task-card-title {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--text-primary);
}
.task-card-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(94,198,227,0.25);
  flex-shrink: 0;
  object-fit: cover;
}
.task-card-avatar-empty {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px dashed rgba(94,198,227,0.25);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 10px;
}
.task-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.task-card-due {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}
.task-card-due.overdue { color: var(--accent-red); }
.task-card-due svg { width: 12px; height: 12px; }

/* ============================================
   TASK DETAIL REFINEMENTS
   ============================================ */
.task-detail-info { margin-bottom: 1.5rem; }
.task-detail-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1rem;
}
.task-detail-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--primary-light);
  line-height: 1.3;
}
.task-detail-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 1.2rem;
  background: rgba(0,0,0,0.2);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(94,198,227,0.08);
}
.meta-item { display: flex; flex-direction: column; gap: 4px; }
.meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
}
.status-pill {
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.status-todo { color: var(--status-todo); }
.status-in_progress { color: var(--status-progress); }
.status-review { color: var(--status-review); }
.status-done { color: var(--status-done); }

.task-detail-description { margin-bottom: 1.2rem; }
.section-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.description-content {
  line-height: 1.6;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.description-content img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 8px 0;
}
.text-muted { opacity: 0.5; }

.task-detail-assignee {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(94,198,227,0.1);
  padding-top: 1rem;
  flex-wrap: wrap;
  gap: 12px;
}
.assignee-info { display: flex; align-items: center; gap: 12px; }
.assignee-avatar { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--primary-dark); }
.assignee-name { font-weight: 600; font-size: 0.9rem; }
.task-actions-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-success { background: var(--accent-green) !important; border-color: var(--accent-green) !important; }

/* ============================================
   CHAT SYSTEM
   ============================================ */
.chat-section {
  border-top: 1px solid rgba(94,198,227,0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
  max-height: 400px;
  margin-bottom: 1rem;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(94,198,227,0.2); border-radius: 4px; }

.chat-empty {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 2rem 1rem;
}

.chat-message {
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}
.chat-message:hover { background: rgba(94,198,227,0.04); }
.chat-message.pinned {
  background: rgba(94,198,227,0.06);
  border-left: 3px solid var(--primary);
  padding-left: 10px;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(94,198,227,0.15);
  flex-shrink: 0;
  margin-top: 2px;
  object-fit: cover;
}
.chat-bubble { flex: 1; min-width: 0; }
.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  gap: 8px;
}
.chat-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.chat-author { font-weight: 600; font-size: 0.82rem; color: var(--primary-light); }
.chat-reply-tag {
  font-size: 0.68rem;
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  gap: 3px;
}
.chat-pin-tag { font-size: 0.68rem; color: var(--accent-gold); font-weight: 700; }
.chat-time { font-size: 0.68rem; color: var(--text-muted); flex-shrink: 0; }

.chat-content {
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.5;
  word-break: break-word;
}
.chat-content img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 6px 0;
  display: block;
  max-height: 300px;
  object-fit: contain;
}

.chat-actions {
  display: flex;
  gap: 4px;
  margin-top: 4px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.chat-message:hover .chat-actions { opacity: 1; }

.chat-action-btn {
  font-size: 0.68rem;
  padding: 2px 8px;
  background: rgba(94,198,227,0.08);
  border: none;
  color: var(--text-muted);
  border-radius: 3px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
}
.chat-action-btn:hover {
  background: rgba(94,198,227,0.15);
  color: var(--primary-light);
}

/* ── Chat Composer ── */
.chat-composer { margin-top: auto; }
.chat-reply-bar {
  font-size: 0.75rem;
  color: var(--primary);
  background: rgba(94,198,227,0.08);
  padding: 6px 12px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(94,198,227,0.15);
  border-bottom: none;
}
.chat-reply-cancel {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 0 4px;
}
.chat-reply-cancel:hover { color: var(--accent-red); }

.chat-input-row {
  display: flex;
  padding: 4px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(94,198,227,0.15);
  border-radius: 24px;
  align-items: center;
  gap: 4px;
}
.chat-attach-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.chat-attach-btn:hover {
  background: rgba(94,198,227,0.1);
  color: var(--primary);
}
.chat-attach-btn svg { width: 18px; height: 18px; }

.chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.88rem;
  padding: 8px 10px;
  font-family: var(--font-body);
}
.chat-input::placeholder { color: var(--text-muted); }
