.task-hero {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.task-hero-title {
  font-size: calc(1.3rem + .2vw);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2px;
}

.task-hero-subtitle {
  margin-bottom: 0;
  color: var(--gelin-text-muted);
  font-size: 0.875em;
}

.task-hero-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
}

.small {
    font-size: .75em;
}

.text-muted {
  color: rgba(209, 213, 219, 0.9) !important;
}

@media (min-width: 576px) {
  .task-hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .task-hero-actions {
    flex-wrap: nowrap;
  }
}
:root {
  --gelin-bg: #020617;
  --gelin-card-bg: #323645;
  --gelin-border: #111827;
  --gelin-primary: #facc15;
  --gelin-title: #ffffff;
  --gelin-text-muted: #d1d5db;
  --gelin-shadow: rgba(0, 0, 0, 0.45);
  --task-tab-bg: #1f2937;
  --task-tab-active-bg: #17988e;
  --task-card-muted: #1f2937;
  --task-text-muted: #e5e7eb;
  --task-chip-bg: #0f172a;
}

body {
  background: radial-gradient(circle at top, #1f2937 0, #020617 55%, #020617 100%);
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #f9fafb;
}

.btn-primary {
  width: 100%;
  white-space: nowrap;
}

.btn-outline-primary {
  white-space: nowrap;
  color: white;
  border: 1px solid #ffffff;
}

.btn-outline-secondary {
  white-space: nowrap;
  color: #ffffff;
  border-color: #ffffff;
}

.list-group-item {
  padding: 10px 0px;
  background: var(--gelin-card-bg);
  color: #ffffff;
}

.danger-btn {
  background: #ff0000b5;
  text-decoration: none;
  color: azure !important;
}

.gelin-shell {
  max-width: 640px;
  padding-left: 20px;
  padding-right: 20px;
}

.gelin-card {
  background: var(--gelin-card-bg);
  border-radius: 20px;
  border: 1px solid var(--gelin-border);
  transition: all 0.2s ease;
}

.dashboard-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: none;
}

.dashboard-card-watermark {
  position: absolute;
  top: 0.6rem;
  right: 0.5rem;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.06);
  pointer-events: none;
}

.dashboard-card-watermark i {
  font-size: 1.1rem;
  opacity: 0.7;
}

.dashboard-card--budget .dashboard-card-watermark i {
  color: #0f766e;
}

.dashboard-card--expenses .dashboard-card-watermark i {
  color: #b91c1c;
}

.dashboard-card--address .dashboard-card-watermark i {
  color: #1d4ed8;
}

.dashboard-card--boxes .dashboard-card-watermark i {
  color: #7c3aed;
}

.dashboard-card--budget {
  background: #ff9c4a;
}

.dashboard-card--expenses {
  background: #b8ff5c;
}

.dashboard-card--address {
  background: #c9a5ff;
}

.dashboard-card--boxes {
  background: #7dd7ff;
}

.dashboard-card--budget .stat-number,
.dashboard-card--expenses .stat-number,
.dashboard-card--address .stat-number,
.dashboard-card--boxes .stat-number {
  color: #0f172a;
}

.dashboard-card .h6 {
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-top: 2px;
}

.dashboard-card {
  color: #020617;
}

.dashboard-card .text-muted,
.dashboard-card .text-muted.small {
  color: rgba(15, 23, 42, 0.78) !important;
}

.gelin-invite-card {
  border-radius: 20px;
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.08);
}

.gelin-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 10px;
  background: rgba(37, 99, 235, 0.3);
  color: #eff6ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-right: 10px;
}

.notification-wrapper {
  position: relative;
}

