/* app.css - CSS Mejorado */
:root {
  --bg: #0a0a12;
  --bg-2: #12121e;
  --bg-3: #1a1a2e;
  --bg-4: #24243a;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --text: #e8e8f0;
  --text-2: #8a8aa0;
  --text-3: #5a5a72;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-bg: rgba(99,102,241,0.12);
  --green: #10b981;
  --yellow: #f59e0b;
  --red: #ef4444;
  --pink: #ec4899;
  --cyan: #06b6d4;
  --purple: #8b5cf6;
  --orange: #f97316;
  --sidebar-w: 260px;
  --topbar-h: 60px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.7);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 14px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
}

.hidden { display: none !important; }

/* ============================================================
   LOGIN - Animaciones mejoradas
   ============================================================ */
.login-screen {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  animation: loginFade 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes loginFade {
  from { opacity: 0; transform: scale(1.05); }
  to { opacity: 1; transform: scale(1); }
}

.login-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, #1a1a2e 0%, #0a0a12 70%);
  overflow: hidden;
}

.login-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridFade 1.2s ease forwards;
}

@keyframes gridFade {
  from { opacity: 0; transform: scale(1.1); }
  to { opacity: 1; transform: scale(1); }
}

.login-particles {
  position: absolute; inset: 0;
  pointer-events: none;
}

.login-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0;
  animation: blobIn 1.4s ease forwards;
}

@keyframes blobIn {
  to { opacity: 0.2; }
}

