/* ---------------------------
       SeeToday — styles completos (basado en tu original)
       --------------------------- */
:root {
  --bg: #f6f5ff;
  --panel: #efeafe;
  --card: #ffffff;
  --accent: #7b6bff;
  --accent-2: #bfb7ff;
  --muted: #7f7aa4;
  --text: #222034;
  --glass: rgba(255, 255, 255, 0.6);
  --shadow: 0 10px 30px rgba(70, 50, 120, 0.07);
  --radius: 14px;
  --radius-sm: 10px;
  --success: #16a34a;
  --danger: #ef4444;
  --info: #0ea5e9;
  --soft-border: rgba(16, 10, 50, 0.04);
}

/* Base */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  background: linear-gradient(180deg, #faf9ff 0%, var(--bg) 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.4;
}

/* Topbar */
.topbar {
  padding: 18px 12px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(6px);
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 0 0 10px; /* cambiado de 0 auto a 0 0 0 10px */
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(90deg, var(--card), #fbfaff);
  padding: 10px 16px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 6px 18px rgba(123, 107, 255, 0.25);
}
.brand-text .title {
  font-weight: 800;
  font-size: 18px;
}
.brand-text .subtitle {
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 8px;
  margin-left: 6px;
}
.nav-link {
  padding: 8px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}
.nav-link.active {
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  color: white;
  box-shadow: 0 6px 18px rgba(123, 107, 255, 0.15);
}

.actions {
  margin-left: auto;

  display: flex;
  align-items: center;
  gap: 8px;
}
.search {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #eee;
  width: 240px;
  outline: none;
  font-size: 14px;
  background: transparent;
}
.btn {
  background: var(--accent);
  color: white;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 700;
}
.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(123, 107, 255, 0.12);
}
.btn.small {
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 8px;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 20px 0 20px 10px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 260px 1fr 320px;
  gap: 18px;
  align-items: start;
}
.col {
  min-height: 200px;
}

/* Cards */
.card {
  background: var(--card);
  padding: 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--soft-border);
}

/* Left column: profile (mini) */
.profile-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.profile-top {
  display: flex;
  gap: 12px;
  align-items: center;
}
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 28px;
}
.profile-name {
  font-weight: 800;
  font-size: 16px;
}
.profile-role {
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
}
.profile-bio {
  color: var(--muted);
  font-size: 13px;
  padding-top: 4px;
}

/* members list */
.members-card h4 {
  margin: 0 0 10px 0;
}
.members-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.member-item {
  display: flex;
  gap: 8px;
  align-items: center;
}
.member-avatar {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.member-meta .name {
  font-weight: 700;
}
.member-meta .role {
  font-size: 12px;
  color: var(--muted);
}

/* Main column: tasks, controls, feed */
.main-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.section-title {
  font-weight: 800;
  font-size: 16px;
}
.section-sub {
  color: var(--muted);
  font-size: 13px;
}

/* Task list */
.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.task-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--panel), var(--card));
  border: 1px solid var(--soft-border);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.task-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(80, 60, 140, 0.06);
}
.task-left {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
}
.task-checkbox {
  width: 20px;
  height: 20px;
}
.task-body {
  flex: 1;
}
.task-title {
  margin: 0;
  font-weight: 700;
}
.task-desc {
  margin: 6px 0 0 0;
  color: var(--muted);
  font-size: 14px;
}
.task-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.pill {
  padding: 6px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
}
.pill-role {
  background: linear-gradient(
    90deg,
    rgba(123, 107, 255, 0.12),
    rgba(191, 183, 255, 0.06)
  );
  color: var(--muted);
}
.pill-pri {
  background: var(--accent-2);
  color: white;
}

.task-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: 12px;
}
.task-actions .btn {
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 700;
}

/* Right column: stats, roles, centro dev */
.right-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stats {
  display: flex;
  gap: 10px;
}
.stat {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--card), #fbfaff);
  border: 1px solid var(--soft-border);
  text-align: center;
}
.stat h3 {
  margin: 0;
  font-size: 20px;
}
.stat p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.roles-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.role-filter {
  padding: 10px;
  border-radius: 10px;
  border: 1px dashed var(--soft-border);
  text-align: left;
  cursor: pointer;
  background: linear-gradient(180deg, #fff, var(--panel));
}
.role-filter:hover {
  box-shadow: 0 10px 30px rgba(70, 50, 120, 0.03);
}

/* Centro de Desarrollo: lista con categorias */
.dev-centro {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dev-section {
  padding: 10px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--card), #fff);
  border: 1px solid var(--soft-border);
}
.dev-title {
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 6px 0;
}
.dev-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #faf9ff);
  border: 1px solid rgba(123, 107, 255, 0.12);
  box-shadow: 0 4px 12px rgba(80, 60, 140, 0.04);
  transition: all 0.2s ease;
  cursor: pointer;
}