.notification-bell {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.notification-bell i {
  font-size: 1.5rem;
  margin-top: 3px;
}

.notification-bell:focus-visible {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.notification-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
}

.notification-menu {
  background: var(--gelin-card-bg);
  min-width: 280px;
  border-radius: 18px;
  border: 1px solid var(--gelin-border);
  box-shadow: 0 25px 45px rgba(15, 23, 42, 0.15);
  overflow: hidden;
  z-index: 1050;
}

.notification-menu-header {
  background: var(--gelin-card-bg);
  border-bottom: 1px solid var(--gelin-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
}

.notification-menu-header form {
  margin: 0;
}

.modal-content {
  background: var(--gelin-card-bg);
  border: 1px solid var(--gelin-border);
  border-radius: 18px;
}

.notification-menu-body {
  max-height: 340px;
  overflow-y: auto;
}

.dropdown-menu-end[data-bs-popper] {
  right: -10px!important;
  background: var(--gelin-card-bg);
  border: 1px solid var(--gelin-border);
}

.dropdown-divider {
  border-bottom: 1px solid var(--gelin-border);
}

.notification-item + .notification-item {
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.notification-item p {
  line-height: 1.3;
  color: #ffffff;
}

.notification-menu-footer {
  background: var(--gelin-card-bg);
  border-top: 1px solid var(--gelin-border);
}

.notification-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  /* Below sticky header (Bootstrap .sticky-top uses 1020) but above main content */
  z-index: 1010;
}

.notification-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.notification-wrapper .btn-link {
  background: transparent;
  padding: 0;
  font-weight: 600;
  color: var(--gelin-primary);
  text-decoration: none;
  white-space: nowrap;
}

.notification-form {
  vertical-align: middle;
  align-items: center;
  display: flex;
  justify-content: center;
}

.notification-wrapper .btn-link:hover,
.notification-wrapper .btn-link:focus {
  color: #1d4ed8;
  text-decoration: underline;
}

.gelin-form {
  display: flex;
  flex-direction: column;
}

.gelin-form-group {
  display: flex;
  flex-direction: column;
}

.gelin-form-label {
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.form-control {
  background-color: #161E2D;
  color: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.gelin-form .form-control,
.gelin-input {
  border-radius: 10px;
  padding: 0.6rem 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: #161E2D;
  color: #ffffff;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gelin-form .form-control:focus,
.gelin-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  background: #161E2D;
}

.form-control:focus {
  background-color: #161E2D;
  color: #ffffff;
}
.form-select {
  background-color: #161E2D;
  color: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.form-control::placeholder,
.gelin-input::placeholder,
.budget-input::placeholder,
.expense-form input::placeholder,
.expense-form textarea::placeholder {
  color: rgba(148, 163, 184, 0.8);
}

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

.gelin-form-actions .btn {
  flex: 1 1 200px;
  border-radius: 12px;
  font-weight: 600;
  padding: 0.7rem 0.95rem;
}

.gelin-btn-secondary {
  border: 1px solid rgba(15, 23, 42, 0.15);
  color: #0f172a;
  background: #fff;
}

.gelin-btn-secondary:hover,
.gelin-btn-secondary:focus {
  color: #0f172a;
  background: rgba(148, 163, 184, 0.1);
}

.gelin-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px var(--gelin-shadow);
}

.task-toolbar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  align-items: center;
}

.task-toolbar > * {
  white-space: nowrap;
}

.task-status-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.3rem;
  padding-bottom: 0.1rem;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.task-status-tabs::-webkit-scrollbar {
  display: none;
}

.task-status-tab {
  margin: 0;
  flex: 0 0 auto;
  min-width: auto;
}

.task-status-tab button {
  width: 100%;
  border: none;
  border-radius: 25px;
  padding: 0.45rem 0.75rem;
  font-weight: 600;
  font-size: 0.75rem;
  white-space: nowrap;
  background: var(--task-tab-bg);
  color: var(--task-text-muted);
  transition: all 0.2s ease;
}

.task-status-tab.active button,
.task-status-tab button:hover,
.task-status-tab button:focus {
  background: var(--task-tab-active-bg);
  color: #fff;
}

.task-pill-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  width: 100%;
  margin-left: -10px;
}

.task-pill-row > * {
  white-space: nowrap;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.task-list-loading {
  opacity: 0.5;
  pointer-events: none;
}

.task-card-loading {
  opacity: 0.6;
  pointer-events: none;
}

.task-card {
  background: var(--gelin-card-bg);
  border-radius: 26px;
  padding: 1.5rem;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.2);
  position: relative;
}

.task-card-header,
.task-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.task-card-header.budget-hero,
.task-card-footer.budget-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.budget-hero-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.1), rgba(148, 163, 184, 0.6), rgba(148, 163, 184, 0.1));
  margin-top: 1.25rem;
}

