/* LIGHT MODE COLORS */
:root, [data-theme='light'] {
  --bg-main: #f4f7f6;
  --card-bg-base: #ffffff;
  --text-main: #1a1625;
  --text-muted: rgba(26, 22, 37, 0.6);
  --input-bg: rgba(0, 0, 0, 0.05);
  --glass-overlay: rgba(123, 167, 137, 0.1);
}

/* DARK MODE COLORS */
[data-theme='dark'] {
  --bg-main: #0a0b16;
  --card-bg-base: #1b1b36;
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --input-bg: rgba(255, 255, 255, 0.05);
  --glass-overlay: rgba(123, 167, 137, 0.15);
}

#root {
  width: 100%;
  text-align: left;
}

.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
  filter: drop-shadow(0 0 2em #61dafbaa);
}

@keyframes logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  a:nth-of-type(2) .logo {
    animation: logo-spin infinite 20s linear;
  }
}

.card {
  padding: 2em;
}

.read-the-docs {
  color: #888;
}
/* --- TRAINREC LOGIN EXCLUSIVE --- */
.tr-login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #13132b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-family: 'Inter', sans-serif;
}

.tr-logo-text {
  color: #9d50bb;
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 2rem;
  letter-spacing: -2px;
}

.tr-orange-card {
  width: 90%;
  max-width: 420px;
  max-height: 85vh; /* Prevents card from going off-screen */
  overflow-y: auto; /* Adds scrollbar if content is too tall */
  background-color: #1b1b36;
  border: 2px solid #ff9f43; 
  border-radius: 40px;
  padding: 40px;
  box-shadow: 0 0 25px rgba(255, 159, 67, 0.2);
  box-sizing: border-box;
}


.tr-orange-card::-webkit-scrollbar {
  width: 5px;
}
.tr-orange-card::-webkit-scrollbar-thumb {
  background: #ff9f43;
  border-radius: 10px;
}

.tr-welcome {
  color: white;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  display: block;
  text-align: left;
}

.tr-input-field {
  width: 100%;
  padding: 16px;
  margin-bottom: 16px;
  background-color: #0d0e1b;
  border: 1px solid #333;
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  box-sizing: border-box;
  outline: none;
}

.tr-input-field:focus {
  border-color: #ff9f43;
}