.blob1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #6366f1, transparent);
  top: -200px; left: -200px;
  animation: blobIn 1.4s 0.2s ease forwards, float 10s 1.6s ease-in-out infinite;
}
.blob2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #8b5cf6, transparent);
  bottom: -100px; right: 5%;
  animation: blobIn 1.4s 0.4s ease forwards, float 12s 1.8s ease-in-out infinite reverse;
}
.blob3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #06b6d4, transparent);
  top: 40%; left: 60%;
  animation: blobIn 1.4s 0.6s ease forwards, float 14s 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.login-card {
  position: relative;
  background: rgba(18,18,30,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 24px;
  padding: 48px;
  width: 420px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03), 0 32px 80px rgba(0,0,0,0.6), 0 0 80px rgba(99,102,241,0.08);
  animation: cardEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.login-logo h1 {
  font-size: 22px; font-weight: 800;
  background: linear-gradient(135deg, #e8e8f0, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.login-logo p { font-size: 13px; color: var(--text-3); margin-top: 2px; }

.login-hint {
  text-align: center;
  font-size: 11px;
  color: var(--text-3);
  margin-top: 16px;
  opacity: 0.6;
}

/* ============================================================
   LOGO MARK
   ============================================================ */
.logo-mark {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(99,102,241,0.35);
  transition: transform 0.3s ease;
}
.logo-mark:hover { transform: scale(1.05); }
.logo-mark.sm { width: 36px; height: 36px; font-size: 16px; border-radius: 10px; }

/* ============================================================
   LAYOUT - App Entrance Animation
   ============================================================ */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  height: 100vh;
  transition: grid-template-columns 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  animation: appEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes appEntrance {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.app.collapsed { --sidebar-w: 72px; }

#view-container > * {
  animation: viewIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes viewIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.app.collapsed .logo-text,
.app.collapsed .sidebar-search,
.app.collapsed .nav-item span:not(.badge),
.app.collapsed .project-nav-item .pname,
.app.collapsed .project-nav-item .project-dot,
.app.collapsed .sidebar-section-header span,
.app.collapsed .sidebar-user-info,
.app.collapsed .sidebar-section-header .btn-icon-sm {
  display: none;
}

.app.collapsed .nav-item,
.app.collapsed .project-nav-item {
  justify-content: center;
  padding: 10px;
}

.app.collapsed .nav-item .badge {
  position: absolute;
  top: 2px; right: 2px;
  margin-left: 0;
}

.app.collapsed .nav-item { position: relative; }

.app.collapsed .sidebar-header {
  justify-content: center;
  padding: 14px 8px;
}

.app.collapsed .sidebar-toggle { margin-left: 0; }

.app.collapsed .sidebar-footer {
  flex-direction: column;
  padding: 12px 8px;
  gap: 8px;
}

.app.collapsed .sidebar-footer-actions {
  flex-direction: column;
  gap: 4px;
}

/* ============================================================
   SIDEBAR - Moderno con gradientes
   ============================================================ */
.sidebar {
  background: linear-gradient(180deg, #111120 0%, #0a0a12 100%);
  border-right: 1px solid rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 300px;
  background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  height: var(--topbar-h);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  position: relative;
  z-index: 1;
}

.logo-text {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.2s;
  background: linear-gradient(135deg, #e8e8f0, #8a8aa0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-toggle {
  margin-left: auto;
  opacity: 0.4;
  transition: opacity 0.2s, transform 0.3s;
}
.sidebar-toggle:hover { opacity: 0.9; transform: rotate(90deg); }

.sidebar-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 14px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  cursor: text;
  transition: all 0.25s;
}
.sidebar-search:focus-within {
  background: rgba(99,102,241,0.08);
  border-color: rgba(99,102,241,0.25);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.05);
}
.sidebar-search i { color: var(--text-3); flex-shrink: 0; font-size: 13px; }
.sidebar-search input {
  background: none; border: none; outline: none;
  color: var(--text); font-family: var(--font);
  font-size: 13px; flex: 1; min-width: 0;
}
.sidebar-search input::placeholder { color: var(--text-3); }
.sidebar-search kbd {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.sidebar-nav {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  background: none;
  color: var(--text-3);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.2s;
  text-align: left;
  position: relative;
}
.nav-item i { flex-shrink: 0; font-size: 16px; transition: color 0.2s; }
.nav-item:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.nav-item:hover i { color: var(--text); }
.nav-item.active {
  background: rgba(99,102,241,0.12);
  color: #a5b4fc;
}
.nav-item.active i { color: #818cf8; }
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: var(--accent);
  border-radius: 0 4px 4px 0;
}
.nav-item .badge {
  margin-left: auto;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  min-width: 20px;
  text-align: center;
}

.sidebar-section {
  flex: 1;
  overflow-y: auto;
  padding: 4px 12px 8px;
}
.sidebar-section::-webkit-scrollbar { width: 3px; }
.sidebar-section::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 2px; }

.sidebar-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.2);
}

.btn-icon-sm {
  width: 24px; height: 24px;
  border: none; background: none;
  color: var(--text-3);
  cursor: pointer;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
}
.btn-icon-sm:hover { background: rgba(255,255,255,0.07); color: var(--text); }

.project-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 10px;
  border: none;
  background: none;
  color: var(--text-3);
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
  text-align: left;
}
.project-nav-item:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.project-nav-item.active {
  background: rgba(99,102,241,0.08);
  color: #c4b5fd;
}
.project-nav-item .picon { font-size: 15px; }
.project-nav-item .pname {
  flex: 1; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.project-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin: 8px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
}

.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-info span { display: block; }
.sidebar-user-info span:first-child {
  font-size: 13px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text);
}
.sidebar-user-role {
  font-size: 10px; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.06em;
}

.sidebar-footer-actions {
  display: flex;
  gap: 4px;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

.topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}

.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-left h2 { font-size: 17px; font-weight: 700; }

.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-3);
}
.breadcrumb span + span::before { content: '/'; margin-right: 6px; }

.topbar-right { display: flex; align-items: center; gap: 6px; }

.view-switcher {
  display: flex;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
}
.view-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 28px;
  border: none; background: none;
  color: var(--text-3);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}
.view-btn:hover { color: var(--text); }
.view-btn.active { background: var(--bg-4); color: var(--accent); }
.view-btn i { font-size: 14px; }

.bell-btn { position: relative; }
.notif-dot {
  position: absolute;
  top: 4px; right: 4px;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid var(--bg);
}

.chat-dot {
  position: absolute;
  top: 4px; right: 4px;
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  border: 2px solid var(--bg);
}

.view-container {
  flex: 1;
  overflow: auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.35);
}

.btn-ghost {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: none;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--border-hover); color: var(--text); }

.btn-icon {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: none; background: none;
  color: var(--text-2);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  position: relative;
}
.btn-icon:hover { background: var(--bg-3); color: var(--text); }
.btn-icon i { font-size: 16px; }