.task-card-body {
  margin-top: 0.75rem;
}

.task-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.task-description {
  color: var(--task-text-muted);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--task-text-muted);
  font-size: 0.9rem;
  align-items: center;
}

.task-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.task-assignees {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.task-assignees-stack {
  display: inline-flex;
  gap: 0;
}

.task-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  font-weight: 600;
  font-size: 0.8rem;
  color: #0f172a;
  margin-left: -8px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.10);
  transition: transform 0.15s ease;
}

.task-avatar:first-child {
  margin-left: 0;
}

.task-avatar:hover,
.task-avatar:focus-within {
  transform: translateY(-2px) scale(1.02);
  z-index: 1;
}

.task-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.task-meta-item i {
  margin-right: 0.35rem;
}

.task-status-pill,
.task-category-chip,
.task-priority-chip {
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.task-status-pill {
  text-transform: capitalize;
}

.task-status-pill.status-todo {
  background: #fff7ed;
  color: #b45309;
}

.task-status-pill.status-in_progress {
  background: #fef9c3;
  color: #a16207;
}

.task-status-pill.status-done {
  background: #dcfce7;
  color: #15803d;
}

.task-status-pill.status-blocked {
  background: #fee2e2;
  color: #b91c1c;
}

.task-category-chip {
  background: var(--task-chip-bg);
  color: #e5e7eb;
}

.task-priority-chip {
  color: #0f172a;
}

.task-priority-chip.priority-low {
  background: #e0f2fe;
}

.task-priority-chip.priority-medium {
  background: #ddd6fe;
}

.task-priority-chip.priority-high {
  background: #fee2e2;
}

.box-status {
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  border: 0;
}

.box-status-not_packed {
  background: #f1f5f9;
  color: #475569;
}

.box-status-packed {
  background: #dbeafe;
  color: #1d4ed8;
}

.box-status-loaded {
  background: #e0f2fe;
  color: #0369a1;
}

.box-status-delivered {
  background: #dcfce7;
  color: #15803d;
}

.box-status-unpacked {
  background: #ccfbf1;
  color: #0f766e;
}

.box-status-partial {
  background: #fef9c3;
  color: #854d0e;
}

.box-status-empty {
  background: #f3f4f6;
  color: #4b5563;
}

.task-edit-btn {
  position: absolute;
  width: 30px;
  height: 30px;
  top: -12px;
  right: -12px;
  border-radius: 50%;
  background: #1f2937;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gelin-text-muted);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.task-edit-btn:hover,
.task-edit-btn:focus {
  transform: translateY(-1px);
  background: #e2e8f0;
}

.task-status-control {
  position: relative;
}

.task-status-toggle {
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  background: transparent;
}

.task-status-toggle i {
  font-size: 0.7rem;
}

.task-status-menu {
  position: absolute;
  top: 115%;
  left: 0;
  min-width: 160px;
  background: #1f2937;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
  padding: 0.3rem;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 5;
}

.task-status-control.open .task-status-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.task-status-menu-action {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.4rem 0.65rem;
  border-radius: 10px;
  text-align: left;
  font-size: 0.85rem;
  color: #ffffff;
}

.task-status-menu-action:hover,
.task-status-menu-action:focus {
  background: #f1f5f9;
}

.task-progress {
  background: var(--task-card-muted);
  border-radius: 999px;
  flex: 1;
  height: 12px;
  overflow: hidden;
  position: relative;
}

.task-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width 0.3s ease;
  background: linear-gradient(90deg, #34d399, #22c55e);
}

.task-progress-fill.status-todo {
  width: 25%;
  background: linear-gradient(90deg, #f472b6, #fb7185);
}

.task-progress-fill.status-in_progress {
  width: 60%;
  background: linear-gradient(90deg, #34d399, #a7f3d0);
}

.task-progress-fill.status-done {
  width: 100%;
}

.task-progress-fill.status-blocked {
  width: 15%;
  background: linear-gradient(90deg, #f87171, #fbbf24);
}

.budget-hero--compact {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.budget-hero-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.budget-hero-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #0f172a;
}

.budget-hero-title {
  font-size: calc(1.275rem + .3vw);
  font-weight: 600;
  line-height: 1.2;
  color: var(--bs-heading-color);
}

.budget-hero-subtitle {
  margin-bottom: 0;
  color: var(--gelin-text-muted);
  font-size: 0.875em;
}

.budget-hero-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: nowrap;
}

.budget-hero-label {
  font-size: 1.0rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gelin-title);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.budget-toolbar {
  display: flex;
  gap: 0.5rem;
  white-space: nowrap;
}

.budget-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.budget-summary-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.65rem;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #17988e;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
  justify-content: space-evenly;
}

.budget-summary-top {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.budget-summary-icon {
  width: 32px;
  height: 32px;
  border-radius: 25px;
  background: #126761;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.35rem;
}

.budget-summary-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.1rem;
}

.budget-summary-value {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
}

.budget-currency {
  font-variant-numeric: tabular-nums;
}

.budget-currency-symbol,
.budget-currency-decimal {
  display: inline-block;
  vertical-align: super;
  font-size: 0.6em;
  font-weight: 500;
}

.budget-currency-symbol {
  margin-right: 0.15rem;
}

.budget-currency-decimal {
  margin-left: 0.1rem;
}

.budget-summary-help {
  font-size: clamp(0.65625rem, 0.6114rem + 0.1887vw, 0.78125rem);
  color: var(--task-text-muted);
}

.budget-category-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.budget-category-card {
  padding: 1rem 1.25rem;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: var(--gelin-card-bg);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.budget-category-top {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.budget-category-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.budget-pill {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gelin-title);
}

.budget-category-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0.1rem 0 0;
}

.budget-card-actions {
  display: flex;
  gap: 0.6rem;
  position: relative;
  z-index: 2;
}

.budget-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #0d6efd;
  background: #0d6efd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.2s ease;
  text-decoration: none;
  position: relative;
  z-index: 2;
}

.gelin-card-green {
  background: #0d6efd;
  border-radius: 20px;
  border: 1px solid var(--gelin-border);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.7);
  transition: all 0.2s ease;
}

.moving-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.moving-card-section {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.moving-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  border: 1px solid rgba(248, 250, 252, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f9fafb;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.moving-card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(248, 250, 252, 0.9);
  margin-bottom: 0.15rem;
}

.moving-card-value {
  font-size: 0.95rem;
  color: #f9fafb;
}

.moving-card-divider {
  height: 1px;
  background: rgba(15, 23, 42, 0.35);
}

.text-from-to {
  font-size: 14px;
}

@media (max-width: 576px) {
  .moving-card {
    gap: 0.75rem;
  }

  .moving-card-value {
    font-size: 0.85rem;
  }
}

.budget-icon-btn:hover,
.budget-icon-btn:focus {
  background: #e0f2fe;
  border-color: #3b82f6;
  color: #0f172a;
}

.budget-amount-inline {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
}

.budget-inline-stat {
  display: flex;
  flex-direction: column;
  min-width: 95px;
}

.budget-inline-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--task-text-muted);
  margin-bottom: 0.2rem;
}