.dev-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(80, 60, 140, 0.08);
  border-color: var(--accent-2);
  background: linear-gradient(180deg, #fdfcff, #fbfaff);
}

.dev-item-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(123, 107, 255, 0.25);
}

.dev-item .label {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  margin: 0;
}
/* Estilo para enlaces con apariencia de botón */
a.btn {
  display: inline-block;
  text-decoration: none;
  background: var(--accent);
  color: white;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  transition: background 0.2s ease, transform 0.1s ease;
}

a.btn:hover {
  background: #6a5eff; /* un poco más oscuro para hover */
  transform: translateY(-2px);
}

a.btn.sma {
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 8px;
}

.dev-item .meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 30, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}
.modal-card {
  width: 720px;
  max-width: 96%;
  padding: 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--card), #fbfaff);
  box-shadow: 0 30px 60px rgba(80, 60, 140, 0.12);
}

/* --- Modal Mejorado para "Nuevo Pendiente" --- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 40, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(6px);
}

.modal-card {
  width: 560px;
  max-width: 95%;
  padding: 26px 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card), #fbfaff);
  box-shadow: 0 30px 70px rgba(80, 60, 140, 0.18);
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  color: var(--text);
}

.modal-card .muted {
  margin-top: 6px;
  font-size: 13px;
}

.form-row {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.modal-card input,
.modal-card select,
.modal-card textarea {
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e6e4f7;
  font-size: 14px;
  background: #fff;
  transition: all 0.2s ease;
}

.modal-card textarea {
  min-height: 100px;
  resize: vertical;
}

.modal-card input:focus,
.modal-card select:focus,
.modal-card textarea:focus {
  border-color: var(--accent-2);
  box-shadow: 0 6px 18px rgba(123, 107, 255, 0.08);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.modal-footer .btn {
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
}

.modal-footer .btn.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid #e0def4;
}
.modal-footer .btn.ghost:hover {
  background: #fafaff;
  color: var(--accent);
}

.form-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
  flex-wrap: wrap;
}
input[type="text"],
textarea,
select {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #f0eefb;
  outline: none;
  font-size: 14px;
  min-width: 160px;
}
textarea {
  min-height: 90px;
  resize: vertical;
}

/* Small helpers & responsiveness */
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .container {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .left-col,
  .right-col {
    order: 2;
  }
  .main-col {
    order: 1;
  }
  .topbar-inner {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  .nav {
    justify-content: space-between;
    width: 100%;
  }
}

/* Focus and inputs */
input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 6px 18px rgba(123, 107, 255, 0.06);
  border-color: rgba(123, 107, 255, 0.14);
}

/* little polish */
.muted.small {
  margin-top: 8px;
  color: var(--muted);
}
.link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}
.danger {
  color: var(--danger);
  font-weight: 700;
}

/* END CSS */
/* Tablets / pantallas medianas */
@media (max-width: 980px) {
  .container {
    grid-template-columns: 1fr; /* Apilamos columnas */
    padding: 12px;
  }

  .left-col,
  .right-col {
    order: 2; /* Perfil y stats después de la columna principal */
  }

  .main-col {
    order: 1; /* Tareas primero */
  }

  .topbar-inner {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .nav {
    justify-content: space-between;
    width: 100%;
  }

  .profile-card {
    flex-direction: row;
    gap: 10px;
  }

  .avatar {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .profile-name {
    font-size: 15px;
  }

  .profile-role {
    font-size: 13px;
  }
}
@media (max-width: 600px) {
  .task-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .task-left {
    width: 100%;
    gap: 8px;
  }

  .tasks-list {
    gap: 8px;
  }

  .avatar {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .member-avatar {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .stat h3 {
    font-size: 18px;
  }

  .stat p {
    font-size: 12px;
  }

  .dev-item {
    padding: 10px 12px;
    gap: 10px;
  }

  .dev-item-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}
@media (max-width: 400px) {
  .topbar-inner {
    flex-direction: column;
    gap: 8px;
  }

  .container {
    padding: 8px;
  }

  .btn,
  a.btn {
    font-size: 12px;
    padding: 6px 10px;
  }

  .avatar {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .member-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .task-title {
    font-size: 14px;
  }

  .task-desc {
    font-size: 12px;
  }

  .pill {
    font-size: 11px;
    padding: 4px 6px;
  }

  .dev-item {
    padding: 8px 10px;
    gap: 8px;
  }

  .dev-item-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}
