:root {
  --bg-0: #f6f8ff;
  --bg-1: #eef2ff;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --text-strong: #1f2340;
  --text-muted: #5e678d;
  --primary: #4e48e0;
  --primary-strong: #3e38cb;
  --border-soft: #dce2ff;
  --shadow-soft: 0 16px 40px rgba(36, 48, 113, 0.12);
  --shadow-card: 0 12px 30px rgba(38, 48, 116, 0.11);
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-strong);
  background:
    radial-gradient(circle at 8% 10%, rgba(108, 92, 231, 0.18), transparent 35%),
    radial-gradient(circle at 90% 10%, rgba(0, 206, 201, 0.14), transparent 32%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1));
  min-height: 100vh;
}

.app-container {
  max-width: 1200px;
  margin: auto;
  padding: 36px 15px 44px;
}

.dashboard-hero {
  background: linear-gradient(125deg, #28256f 0%, #4e48e0 46%, #6b89ff 100%);
  color: #fff;
  padding: 32px;
  border-radius: 24px;
  box-shadow: 0 22px 44px rgba(36, 42, 114, 0.3);
  display: flex;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.hero-copy {
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.dashboard-hero .app-title {
  color: #fff;
  margin-bottom: 8px;
  font-size: clamp(1.6rem, 2vw, 2.2rem);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  margin-bottom: 0;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  align-self: stretch;
  min-width: 320px;
}

.hero-metric {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-label {
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero-metric strong {
  font-size: 1.7rem;
  line-height: 1.1;
}

.app-header {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  margin-top: 18px;
}

.app-title {
  font-weight: 700;
  color: #252b61;
}

.header-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eaecff;
  color: #4f49dd;
  font-size: 0.74rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.app-header p {
  color: var(--text-muted);
}

.header-actions .btn {
  border-radius: 11px;
  font-weight: 500;
  padding: 0.5rem 0.86rem;
}

.btn-add {
  background: linear-gradient(90deg, var(--primary), #6659f0);
  color: #fff;
  border: none;
  border-radius: 11px;
  box-shadow: 0 10px 20px rgba(78, 72, 224, 0.22);
}

.btn-add:hover {
  background: linear-gradient(90deg, var(--primary-strong), #5748e3);
  color: #fff;
}

.card-reminder {
  border: none;
  overflow: hidden;
}

.reminder-card {
  border-radius: 17px;
  box-shadow: var(--shadow-card);
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reminder-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(36, 50, 123, 0.14);
}

.reminder-card .card-header {
  background: transparent;
  border-bottom: 1px solid rgba(126, 137, 188, 0.2);
}

.reminder-card .card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #232857;
}

.reminder-card .card-text {
  color: #4e567f;
}

.reminder-card .btn-outline-primary,
.reminder-card .btn-outline-danger {
  border-width: 1px;
}

.info-section {
  margin-top: 12px;
  color: #3f4574;
}

.empty-state {
  background: var(--surface-strong);
  border: 1px dashed #c7cfef;
  border-radius: 18px;
  padding: 42px 26px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.empty-state i {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.empty-state h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #23264d;
}

.empty-state p {
  color: #60668b;
  margin-bottom: 0;
}

.bg-info-custom {
  background: linear-gradient(135deg, #edf6ff, #deefff);
}

.bg-warning-custom {
  background: linear-gradient(135deg, #fff9e7, #fff0ca);
}

.bg-danger-custom {
  background: linear-gradient(135deg, #ffebef, #ffdce3);
}

.modal-content {
  border-radius: 16px;
  border: 1px solid #edf0ff;
  box-shadow: var(--shadow-soft);
}

.modal-header {
  border-bottom-color: #edf0ff;
}

.modal-footer {
  border-top-color: #edf0ff;
}

.form-control,
.form-select {
  border-radius: 10px;
  border-color: #d8defa;
}

.form-control:focus,
.form-select:focus {
  border-color: #7a75f6;
  box-shadow: 0 0 0 0.2rem rgba(97, 91, 240, 0.16);
}

.deleted-item {
  background: #fff;
  border-color: #e3e8ff !important;
  border-radius: 12px !important;
}

.login-page {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background:
    radial-gradient(circle at 8% 10%, rgba(108, 92, 231, 0.25), transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(0, 206, 201, 0.2), transparent 40%),
    linear-gradient(145deg, #f4f6ff 0%, #e8ecff 45%, #f7fbff 100%);
  min-height: 100vh;
}

.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-shell {
  width: min(940px, 100%);
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 26px;
  align-items: stretch;
}

.login-branding,
.login-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 45px rgba(44, 55, 120, 0.15);
  border-radius: 24px;
}

.login-branding {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-pill {
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(78, 72, 224, 0.12);
  color: #4e48e0;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.login-headline {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #26204f;
}

.login-subtitle {
  color: #4f5682;
  margin: 0;
  font-size: 1rem;
}

.login-card {
  padding: 34px;
}

.login-title {
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #201b4f;
}

.login-help {
  color: #646d97;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.login-form-group {
  margin-bottom: 14px;
}

.login-input {
  height: 48px;
  border-radius: 12px;
  border: 1px solid #d5d9f0;
  padding-inline: 14px;
}

.login-input:focus {
  border-color: #615bf0;
  box-shadow: 0 0 0 0.2rem rgba(97, 91, 240, 0.18);
}

.login-button {
  margin-top: 8px;
  height: 48px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #4e48e0, #6853f4);
  box-shadow: 0 10px 20px rgba(78, 72, 224, 0.3);
}

.login-button:hover {
  background: linear-gradient(90deg, #3f39cf, #5b45e8);
  color: #fff;
}

.login-links {
  margin-top: 18px;
  font-size: 0.93rem;
  color: #676d8f;
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.login-links a {
  color: #4e48e0;
  text-decoration: none;
  font-weight: 500;
}

.login-links a:hover {
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .app-container {
    padding: 24px 12px 34px;
  }

  .dashboard-hero {
    padding: 22px;
  }

  .hero-metrics {
    min-width: 100%;
    grid-template-columns: repeat(3, 1fr);
  }

  .app-header {
    padding: 16px;
  }

  .app-title {
    font-size: 1.3rem;
  }

  .header-copy,
  .header-actions {
    width: 100%;
  }

  .header-actions {
    justify-content: stretch;
  }

  .header-actions .btn {
    flex: 1 1 calc(50% - 0.5rem);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    min-height: 42px;
    padding-inline: 10px;
  }
}

@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .login-branding {
    padding: 30px;
  }

  .login-card {
    padding: 28px;
  }

  .login-headline {
    font-size: 1.7rem;
  }
}

@media (max-width: 460px) {
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .header-actions .btn {
    flex: 1 1 100%;
  }

  .login-wrapper {
    padding: 14px;
  }

  .login-branding,
  .login-card {
    border-radius: 18px;
    padding: 22px;
  }

  .login-title {
    font-size: 1.35rem;
  }
}