.budget-inline-value {
  font-size: 1.15rem;
  font-weight: 600;
}

.budget-category-bottom {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.budget-progress {
  width: 100%;
  height: 10px;
  background: var(--task-card-muted);
  border-radius: 999px;
  overflow: hidden;
}

.budget-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #34d399, #22c55e);
  transition: width 0.3s ease;
}

.budget-progress-fill.over {
  background: linear-gradient(90deg, #f87171, #fbbf24);
}

.budget-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--task-text-muted);
}

.budget-progress-meta.compact {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.budget-empty {
  border: 2px dashed rgba(148, 163, 184, 0.4);
  border-radius: 24px;
  background: #fff;
}

.budget-form-card {
  padding: 1.5rem;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: var(--gelin-card-bg);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.budget-form-header {
  display: block;
  margin-bottom: 1.25rem;
}

.budget-form label {
  font-size: 0.85rem;
  color: #ffffff;
}

.budget-form input {
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.65rem 0.85rem;
}

.budget-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 1.25rem;
}

.budget-input {
  width: 100%;
  background: #161E2D;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 0.75rem 0.95rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.budget-input:focus {
  background: #161E2D;
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  outline: none;
}

.expense-hero {
  gap: 1.5rem;
  align-items: center;
}

.expense-hero-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.expense-hero-action {
  justify-self: end;
  white-space: nowrap;
}

.expense-hero-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.1), rgba(148, 163, 184, 0.6), rgba(148, 163, 184, 0.1));
  margin-top: 1rem;
}