.btn-sm {
  padding: 6px 14px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-sm:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-full { width: 100%; justify-content: center; padding: 14px; font-size: 14px; }

.btn-danger-sm {
  padding: 6px 12px;
  background: rgba(239,68,68,0.1);
  color: var(--red);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}
.btn-danger-sm:hover { background: rgba(239,68,68,0.2); }

/* ============================================================
   FORMULARIOS
   ============================================================ */
.field-group { display: flex; flex-direction: column; gap: 5px; }
.field-group label {
  font-size: 12px; font-weight: 500; color: var(--text-2);
  display: flex; align-items: center; gap: 6px;
}
.field-group label i { font-size: 12px; }

input[type="text"], input[type="email"], input[type="password"],
input[type="date"], input[type="number"], select, textarea {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  padding: 9px 14px;
  outline: none;
  width: 100%;
  transition: all 0.2s;
  -webkit-appearance: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.08);
}

input[type="color"] {
  width: 44px; height: 40px;
  padding: 2px;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

select option { background: var(--bg-3); color: var(--text); }

textarea { resize: vertical; }

.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.flex-1 { flex: 1; }
.icon-color-row { display: flex; gap: 10px; align-items: flex-end; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 500;
  animation: modalOverlayIn 0.25s ease;
}

@keyframes modalOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal { max-width: 480px; }
.modal-lg { max-width: 680px; }
.modal-xl { max-width: 960px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 {
  font-size: 16px; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.modal-header h3 i { color: var(--accent); }

.modal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

/* Task Detail Split Modal */
.modal-split {
  display: flex;
  flex: 1;
  min-height: 0;
}

.modal-main {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-sidebar {
  width: 250px;
  border-left: 1px solid var(--border);
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ============================================================
   CHAT PANEL (Teams style)
   ============================================================ */
.chat-panel {
  position: fixed;
  bottom: 0; right: 0; top: 0;
  width: 380px;
  background: var(--bg-2);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  z-index: 350;
  animation: chatSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes chatSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-panel-header h4 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-message {
  display: flex;
  gap: 10px;
  animation: messageIn 0.25s ease;
}
@keyframes messageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-message-body {
  flex: 1;
  background: var(--bg-3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  max-width: 85%;
}
.chat-message-meta {
  display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
}
.chat-message-author {
  font-size: 12px; font-weight: 600; color: var(--text);
}
.chat-message-time {
  font-size: 10px; color: var(--text-3);
}
.chat-message-text {
  font-size: 13px; color: var(--text-2); line-height: 1.5;
  word-break: break-word;
}
.chat-message.own .chat-message-body {
  background: rgba(99,102,241,0.15);
}
.chat-message.own .chat-message-author { color: var(--accent); }

.chat-input-wrapper {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.chat-input-wrapper textarea {
  flex: 1;
  resize: none;
  padding: 10px 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  min-height: 44px;
  max-height: 120px;
}
.chat-input-wrapper textarea:focus {
  border-color: var(--accent);
  outline: none;
}
.chat-input-wrapper .btn-sm {
  height: 44px;
  padding: 0 16px;
}

.chat-typing {
  font-size: 12px;
  color: var(--text-3);
  min-height: 20px;
  padding: 4px 0;
}

/* ============================================================
   VIDEOCALL
   ============================================================ */
.video-call-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  z-index: 400;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.3s ease;
}

.video-call-container {
  width: 90vw;
  max-width: 1000px;
  height: 80vh;
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.video-call-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   DASHBOARD - Gráficas de pastel
   ============================================================ */
.dashboard {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1400px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.stat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: all 0.3s;
}
.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.stat-label {
  font-size: 11px; color: var(--text-3); font-weight: 500; margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}
.stat-value { font-size: 30px; font-weight: 800; line-height: 1; }
.stat-card.red .stat-value { color: var(--red); }
.stat-card.green .stat-value { color: var(--green); }
.stat-card.yellow .stat-value { color: var(--yellow); }
.stat-card.accent .stat-value { color: var(--accent); }

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
}

.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.card-header h3 { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }

/* ============================================================
   KANBAN
   ============================================================ */
.kanban-board {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  overflow-x: auto;
  min-height: 100%;
  align-items: flex-start;
}

.kanban-col {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kanban-col-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.col-title { flex: 1; font-size: 13px; font-weight: 600; }
.col-count {
  font-size: 10px;
  font-weight: 600;
  background: var(--bg-4);
  padding: 2px 8px;
  border-radius: 8px;
  color: var(--text-3);
  font-family: var(--mono);
}
.col-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.kanban-tasks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
}

.task-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: all 0.25s;
  animation: taskCardIn 0.25s ease;
}

.task-card.is-overdue {
  border-left: 3px solid var(--red);
}

@keyframes taskCardIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.task-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.task-card-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 10px;
}

.task-card-labels {
  display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px;
}

.label-chip {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 8px;
}

.task-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.task-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-3);
}
.task-card-meta .meta-item {
  display: flex; align-items: center; gap: 4px;
}
.task-card-meta .meta-item.overdue { color: var(--red); }
.task-card-meta i { font-size: 12px; }

.user-avatar-mini {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.priority-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
}

.add-task-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-3);
  font-family: var(--font);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.add-task-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }

.kanban-add-col {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: none;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-3);
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
  width: 200px;
  flex-shrink: 0;
  transition: all 0.2s;
}
.kanban-add-col:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   FILTERS BAR
   ============================================================ */
