/* Global vibe */
body {
  font-family: 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top left, #1e1e2f, #121220);
  color: #0a0a0a;
  padding: 20px;
  animation: fadeIn 0.6s ease-in;
  background-image: 
    radial-gradient(2px 2px at 20% 40%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 70% 10%, #aaa, transparent),
    radial-gradient(2px 2px at 80% 60%, #fff, transparent),
    radial-gradient(1px 1px at 50% 80%, #999, transparent);
  background-size: cover;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #292942;
  color: #fefefe;
  padding: 15px 25px;
  border-radius: 10px;
  margin-bottom: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  background: #262640;
  color: white;
  border-radius: 10px;
  margin-bottom: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

header a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
}

h2 {
  color: #333;
  margin-bottom: 15px;
}

/* Notes grid */
.notes-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* Note Card */
.note-card {
  background: white;
  padding: 15px;
  border-left: 6px solid #4a63e7;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  animation: slideUp 0.4s ease;
  transition: transform 0.2s ease;
}

.note-card:hover {
  transform: translateY(-5px);
}

.note-card h3 {
  color: #2e2e2e;
  margin-bottom: 8px;
}

.note-card small {
  color: #777;
}

/* Buttons inside note cards */
.note-card button,
.note-card a {
  font-size: 1rem;
  margin-right: 5px;
  cursor: pointer;
  color: #1013a7;
  text-decoration: none;
  border: none;
  background: none;
}

form {
  display: inline;
}

/* Search + Filter Bar */
form input[type="text"],
form select {
  padding: 8px 12px;
  margin-right: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

form button {
  background-color: #4a63e7;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #c01c1c;
}

/* Footer */
footer {
  margin-top: 350px;
  text-align: center;
  color: #888;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.new-note-btn {
  background-color: #fefefe;
  color: #292942;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.new-note-btn:hover {
  background-color: #444466;
  color: #fefefe;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  background: transparent;
  box-shadow:
    20vw 10vh #fff,
    50vw 80vh #aaa,
    70vw 20vh #eee,
    90vw 60vh #ccc;
  animation: twinkle 3s infinite ease-in-out;
}

/* New Note Form Styling */
.new-note-form {
  max-width: 400px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.06);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.5s ease;
}

.new-note-form h2 {
  color: #fefefe;
  text-align: center;
  margin-bottom: 20px;
}

.new-note-form input[type="text"],
.new-note-form textarea,
.new-note-form input[type="color"] {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 15px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  background: #ffffff0f;
  color: #fefefe;
  outline: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.new-note-form input::placeholder,
.new-note-form textarea::placeholder {
  color: #aaa;
}

.new-note-form label {
  display: block;
  margin-bottom: 5px;
  color: #ddd;
  font-weight: 500;
}

.new-note-form button {
  background-color: #4a63e7;
  color: white;
  border: none;
  padding: 12px;
  width: 100%;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.new-note-form button:hover {
  background-color: #3b52c6;
}

.note-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.note-search-form input[type="text"] {
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  width: 250px;
  font-size: 1rem;
  background: #ffffff0f;
  color: #080808;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
}

.note-search-form input::placeholder {
  color: #aaa;
}

.note-search-form button {
  background-color: #050c35;
  color: white;
  border: none;
  padding: 10px 16px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.note-search-form button:hover {
  background-color: #4e5577;
  transform: translateY(-2px);
}

.note-form-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

/* Form card style */
.styled-note-form {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 12px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.6s ease;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Inputs + textarea */
.styled-note-form input[type="text"],
.styled-note-form textarea,
.styled-note-form input[type="color"] {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  background: #ffffff0f;
  color: #0a0a0a;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.styled-note-form textarea {
  resize: vertical;
  min-height: 100px;
}

.styled-note-form input::placeholder,
.styled-note-form textarea::placeholder {
  color: #aaa;
}

/* Color picker */
.color-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ddd;
  font-size: 0.95rem;
}

/* Submit button */
.styled-note-form button {
  background-color: #1e243f;
  color: white;
  border: none;
  padding: 12px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.styled-note-form button:hover {
  background-color: #4d5997;
  transform: scale(1.03);
}

.star-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 10px;
}

/* Hide default checkbox */
.star-toggle input[type="checkbox"] {
  display: none;
}

/* Star style */
.star-label {
  font-size: 1.8rem;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
  color: #888;
}

/* When checkbox is checked, highlight the star */
.star-toggle input[type="checkbox"]:checked + .star-label {
  color: gold;
  transform: scale(1.1);
  filter: drop-shadow(0 0 4px gold);
}

.star-label:hover {
  transform: scale(1.15);
}

.styled-note-form input[type="text"],
.styled-note-form textarea {
  font-family: Arial, sans-serif; /* or your preferred font */
  font-size: 1rem;
}

.home-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh;
}

.welcome-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  text-align: center;
  animation: fadeIn 0.6s ease-in-out;
}

.welcome-card h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.welcome-card p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #555;
}

.home-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.home-btn {
  background-color: #3f3d56;
  color: white;
  text-decoration: none;
  padding: 10px 25px;
  border-radius: 8px;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.home-btn:hover {
  background-color: #5c5a72;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.new-note-btn {
  background: white;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  color: #333;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: background 0.3s;
}

.new-note-btn:hover {
  background: #f0f0f0;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.logout-btn {
  color: red;
  font-weight: bold;
  text-decoration: none;
}

.logout-btn:hover {
  text-decoration: underline;
}
