:root {
  --glass-white: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --bg-soft: #f5f5f7;
  --text-main: #1d1d1f;
  --text-muted: #86868b;
  --accent-blue: #0071e3;
  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.04);
  --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  margin: 0;
  padding: 0;
  font-family: "Raleway", sans-serif;
  background-color: var(--bg-soft);
  color: var(--text-main);
  min-height: 100vh;
  /* Subtle light mesh background */
  background-image:
    radial-gradient(at 0% 0%, rgba(255, 255, 255, 1) 0, transparent 50%),
    radial-gradient(at 100% 0%, rgba(200, 220, 255, 0.3) 0, transparent 50%);
  background-attachment: fixed;
}

/* Navbar: Centered & Floating */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 800px; /* Constrained width */
  margin: 1.5rem auto; /* Centers horizontally and adds spacing from top */
  padding: 0.8rem 2rem;
  background: var(--glass-white);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 1.5rem;
  z-index: 1000;
}

.nav-container p {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.5px;
}

.link-container a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  margin-left: 1.5rem;
  transition: var(--transition);
}

.link-container a:hover {
  color: var(--accent-blue);
}

/* Main Input Area */
.main-container {
  max-width: 600px;
  margin: 4rem auto 3rem auto;
  padding: 2.5rem;
  background: var(--glass-white);
  backdrop-filter: blur(30px);
  border-radius: 30px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}

.main-container input {
  width: 100%;
  padding: 1.2rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--text-main);
  font-size: 1.1rem;
  outline: none;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.main-container input::placeholder {
  color: #c1c1c6;
}

.main-container input:focus {
  border-bottom-color: var(--accent-blue);
}

.main-container button {
  width: 100%;
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 14px;
  border: none;
  background: var(--text-main);
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.main-container button:hover {
  background: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 113, 227, 0.2);
}

/* Thought Cards: Light Frost */
#thoughtList {
  max-width: 600px;
  margin: 0 auto;
  list-style: none;
  padding: 0 1rem;
}

.thought-card {
  background: var(--glass-white);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  animation: cardEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition: var(--transition);
}

.thought-card:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.01) translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.thought-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.thought-title {
  font-weight: 600;
  font-size: 1.1rem;
}

.thought-body {
  color: #424245;
  font-size: 0.95rem;
  line-height: 1.5;
}

.thought-footer {
  margin-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.delete-btn {
  background: #f5f5f7;
  color: #ff3b30;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.delete-btn:hover {
  background: #ff3b30;
  color: white;
}

.watermark {
  text-align: center;
  margin: 5rem 0 3rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .nav-container {
    margin: 1rem;
    width: auto;
  }
  .main-container {
    margin: 2rem 1rem;
    padding: 1.5rem;
  }
}