.filters-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 24px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  flex-shrink: 0;
  background: var(--bg);
}

.filter-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  background: var(--bg-2);
  color: var(--text-2);
  white-space: nowrap;
  transition: all 0.2s;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.active { background: var(--accent-bg); border-color: var(--accent); color: var(--accent); }

/* ============================================================
   DIAGRAMAS
   ============================================================ */
.diagram-editor {
  padding: 24px;
}
.diagram-editor .editor-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  min-height: 400px;
}

.diagram-editor .diagram-preview {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow: auto;
  min-height: 400px;
}

/* ============================================================
   GIT
   ============================================================ */
.git-output {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-2);
  min-height: 100px;
  max-height: 200px;
  overflow: auto;
  white-space: pre-wrap;
}

/* ============================================================
   NOTIFICATIONS
   ============================================================ */
.notif-panel {
  position: fixed;
  top: var(--topbar-h);
  right: 20px;
  width: 340px;
  max-height: 420px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  overflow-y: auto;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.notif-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--bg-2); z-index: 1;
}
.notif-header h4 { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }

.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
  cursor: pointer;
  transition: background 0.15s;
}
.notif-item:hover { background: var(--bg-3); }
.notif-item.unread { background: var(--accent-bg); color: var(--text); }

/* ============================================================
   SEARCH
   ============================================================ */
.search-panel {
  position: fixed;
  top: var(--topbar-h);
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  max-height: 360px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  overflow-y: auto;
  animation: slideDown 0.2s ease;
}

.search-result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border);
}
.search-result-item:hover { background: var(--bg-3); }
.search-result-item:last-child { border-bottom: none; }

/* ============================================================
   TOAST
   ============================================================ */
#toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 1000;
}

.toast {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 13px;
  box-shadow: var(--shadow);
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 240px;
  display: flex; align-items: center; gap: 10px;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); }
.toast.info { border-left: 3px solid var(--accent); }

/* ============================================================
   RESPONSIVE / SCROLLBAR
   ============================================================ */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .modal-xl { max-width: 95vw; }
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .app { --sidebar-w: 0px; }
  .app:not(.collapsed) { --sidebar-w: 280px; }
  .sidebar { position: fixed; top: 0; left: 0; bottom: 0; z-index: 100; }
  .app.collapsed .sidebar { transform: translateX(-100%); }
  .chat-panel { width: 100%; }
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }



















/* ============================================================
   DASHBOARD - MIS TAREAS ACTIVAS (Fila de Tareas)
   ============================================================ */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-3); /* Usa el fondo intermedio #1a1a2e */
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.task-row:hover {
  border-color: var(--border-hover);
  background: var(--bg-4); /* Resalta a #24243a al pasar el mouse */
  transform: translateX(4px); /* Desplazamiento sutil hacia la derecha */
}

/* Alineación interna del título y el puntito */
.task-row-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  flex: 1;
  margin-left: 12px; /* Separa el título del punto de prioridad */
}

/* Contenedor del Proyecto y el Estado (a la derecha) */
.task-row-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Nombre del proyecto secundario */
.task-row-project {
  font-size: 11px;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.03);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Puntos de Prioridad universales */
