/* ==========================================================================
   FamVibe CSS - Premium Daely Cards & Soft Glow System (css/cards.css)
   ========================================================================== */

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.dash-card {
  background: var(--bg-surface);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.dash-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.3);
}

/* Daely Vibrant Pastel Gradient Cards */
.dash-card.card-events {
  background: linear-gradient(135deg, #ffffff 0%, #f4f6ff 100%);
  border: 1px solid #c7d2fe;
  border-top: 4px solid #6366f1;
  box-shadow: 0 10px 30px -5px rgba(99, 102, 241, 0.08);
}
.dash-card.card-tasks {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border: 1px solid #a7f3d0;
  border-top: 4px solid #10b981;
  box-shadow: 0 10px 30px -5px rgba(16, 185, 129, 0.08);
}
.dash-card.card-routines {
  background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
  border: 1px solid #ddd6fe;
  border-top: 4px solid #8b5cf6;
  box-shadow: 0 10px 30px -5px rgba(139, 92, 246, 0.08);
}
.dash-card.card-birthdays {
  background: linear-gradient(135deg, #ffffff 0%, #fffdf0 100%);
  border: 1px solid #fde68a;
  border-top: 4px solid #f59e0b;
  box-shadow: 0 10px 30px -5px rgba(245, 158, 11, 0.08);
}
.dash-card.card-notes {
  background: linear-gradient(135deg, #ffffff 0%, #fff5f8 100%);
  border: 1px solid #fbcfe8;
  border-top: 4px solid #ec4899;
  box-shadow: 0 10px 30px -5px rgba(236, 72, 153, 0.08);
}
.dash-card.card-meals {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border: 1px solid #bae6fd;
  border-top: 4px solid #0ea5e9;
  box-shadow: 0 10px 30px -5px rgba(14, 165, 233, 0.08);
}
.dash-card.card-rules {
  background: linear-gradient(135deg, #ffffff 0%, #fff1f2 100%);
  border: 1px solid #fecdd3;
  border-top: 4px solid #f43f5e;
  box-shadow: 0 10px 30px -5px rgba(244, 63, 94, 0.08);
}

.dash-card.span-2 {
  grid-column: span 2;
}

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

.card-header h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}

/* Daely Buttons & Pill Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 6px 16px -2px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -4px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.4);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.badge-star {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}
