:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --border: #d9e2ef;
  --text: #18212f;
  --muted: #607085;
  --primary: #2563eb;
  --success: #15803d;
  --warning: #c28108;
  --danger: #b42318;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, #eef4ff 0%, var(--bg) 100%);
  color: var(--text);
}

button,
input,
textarea,
select {
  font: inherit;
}

.app-shell {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  font-weight: 700;
}

h1,
h2 {
  margin: 0;
}

.subtitle,
.muted {
  color: var(--muted);
}

.hero-badge {
  min-width: 120px;
  padding: 1rem;
  border-radius: 18px;
  background: #18212f;
  color: white;
  text-align: center;
  box-shadow: var(--shadow);
}

.hero-badge span {
  display: block;
  font-size: 2rem;
  font-weight: 700;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.notes-column {
  display: grid;
  gap: 1rem;
}

.form-panel {
  position: sticky;
  top: 1rem;
}

.grid {
  display: grid;
  gap: 0.9rem;
}

.two-columns,
.filters-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 0.4rem;
}

label span {
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  background: #fff;
}

.assignee-label {
  position: relative;
}

.assignee-select {
  appearance: none;
  border-width: 2px;
  padding-right: 2.75rem;
  font-weight: 700;
  background-image:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(255, 255, 255, 0.96)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23607085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, right 0.9rem center;
  background-size: auto, 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.assignee-select:hover,
.assignee-select:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  outline: none;
}

.assignee-select[data-assignee='Rubén'] {
  background-image:
    linear-gradient(135deg, rgba(29, 78, 216, 0.16), rgba(219, 234, 254, 0.92)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%231d4ed8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  border-color: #93c5fd;
  color: #1d4ed8;
}

.assignee-select[data-assignee='Mata'] {
  background-image:
    linear-gradient(135deg, rgba(51, 65, 85, 0.14), rgba(226, 232, 240, 0.92)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  border-color: #cbd5e1;
  color: #334155;
}

.assignee-select[data-assignee='Camila'] {
  background-image:
    linear-gradient(135deg, rgba(219, 39, 119, 0.12), rgba(252, 231, 243, 0.94)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23db2777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  border-color: #f9a8d4;
  color: #be185d;
}

.assignee-select[data-assignee='Javiera'] {
  background-image:
    linear-gradient(135deg, rgba(192, 38, 211, 0.12), rgba(253, 242, 248, 0.94)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23c026d3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  border-color: #f5b4fc;
  color: #c026d3;
}

textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

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

.btn-success {
  background: rgba(21, 128, 61, 0.12);
  color: var(--success);
}

.btn-warning {
  background: rgba(194, 129, 8, 0.14);
  color: var(--warning);
}

.btn-danger {
  background: rgba(180, 35, 24, 0.12);
  color: var(--danger);
}

.feedback {
  min-height: 1.2rem;
  margin: 0;
  color: var(--muted);
}

.filter-toolbar {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 0.8rem;
}

.assignee-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chip {
  border: 1px solid #cddbf7;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  background: #edf4ff;
  color: #1148a5;
  font-weight: 700;
}

.filter-chip.is-active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.filter-chip[data-assignee='Rubén'],
.assignee-tag[data-assignee='Rubén'] {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #93c5fd;
}

.filter-chip[data-assignee='Mata'],
.assignee-tag[data-assignee='Mata'] {
  background: #e2e8f0;
  color: #334155;
  border-color: #cbd5e1;
}

.filter-chip[data-assignee='Camila'],
.assignee-tag[data-assignee='Camila'] {
  background: #fce7f3;
  color: #be185d;
  border-color: #f9a8d4;
}

.filter-chip[data-assignee='Javiera'],
.assignee-tag[data-assignee='Javiera'] {
  background: #fdf2f8;
  color: #c026d3;
  border-color: #f5b4fc;
}

.filter-chip.is-active[data-assignee='Rubén'] {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: white;
}

.filter-chip.is-active[data-assignee='Mata'] {
  background: #334155;
  border-color: #334155;
  color: white;
}

.filter-chip.is-active[data-assignee='Camila'] {
  background: #db2777;
  border-color: #db2777;
  color: white;
}

.filter-chip.is-active[data-assignee='Javiera'] {
  background: #c026d3;
  border-color: #c026d3;
  color: white;
}

.notes-list {
  display: grid;
  gap: 1rem;
}

.note-card {
  display: grid;
  gap: 0.9rem;
}

.note-card__top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}

.note-card__header {
  flex: 1;
}

.note-card__side {
  display: grid;
  justify-items: end;
  gap: 0.6rem;
}

.note-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.tag,
.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.assignee-tag {
  background: #e0ecff;
  color: #1148a5;
}

.project-tag {
  background: #edf2f7;
  color: #364152;
}

.icon-btn {
  min-width: 40px;
  padding: 0.5rem 0.55rem;
  font-size: 0.92rem;
  line-height: 1;
}

.status-pill[data-status='pendiente'] {
  background: rgba(194, 129, 8, 0.14);
  color: var(--warning);
}

.status-pill[data-status='realizado'] {
  background: rgba(21, 128, 61, 0.12);
  color: var(--success);
}

.status-pill[data-status='no-se-puede'] {
  background: rgba(180, 35, 24, 0.12);
  color: var(--danger);
}

.date-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.note-message,
.blocked-reason {
  margin: 0;
  line-height: 1.5;
}

.blocked-reason {
  padding: 0.75rem;
  border-left: 4px solid var(--danger);
  background: rgba(180, 35, 24, 0.05);
  border-radius: 10px;
}

.note-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 0.45rem;
  min-width: 170px;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem;
}

.hidden {
  display: none;
}

@media (max-width: 760px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-layout,
  .two-columns,
  .filters-grid {
    grid-template-columns: 1fr;
  }

  .form-panel {
    position: static;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .note-card__top {
    flex-direction: column;
  }

  .note-card__side {
    width: 100%;
    justify-items: start;
  }

  .note-actions {
    width: 100%;
    justify-content: flex-start;
    min-width: 0;
  }

  .filter-chip,
  .note-actions .btn {
    width: 100%;
  }
}