.priority-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.priority-critical { background-color: var(--red); box-shadow: 0 0 6px var(--red); }
.priority-high     { background-color: var(--orange); box-shadow: 0 0 6px var(--orange); }
.priority-medium   { background-color: var(--yellow); box-shadow: 0 0 6px var(--yellow); }
.priority-low      { background-color: var(--green); box-shadow: 0 0 6px var(--green); }
.priority-none     { background-color: var(--text-3); }

/* Pastillas de Estado universales (Pills) */
.status-pill {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-block;
}
.status-todo        { background: rgba(90, 90, 114, 0.15); color: var(--text-2); }
.status-in_progress { background: rgba(99, 102, 241, 0.15); color: #a5b4fc; }
.status-in_review   { background: rgba(245, 158, 11, 0.15); color: var(--yellow); }
.status-done        { background: rgba(16, 185, 129, 0.15); color: var(--green); }
.status-cancelled   { background: rgba(239, 68, 68, 0.15); color: var(--red); }

/* Contenedor interno de las gráficas de pastel */
.chart-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 16px;
  gap: 16px;
}
.chart-legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Barras de progreso miniatura en la leyenda */
.progress-bar {
  background: var(--bg-3);
  border-radius: 4px;
  height: 4px;
  width: 100%;
  overflow: hidden;
  margin-top: 2px;
}
.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}




/* ============================================================
   SOLUCIÓN DEFINITIVA PARA LEYENDAS (ESTILO TAREAS ACTIVAS)
   ============================================================ */

/* Aseguramos que el contenedor de las gráficas tenga un layout limpio */
.chart-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    padding: 16px !important;
    gap: 16px !important;
}

/* Reducimos sutilmente el tamaño del círculo para dar espacio a las filas */
.chart-container canvas {
    flex-shrink: 0;
    max-width: 110px !important;
    max-height: 110px !important;
    width: 110px !important;
    height: 110px !important;
}

/* Contenedor principal de las filas de estadísticas */
.chart-legend {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    min-width: 0 !important;
}

/* Cada fila (Por Hacer, En progreso, etc.) convertida en tarjeta como .task-row */
.chart-legend > div {
    display: flex !important;
    flex-direction: column !important; /* Mantiene el texto arriba y la barra abajo */
    background: var(--bg-3) !important; /* Fondo idéntico al de tus tareas */
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    padding: 10px 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    width: 100% !important;
    box-sizing: border-box !important;
}

.chart-legend > div:hover {
    border-color: var(--border-hover) !important;
    background: var(--bg-4) !important;
    transform: translateX(3px);
}

/* TRUCO MAESTRO: Forzamos la separación del texto y los números flotantes */
.chart-legend div[style*="display:flex"],
.chart-legend div[style*="display: flex"] {
    display: flex !important;
    flex-direction: row !important; /* Forzar línea horizontal */
    justify-content: space-between !important; /* Texto a la izquierda, número a la derecha */
    align-items: center !important;
    width: 100% !important;
    font-size: 13px !important; /* Mismo tamaño de letra de las tareas */
    font-weight: 500 !important;
    color: var(--text) !important;
    white-space: nowrap;
}

/* Estilizado de las barras de progreso */
.progress-bar {
    background: var(--bg-2) !important; /* Fondo del riel de la barra */
    border: 1px solid rgba(255, 255, 255, 0.02) !important;
    border-radius: 4px !important;
    height: 5px !important;
    width: 100% !important;
    overflow: hidden !important;
    margin-top: 6px !important;
    display: block !important;
}

.progress-fill {
    height: 100% !important;
    border-radius: 4px !important;
    display: block !important;
}

/* ============================================================
   CONFIGURACIÓN / SETTINGS
   ============================================================ */
.settings-wrap {
  padding: 28px 32px 60px;
  max-width: 980px;
  margin: 0 auto;
  animation: fadeSlideUp 0.35s ease;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.settings-title { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.settings-subtitle { font-size: 13px; color: var(--text-3); margin-bottom: 24px; }

.settings-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: flex-start;
}

/* Nav lateral de settings */
.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  position: sticky;
  top: 0;
}

.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  position: relative;
}
.settings-nav-item i { width: 16px; font-size: 14px; color: var(--text-3); transition: color 0.2s; }
.settings-nav-item:hover { background: var(--bg-3); color: var(--text); }
.settings-nav-item.active { background: var(--accent-bg); color: var(--text); }
.settings-nav-item.active i { color: var(--accent); }
.settings-nav-item.active::before {
  content: '';
  position: absolute;
  left: -8px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 60%;
  background: var(--accent);
  border-radius: 0 4px 4px 0;
}