.expense-stats {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.expense-pill {
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  background: #17847c;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 140px;
}

.expense-pill-remaining {
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  background: #ff5e4b;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 140px;
}

.expense-pill-label {
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.expense-card {
  padding: 1.25rem 1.4rem;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: var(--gelin-card-bg);
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
  position: relative;
}

.expense-card + .expense-card {
  margin-top: 0.75rem;
}

.expense-card-main {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.item-card-image-wrapper {
  margin-bottom: 0.75rem;
  border-radius: 16px;
  overflow: hidden;
  background: #0b1220;
}

.item-card-image {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}

.item-card-link {
  display: block;
  width: 100%;
  height: 100%;
}

.item-card-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 0;
  color: rgba(209, 213, 219, 0.8);
}

.item-card-image-placeholder i {
  font-size: 1.75rem;
}

.item-card-actions {
  position: absolute;
  top: -0.7rem;
  right: -0.7rem;
}

.item-card-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.6);
  text-decoration: none;
  transition: all 0.15s ease-in-out;
}

.item-card-edit-btn:hover {
  border-color: #0d6efd;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.8);
}

.input-group-sm>.form-control, .input-group-sm>.btn {
  padding: .6rem .5rem;
  border-radius: 10px;
}

.input-group .btn {
  background: var(--bs-link-color);
}

.expense-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gelin-title);
  margin-bottom: 0.25rem;
}

.expense-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-reaction-like.active {
  border-color: #0d6efd;
  background-color: #0d6efd;
  color: #ffffff;
}

.item-reaction-dislike.active {
  border-color: #dc3545;
  background-color: #dc3545;
  color: #ffffff;
}

.item-meta-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.item-meta-author {
  text-transform: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.item-meta-author i {
  font-size: 0.9em;
}

.item-meta-separator {
  opacity: 0.7;
}

.item-comments-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.1), rgba(148, 163, 184, 0.6), rgba(148, 163, 184, 0.1));
  margin-top: 1rem;
}

.item-comments-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.item-comment {
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.8rem;
}

.item-comment-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.1rem;
}

.item-comment-author {
  font-weight: 600;
}

.item-comment-meta {
  font-size: 0.7rem;
  color: var(--gelin-text-muted);
}

.item-comment-body {
  margin-top: 0.15rem;
}

.expense-amount {
  font-size: clamp(1rem, 0.9104rem + 0.3774vw, 1.25rem);
  font-weight: 700;
}

.expense-meta {
  margin-top: 0.9rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--task-text-muted);
}

.expense-meta i {
  margin-right: 0.35rem;
}

.expense-form-card {
  padding: 1.75rem;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: var(--gelin-card-bg);
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.08);
}

.expense-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.expense-form-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.expense-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.expense-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 1.25rem;
}

.expense-form label {
  font-size: 0.85rem;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.expense-form input,
.expense-form select,
.expense-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 0.6rem 0.95rem;
  background: #161E2D;
  color: #ffffff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.expense-form input:focus,
.expense-form select:focus,
.expense-form textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  background: #161E2D;
  color: #ffffff;
}

.expense-form textarea {
  min-height: 120px;
  resize: vertical;
}

