* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, system-ui,
    sans-serif;
  background: #0a0a0f;
  color: #ffffff;
  min-height: 100vh;
  padding: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, #ff006e 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, #fb5607 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, #ffbe0b 0%, transparent 50%),
    radial-gradient(circle at 60% 60%, #8338ec 0%, transparent 50%);
  opacity: 0.15;
  z-index: -1;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0px, 0px) rotate(0deg);
  }
  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 40px 20px;
}

.header {
  text-align: left;
  margin-bottom: 50px;
  position: relative;
}

.header h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  background: linear-gradient(45deg, #ff006e, #fb5607, #ffbe0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    filter: drop-shadow(0 0 20px rgba(255, 0, 110, 0.3));
  }
  to {
    filter: drop-shadow(0 0 40px rgba(251, 86, 7, 0.5));
  }
}

.header p {
  font-size: 1.3rem;
  color: #a0a0a0;
  font-weight: 300;
}

.overview-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.overview-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 24px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.overview-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff006e, #fb5607, #ffbe0b, #8338ec);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.overview-card:hover::before {
  transform: translateX(0);
}

.overview-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.overview-card h3 {
  color: #8a8a8a;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  font-weight: 600;
}

.overview-card .value {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(45deg, #ffffff, #e0e0e0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
}

.goals-section {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.goals-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 0, 110, 0.05) 0%,
    transparent 70%
  );
  animation: rotate 20s linear infinite;
  z-index: -1;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
}

.section-title {
  font-size: 1.8rem;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.btn {
  padding: 14px 28px;
  border: none;
  border-radius: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
  font-size: 0.95rem;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #ff006e, #fb5607);
  color: white;
  box-shadow: 0 8px 32px rgba(255, 0, 110, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(255, 0, 110, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-danger {
  background: linear-gradient(135deg, #ff006e, #d00060);
  color: white;
  box-shadow: 0 8px 32px rgba(255, 0, 110, 0.3);
}

.btn-danger:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(255, 0, 110, 0.5);
}

.goal-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 30px;
  margin-bottom: 25px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.goal-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    rgba(255, 0, 110, 0.1) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.goal-card:hover::after {
  opacity: 1;
}

.goal-card:hover {
  transform: translateY(-8px) scale(1.01);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 0, 110, 0.3);
  box-shadow: 0 20px 60px rgba(255, 0, 110, 0.2);
}

.goal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.goal-info h3 {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.goal-meta {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  color: #a0a0a0;
  margin-bottom: 20px;
}

.category-badge {
  background: linear-gradient(135deg, #ff006e, #fb5607);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(255, 0, 110, 0.3);
}

.deadline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.warning {
  color: #ffbe0b;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 190, 11, 0.5);
}

.overdue {
  color: #ff006e;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 0, 110, 0.5);
}

.completed {
  color: #06ffa5;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(6, 255, 165, 0.5);
}

.progress-section {
  margin-bottom: 25px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.progress-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff006e, #fb5607, #ffbe0b);
  border-radius: 8px;
  transition: width 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  box-shadow: 0 0 20px rgba(255, 0, 110, 0.5);
}

.progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: flow 2s infinite;
}

@keyframes flow {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.goal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.action-panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: 35px;
  position: relative;
  overflow: hidden;
}

.action-panel::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ff006e, #fb5607, #ffbe0b, #8338ec);
  border-radius: 30px;
  z-index: -2;
  animation: borderRotate 4s linear infinite;
}

.action-panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0a0a0f;
  border-radius: 28px;
  z-index: -1;
}

@keyframes borderRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.form-control {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-control:focus {
  outline: none;
  border-color: #ff006e;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(255, 0, 110, 0.1), 0 0 20px rgba(255, 0, 110, 0.3);
  transform: translateY(-1px);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(10px);
}

.modal-content {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: 3% auto;
  padding: 40px;
  border-radius: 32px;
  width: 90%;
  max-width: 520px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: modalSlide 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.modal-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff006e, #fb5607, #ffbe0b);
}

@keyframes modalSlide {
  from {
    opacity: 0;
    transform: translateY(-100px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.modal-title {
  font-size: 1.8rem;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close:hover {
  background: rgba(255, 0, 110, 0.3);
  transform: rotate(90deg);
}

.loading {
  text-align: center;
  padding: 60px;
  color: #ffffff;
  font-size: 1.2rem;
  position: relative;
}

.loading::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 0, 110, 0.3);
  border-radius: 50%;
  border-top-color: #ff006e;
  animation: spin 1s ease-in-out infinite;
  margin-left: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error {
  background: rgba(255, 0, 110, 0.1);
  color: #ff006e;
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 0, 110, 0.3);
  backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
  .main-content {
    grid-template-columns: 1fr;
  }

  .overview-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .header h1 {
    font-size: 2rem;
  }
}

select.form-control,
#depositGoal {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 1rem;
  appearance: none; /* Removes default arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Hover / Focus */
#depositGoal:hover,
#depositGoal:focus {
  border-color: #ff006e;
  box-shadow: 0 0 8px rgba(255, 0, 110, 0.5);
}

/* Style the dropdown arrow */
#depositGoal {
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg width='12' height='12' viewBox='0 0 24 24' fill='white' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
}

/* Dropdown list items (works only in some browsers) */
option {
  background: #1a1a1f;
  color: #fff;
}

/* ==== Top Navigation Bar ==== */
.nav {
  display: flex;
  gap: 20px;
  margin-top: 25px;
}

.nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #ff006e, #fb5607, #ffbe0b);
  transition: left 0.4s ease;
  z-index: -1;
  border-radius: inherit;
}

.nav-link:hover::before {
  left: 0;
}

.nav-link:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 0, 110, 0.3);
}

/* Active Link State (for current hash) */
.nav-link.active {
  background: linear-gradient(135deg, #ff006e, #fb5607);
  color: white;
  box-shadow: 0 8px 32px rgba(255, 0, 110, 0.4);
}
