@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

:root {
  --background-color: #1c1c1e;
  --surface-color: #2c2c2e;
  --primary-text-color: #f2f2f7;
  --secondary-text-color: #aeb0b4;
  --accent-color: #0a84ff;
  --border-color: #38383a;
}

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

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--background-color);
  color: var(--primary-text-color);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 2rem;
}

.container {
  width: 100%;
  max-width: 600px;
  background-color: var(--surface-color);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

h1 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--primary-text-color);
}

/* --- Forms --- */
.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--primary-text-color);
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.3);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.btn-primary {
  background-color: var(--accent-color);
  color: white;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary:hover {
    filter: brightness(1.1);
}

/* --- Links & Navigation --- */
.nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  text-decoration: underline;
}

.form-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
}

/* --- Search Bar --- */
.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
}
.search-form input {
    flex-grow: 1;
}
.search-form button {
    width: auto;
    padding: 12px 20px;
}

/* --- Notes List --- */
.notes-list {
  list-style: none;
  margin-top: 1.5rem;
}

.note-item {
  background-color: var(--background-color);
  margin-bottom: 10px;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.note-item a {
  display: block;
  padding: 15px 20px;
  font-size: 1.1rem;
}

.note-item:hover {
  background-color: #3a3a3c;
}

.no-notes {
    text-align: center;
    color: var(--secondary-text-color);
    margin-top: 2rem;
}

/* --- Note Detail Page --- */
.note-content h1 {
    text-align: left;
    margin-bottom: 0.5rem;
}
.note-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--secondary-text-color);
    margin-bottom: 2rem;
}