@media (max-width: 576px) {

  .expense-hero-action {
    justify-self: start;
  }

  .task-card {
    border-radius: 20px;
    padding: 1.25rem;
  }

  .task-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

.gelin-header {
  backdrop-filter: blur(8px);
  background: rgba(15, 23, 42, 0.96);
  border-bottom: 1px solid var(--gelin-border);
}

.navbar-brand {
  width: 55%;
  justify-content: space-between;
  margin: 0!important;
}

.navbar {
  padding-top: 0!important;
  padding-bottom: 0!important;
  flex-wrap: nowrap;
}

.gelin-header-avatar {
  display: inline-flex;
  align-items: center;
}

.gelin-avatar-btn {
  padding: 0;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}

.gelin-avatar-btn:focus {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

.gelin-avatar-menu {
  min-width: 180px;
  padding: 0.5rem 0;
}

.gelin-avatar-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  color: #ffffff;
}

.gelin-avatar-wrapper {
  position: relative;
  display: inline-flex;
  justify-content: center;
}

.gelin-avatar-img,
.gelin-avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 2px solid #e2e8f0;
  background: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-weight: 600;
}

.gelin-avatar-img-lg,
.gelin-avatar-placeholder-lg {
  width: 96px;
  height: 96px;
  border-width: 3px;
  font-size: 2rem;
}

.gelin-avatar-placeholder i {
  font-size: 1.25rem;
}

.gelin-avatar-placeholder-lg i {
  font-size: 2.25rem;
}

.gelin-avatar-edit-btn {
  position: absolute;
  bottom: 75px;
  right: 0;
  transform: translate(35%, 35%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--gelin-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px var(--gelin-shadow);
}

.gelin-avatar-edit-btn:hover,
.gelin-avatar-edit-btn:focus {
  background: #2563eb;
  color: #fff;
}

.gelin-main {
  padding-top: 1.0rem;
  padding-bottom: 5rem;
}

.gelin-bottom-nav {
  position: fixed;
  bottom: 8px;
  left: 8px;
  right: 8px;
  border-radius: 50px;
  background: rgb(23 152 142 / 85%);
  backdrop-filter: saturate(180%) blur(20px);
  z-index: 1030;
}

.gelin-bottom-links {
  display: flex;
  justify-content: space-between;
  gap: 0;
}

.navigation-bar {
  padding: 7px 10px;
  gap: 0;
}

.gelin-bottom-link {
  flex: 1;
  text-decoration: none;
  color: #b6fffc;
  font-size: 0.65rem;
  text-align: center;
  padding: 2px;
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.gelin-bottom-link i {
  font-size: 1.15rem;
}

.gelin-bottom-link.active,
.gelin-bottom-link:focus {
  background: rgba(23, 152, 142, 0.9);
  color: #ffffff;
  padding: 2px 8px;
}

.gelin-bottom-link:hover {
  background: rgba(23, 152, 142, 0.9);
  color: #ffffff;
}

.gelin-bottom-link.active span,
.gelin-bottom-link:focus span {
  font-weight: 600;
}

@media (min-width: 768px) {
  .gelin-bottom-links {
    justify-content: center;
    gap: 1rem;
  }

  .gelin-bottom-link {
    max-width: 120px;
  }
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gelin-primary);
  text-align: left;
}

.tasks-card .stat-number {
  text-align: center;
}

.icon-dash {
  position: absolute;
  font-size: 1.2rem;
}

.dashboard-unpack-number {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
}

.dashboard-unpack-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.dashboard-inline-stat-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
}

.gelin-card small.text-muted,
.gelin-card .text-muted.small {
  text-align: left;
}

.dashboard-inline-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.icon-primary {
  color: var(--gelin-primary);
}

/* Auth page */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2.5rem;
  color: #f9fafb;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 45%, rgba(0, 0, 0, 0)),
    url("/static/images/gelins_family.jpeg") center center / cover no-repeat;
}

.login-card {
  background-color: transparent !important;
  border: none;
  box-shadow: none !important;
}

.auth-logo {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.9;
}

.auth-logo-img {
  max-width: 180px;
  height: auto;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="date"] {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  font-size: 0.95rem;
}

.auth-form input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f6;
}

.auth-form label {
  font-size: 0.9rem;
  font-weight: 500;
}