/* Panel de contenido */
.settings-panel { display: none; animation: fadeSlideUp 0.3s ease; }
.settings-panel.active { display: block; }

.settings-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}
.settings-card-body { padding: 24px; }

.settings-section-title {
  font-size: 13px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 8px; margin-bottom: 2px;
}
.settings-section-title i { color: var(--accent); font-size: 13px; }
.settings-section-desc { font-size: 12px; color: var(--text-3); margin-bottom: 18px; }

/* Banner de perfil */
.profile-banner {
  height: 88px;
  background: linear-gradient(120deg, #6366f1 0%, #8b5cf6 55%, #06b6d4 100%);
  position: relative;
  overflow: hidden;
}
.profile-banner::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 120%, rgba(255,255,255,0.25), transparent 55%),
                     radial-gradient(circle at 90% -20%, rgba(255,255,255,0.18), transparent 50%);
}

.profile-header-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 0 24px;
  margin-top: -34px;
}

.profile-avatar-wrap { position: relative; flex-shrink: 0; }

.user-avatar-lg {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 24px;
  border: 4px solid var(--bg-2);
  box-shadow: var(--shadow);
  text-transform: uppercase;
}

.avatar-edit-btn {
  position: absolute;
  bottom: 0; right: -2px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bg-4);
  border: 2px solid var(--bg-2);
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.avatar-edit-btn:hover { background: var(--accent); color: white; }

.profile-header-info { padding-bottom: 10px; min-width: 0; }
.profile-header-info h3 {
  font-size: 16px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.profile-header-info p { font-size: 12px; color: var(--text-3); margin-top: 2px; }

.role-pill {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
  padding: 2px 8px; border-radius: 20px;
  background: var(--accent-bg); color: var(--accent-hover);
}

/* Stat chips del perfil */
.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 20px 24px 4px;
}
.profile-stat-chip {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: all 0.2s;
}
.profile-stat-chip:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.profile-stat-chip .v { font-size: 20px; font-weight: 800; line-height: 1.1; }
.profile-stat-chip .l {
  font-size: 10.5px; color: var(--text-3); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.3px; margin-top: 4px;
  display: flex; align-items: center; gap: 5px;
}

/* Swatches de color mejorados */
.color-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.color-swatch {
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  border: 2px solid transparent;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.color-swatch:hover { transform: scale(1.12); }
.color-swatch.selected { border-color: var(--bg-2); box-shadow: 0 0 0 2px var(--text); }
.color-swatch.selected::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: white;
  font-size: 11px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* Toggle switch */
.toggle-switch-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0;
}
.toggle-switch-row + .toggle-switch-row { border-top: 1px solid var(--border); }
.toggle-switch-label { font-size: 13px; font-weight: 600; color: var(--text); }
.toggle-switch-desc { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }

.toggle-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; cursor: pointer; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.25s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  height: 16px; width: 16px;
  left: 3px; top: 50%; transform: translateY(-50%);
  background: var(--text-2);
  border-radius: 50%;
  transition: all 0.25s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent); border-color: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translate(18px, -50%); background: white; }

/* Password strength */
.pw-strength-bar { height: 4px; border-radius: 4px; background: var(--bg-4); overflow: hidden; margin-top: 6px; }
.pw-strength-fill { height: 100%; width: 0%; border-radius: 4px; background: var(--red); transition: all 0.3s; }
.pw-strength-text { font-size: 11px; color: var(--text-3); margin-top: 4px; }

.settings-info-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--text-3);
  padding: 10px 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.settings-info-row i { color: var(--accent); }
.settings-info-row b { color: var(--text-2); font-weight: 600; }

.settings-result-msg {
  font-size: 12.5px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 8px;
  margin-top: 4px;
}
.settings-result-msg.ok { background: rgba(16,185,129,0.1); color: var(--green); border: 1px solid rgba(16,185,129,0.2); }
.settings-result-msg.err { background: rgba(239,68,68,0.1); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }

@media (max-width: 760px) {
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { flex-direction: row; overflow-x: auto; position: static; }
  .profile-stats { grid-template-columns: repeat(2, 1fr); }
}