body {
  margin: 0;
  font-family: 'Georgia', serif;
  background: linear-gradient(to bottom, #1b1f3a, #2e3b5e, #475c85);
  color: #f0f4ff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: rgba(27, 31, 58, 0.9);
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid #6b7dab;
}

h1 {
  margin: 0;
  font-size: 2.5em;
  color: #d4e4ff;
  text-shadow: 0 0 10px #b0c4ff;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 15px;
}

nav a {
  color: #e0e8ff;
  text-decoration: none;
  font-size: 1.1em;
  padding: 6px 12px;
  border-radius: 10px;
  transition: background 0.3s;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

main {
  flex: 1;
  padding: 30px;
  text-align: center;
  font-size: 1.2em;
}

footer {
  text-align: center;
  padding: 10px;
  background: rgba(27, 31, 58, 0.7);
  font-size: 0.9em;
  color: #cbd6f1;
}
textarea {
  width: 100%;
  max-width: 800px;
  height: 40vh;
  font-size: 1.3em;
  padding: 20px;
  border-radius: 15px;
  border: none;
  resize: vertical;
  background: #fdfcff;
  color: #2e3b5e;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
  font-family: 'Georgia', serif;
  line-height: 1.7em;
}

button[type="submit"] {
  padding: 12px 28px;
  font-size: 1.1em;
  border: none;
  border-radius: 10px;
  background-color: #9eb9f5;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s;
  font-family: 'Georgia', serif;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

button[type="submit"]::before {
  content: "🗝️";
  font-size: 1.2em;
}

button[type="submit"]:hover {
  background-color: #819bd4;
}
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(white 1px, transparent 1px),
    radial-gradient(white 1px, transparent 1px);
  background-size: 100px 100px;
  background-position: 0 0, 50px 50px;
  z-index: -1;
  animation: sparkle 20s linear infinite;
  opacity: 0.08;
}
header {
  background: rgba(27, 31, 58, 0.95);
  padding: 15px 30px;
  border-bottom: 1px solid #6b7dab;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

header h1 {
  margin: 0 0 10px 0;
  font-size: 2em;
  color: #d4e4ff;
  text-shadow: 0 0 10px #b0c4ff;
}

header h1 a {
  color: inherit;
  text-decoration: none;
}

header nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

header nav a {
  color: #e0e8ff;
  text-decoration: none;
  font-size: 1.1em;
  padding: 6px 12px;
  border-radius: 10px;
  transition: background 0.3s;
}

header nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.default-main {
  flex: 1;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.welcome-section {
  background-color: rgba(255, 255, 255, 0.07);
  padding: 30px;
  border-radius: 20px;
  max-width: 700px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.welcome-section h2 {
  font-size: 2em;
  color: #f0f4ff;
  text-shadow: 0 0 6px #b0c4ff;
}

.welcome-section p {
  font-size: 1.2em;
  color: #e8ecff;
  line-height: 1.6;
  margin-top: 1em;
}

.dream-button {
  display: inline-block;
  margin-top: 2em;
  padding: 12px 25px;
  font-size: 1.1em;
  border-radius: 12px;
  background-color: #a8c6ff;
  color: #1b1f3a;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
}

.dream-button:hover {
  background-color: #88aee0;
  transform: scale(1.05);
}
.form-section {
  max-width: 500px;
  margin: 50px auto;
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(255,255,255,0.1);
  color: #f0f4ff;
}

.auth-form label {
  display: block;
  margin-top: 18px;
  font-weight: bold;
  font-size: 1.1em;
}

.auth-form input {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: none;
  margin-top: 5px;
  font-size: 1em;
  background-color: #e8edff;
  color: #2e3b5e;
}

.auth-form button {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  font-size: 1.1em;
  border: none;
  border-radius: 10px;
  background-color: #a8c6ff;
  color: #1b1f3a;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  font-family: 'Georgia', serif;

  display: flex;
  align-items: center;
  justify-content: center; /* 🟢 ovo centriranje po horizontali */
  gap: 10px;
}

.poruka {
  margin-bottom: 15px;
  font-weight: bold;
  color: #f8f8ff;
}

.auth-form input,
.auth-form select {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  margin-top: 6px;
  font-size: 1.1em;
  background-color: #e8edff;
  color: #2e3b5e;
  font-family: 'Dancing Script', cursive;
}

.auth-form input[type="password"],
.auth-form input[type="email"],
.auth-form input[type="text"],
.auth-form input[type="date"],
.auth-form input[type="time"],
.auth-form select {
  font-family: 'Dancing Script', cursive;
}


@keyframes sparkle {
  0% {
    background-position: 0 0, 50px 50px;
  }
  100% {
    background-position: 100px 100px, 150px 150px;
  }
}

.fairy-link {
  color: #f7e78e;
  font-weight: bold;
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}

.fairy-link:hover {
  color: #fff7b2;
  text-shadow: 0 0 8px rgba(255, 248, 199, 0.8);
}

/* Nežna vilinska prašina efekt – animacija */
.fairy-link::after {
  content: '✨';
  position: absolute;
  right: -1.5em;
  top: -0.6em;
  animation: fairy-dust 2.5s infinite ease-in-out;
  opacity: 0.7;
  font-size: 1em;
  pointer-events: none;
}

.astro-poruka {
  margin-top: 25px;
  font-family: 'Great Vibes', cursive;
  font-size: 1.6em;
  color: #f7e8ff;
  text-shadow: 0 0 10px #b68df8;
  text-align: center;
  animation: fadeInAstro 3s ease-in-out;
}

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


@keyframes fairy-dust {
  0%   { transform: translateY(0); opacity: 0.7; }
  50%  { transform: translateY(-5px); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.7; }
}
.dnevnik-wrapper {
  display: flex;
  min-height: 80vh;
  position: relative;
}

aside#filterPanel {
  width: 0;
  overflow: hidden;
  background: rgba(40, 50, 80, 0.95);
  padding: 20px;
  color: #f0f4ff;
  position: absolute;
  top: 0; left: 0; bottom: 0;
  transition: width 0.4s ease;
  box-shadow: 3px 0 15px rgba(0,0,0,0.3);
  z-index: 5;
}

aside#filterPanel.open {
  width: 300px;
}

aside#filterPanel h3 {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8em;
  margin-bottom: 10px;
}

#closeFilter {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4em;
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
}

.prethodni-unosi {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.prethodni-unosi li a {
  display: block;
  padding: 10px;
  margin-bottom: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #f0f0f0;
  text-decoration: none;
}

.dnevnik-glavni {
  flex: 1;
  padding: 40px;
}

#openFilter {
  background: rgba(160, 180, 250, 0.3);
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 1em;
  cursor: pointer;
  margin-bottom: 20px;
}
.dnevnik-forma input[type="text"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-family: 'Good Vibes', cursive;
  font-size: 1.1em;
  background-color: #fdfaf7;
  color: #333;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
}

.dnevnik-forma label {
  font-family: 'Great Vibes', cursive;
  font-size: 1.4em;
  color: #5a4d6d;
}

.dnevnik-forma textarea {
  width: 100%;
  height: 250px;
  padding: 14px;
  font-family: 'Good Vibes', cursive;
  font-size: 1.1em;
  background-color: #fffefc;
  border: 1px solid #ccc;
  border-radius: 12px;
  resize: vertical;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.05);
}


/* Responsive */
@media (max-width: 768px) {
  body {
    font-size: 1em;
    padding: 10px;
  }

  header h1, main, footer {
    padding: 10px;
    text-align: center;
  }
  
    header .container {
    align-items: stretch;
  }

  header nav ul {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  header h1 {
    font-size: 1.6em;
  }

textarea {
    height: 30vh;
    font-size: 1.2em;
  }

  button[type="submit"] {
    width: 100%;
    justify-content: center;
  }
  
  nav ul {
    flex-direction: column;
    gap: 5px;
  }
}