.tr-signin-btn {
  width: 100%;
  padding: 16px;
  background-color: #ff9f43;
  color: #13132b;
  border: none;
  border-radius: 12px;
  font-weight: 900;
  font-size: 1.1rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.tr-signin-btn:hover { opacity: 0.9; }

.tr-forgot-btn {
  background: none;
  border: none;
  color: #666;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  float: right;
  margin-top: 10px;
  cursor: pointer;
}

.tr-create-btn {
  background: none;
  border: none;
  color: #9d50bb;
  font-weight: bold;
  margin-top: 40px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tr-grid {
  display: grid;
  grid-template-cols: 1fr 1fr;
  gap: 12px;
}

.tr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

/* --- NEON ACCOUNT PAGE STYLES --- */

.account-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.neon-account-card {
  background-color: #1b1b36;
  border: 2px solid;
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

/* --- UPDATED NEON FILLED STYLES --- */

.account-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.neon-account-card {
  /* This ensures all boxes are the same size as your Nickname box */
  min-height: 120px; 
  border: 2px solid;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: all 0.3s ease;
  position: relative; /* Essential for positioning the reset button */
}

/* FILLED NEON VARIANTS */
.neon-purple {
  border-color: #9d50bb !important;
  background-color: rgba(157, 80, 187, 0.15); /* Filled purple */
  box-shadow: 0 0 15px rgba(157, 80, 187, 0.2);
}

.neon-blue {
  border-color: #00d2ff !important;
  background-color: rgba(0, 210, 255, 0.15); /* Filled blue */
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.neon-orange {
  border-color: #ff9f43 !important;
  background-color: rgba(255, 159, 67, 0.15); /* Filled orange */
  box-shadow: 0 0 15px rgba(255, 159, 67, 0.2);
}

.neon-yellow {
  border-color: #fac015 !important;
  background-color: rgba(250, 192, 21, 0.2); /* Filled yellow for editing */
  box-shadow: 0 0 20px rgba(250, 192, 21, 0.3);
}

/* Tiny Reset Password positioning */
.reset-btn-link {
  position: absolute;
  bottom: 12px;
  right: 15px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: color 0.2s;
}

.reset-btn-link:hover {
  color: #ff9f43;
  text-decoration: underline;
}

.card-label {
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  /* Changed from rgba(255,255,255,0.6) to dynamic muted text */
  color: var(--text-muted); 
  margin-bottom: 6px;
}

.card-value {
  font-size: 1.1rem;
  font-weight: 700;
  /* Changed from #ffffff to dynamic main text */
  color: var(--text-main); 
}

/* Responsive Grid */
@media (max-width: 900px) {
  .account-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .account-grid {
    grid-template-columns: 1fr;
  }
}

/* --- UPDATED PROFILE: MUTED FITNESS GOALS STYLES --- */

/* --- PROFILE PAGE: FULL STYLES --- */

.profile-layout-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  width: 100%;
}

/* Sidebar: Nickname directly under Icon */
.profile-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 10px;
}

.nickname-display {
  margin-top: 15px;
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Avatar/Icon size */
.avatar-img {
  width: 130px;
  height: 130px;
  object-fit: contain;
}

/* NEON PURPLE CARD (For sidebar items if needed) */
.neon-account-card.neon-purple {
  border: 2px solid #9d50bb;
  border-radius: 20px;
  padding: 20px;
  background-color: rgba(157, 80, 187, 0.18);
  box-shadow: 0 0 15px rgba(157, 80, 187, 0.2);
  width: 100%;
}

/* --- NEON SAGE GLASS GOALS BOX --- */
.neon-goals-box {
  background-color: rgba(123, 167, 137, 0.15); /* Transparent Sage Fill */
  border: 2px solid rgba(123, 167, 137, 0.4);
  border-radius: 35px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 400px;
  box-shadow: 0 0 25px rgba(123, 167, 137, 0.2);
  backdrop-filter: blur(8px); /* Frosted Glass Effect */
}

.goals-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

.goals-title {
  color: #7ba789;
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: -1px;
  text-shadow: 0 0 10px rgba(123, 167, 137, 0.3);
}

/* Slimmed Input Container */
.goal-input-container {
  display: flex;
  align-items: flex-end; /* Aligns button to bottom of text area */
  gap: 12px;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

.goals-textarea {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(123, 167, 137, 0.3);
  border-radius: 15px;
  padding: 15px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  outline: none;
  resize: none;
  height: 60px; /* Thinner height */
  transition: border 0.3s;
}

.goals-textarea:focus {
  border-color: #7ba789;
}

/* Thinner Add Goal Button */
.goals-add-btn {
  background-color: transparent;
  border: 1.5px solid #7ba789;
  color: #7ba789;
  padding: 0 18px;
  height: 38px; /* Thinner button */
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}

.goals-add-btn:hover {
  background-color: #7ba789;
  color: #1a1625;
  box-shadow: 0 0 15px rgba(123, 167, 137, 0.4);
}

/* List View Layout */
.goals-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
  z-index: 2;
}

.goal-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(123, 167, 137, 0.15);
}

.goal-list-item:last-child {
  border-bottom: none;
}

/* Trash Icon on the Left */
.trash-btn {
  background: none;
  border: none;
  color: #7ba789;
  opacity: 0.5;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding-top: 4px;
  transition: all 0.2s ease;
}

.trash-btn:hover {
  opacity: 1;
  color: #ff4d4d;
  transform: scale(1.1);
}

.goal-text-content {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  /* Changed from #e0e0e0 to dynamic main text */
  color: var(--text-main); 
  word-break: break-word;
}

/* Decorative background circle */
.bio-gloss-overlay {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  background: rgba(123, 167, 137, 0.15);
  border-radius: 50%;
  filter: blur(40px);
  z-index: 1;
}

@media (max-width: 850px) {
  .profile-layout-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* --- PROFILE AVATAR & EDIT ICONS --- */
.avatar-wrapper {
  position: relative;
  display: inline-block;
  transition: transform 0.2s;
  z-index: 10;
}

.avatar-wrapper:hover {
  transform: scale(1.03);
}

.avatar-image {
  width: 140px; 
  height: 140px; 
  border-radius: 50%;
  border: 3px solid; 
  display: block;
  object-fit: cover;
  cursor: pointer;
}

/* Base styles for the floating buttons */
.icon-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border-width: 2px;
  border-style: solid;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  z-index: 20; /* Ensures buttons stay above the image */
}

.icon-action-btn:hover {
  transform: scale(1.15);
}

/* Red styling when hovering over the trash bin */
.icon-action-btn.delete-btn:hover {
  color: #ff4d4d !important;
  border-color: #ff4d4d !important;
}