/* ============================================
   AGENDA DIRMOS - Custom Styles
   ============================================ */

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* ---- Navigation ---- */
.nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}
.nav-btn:hover {
  color: #f1f5f9;
  background: rgba(51, 65, 85, 0.6);
}
.nav-btn.active {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.2);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.3);
}

/* ---- Calendar Day Cell ---- */
.cal-day {
  min-height: 80px;
  padding: 8px;
  border-right: 1px solid #1e293b;
  border-bottom: 1px solid #1e293b;
  cursor: pointer;
  transition: background 0.15s ease;
  position: relative;
}
.cal-day:hover { background: rgba(30, 41, 59, 0.6); }
.cal-day.other-month .cal-day-number { color: #334155; }
.cal-day.is-today .cal-day-number {
  background: #2563eb;
  color: #ffffff;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.cal-day.selected {
  background: rgba(37, 99, 235, 0.08);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.4);
}
.cal-day-number {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #cbd5e1;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cal-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 4px;
}
.cal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-event    { background: #3b82f6; }
.dot-income   { background: #10b981; }
.dot-expense  { background: #f43f5e; }

/* ---- Category Badges ---- */
.badge-trabajo  { background: rgba(59,130,246,.15); color: #60a5fa; border: 1px solid rgba(59,130,246,.3); }
.badge-personal { background: rgba(20,184,166,.15); color: #2dd4bf; border: 1px solid rgba(20,184,166,.3); }
.badge-urgente  { background: rgba(239,68,68,.15);  color: #f87171; border: 1px solid rgba(239,68,68,.3); }
.badge-ocio     { background: rgba(245,158,11,.15); color: #fbbf24; border: 1px solid rgba(245,158,11,.3); }

/* ---- Modal enter animation ---- */
.modal-enter {
  animation: modalIn 0.25s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes modalIn {
  from { opacity:0; transform: scale(0.92) translateY(8px); }
  to   { opacity:1; transform: scale(1)   translateY(0);    }
}

/* ---- Type radio ---- */
.type-radio-label input:checked + span {
  border-color: #2563eb;
  background: rgba(37,99,235,.12);
  color: #93c5fd;
}

/* ---- Transaction/Event card hover ---- */
.data-card {
  transition: border-color 0.2s, background 0.2s;
}
.data-card:hover { border-color: #334155; background: rgba(30,41,59,.7); }

/* ---- Status pills ---- */
.pill-pending { background: rgba(245,158,11,.15); color: #fbbf24; border: 1px solid rgba(245,158,11,.3); }
.pill-paid    { background: rgba(16,185,129,.15);  color: #34d399; border: 1px solid rgba(16,185,129,.3); }

/* ---- Alert pulse on title ---- */
@keyframes tabPulse {
  0%,100% { opacity:1; }
  50%      { opacity:0.3; }
}

/* ---- Sidebar transition ---- */
.sidebar-transition { transition: transform 0.3s ease; }

/* ---- Section fade in ---- */
.section-content {
  animation: fadeUp 0.3s ease both;
}
@keyframes fadeUp {
  from { opacity:0; transform: translateY(10px); }
  to   { opacity:1; transform: translateY(0);    }
}

/* ---- Chart dark canvas ---- */
canvas { max-width: 100%; }

/* ---- Progress bars ---- */
.progress-bar-fill {
  transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
