body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #89f7fe, #66a6ff);
  color: #2c3e50;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.app-container {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  padding: 30px;
  max-width: 700px;
  width: 90%;
  text-align: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-banner {
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
}

.hero-gif {
  width: 100px;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
}

/* --- Animated gradient tekst --- */
h1 {
  background: linear-gradient(270deg, #ff6ec4, #7873f5, #00fff0);
  background-size: 600% 600%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


p {
  color: #f0f0f0;
  margin-bottom: 20px;
}

textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: 120px;
  padding: 15px;
  font-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  resize: none;
  transition: border 0.3s;
  background-color: rgba(255, 255, 255, 0.7);
  color: #333;
}

textarea:focus {
  border-color: #ffffff;
  outline: none;
}



.button-group {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

button {
  padding: 12px 25px;
  font-size: 16px;
  background: linear-gradient(135deg, #3498db, #6dd5fa);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, background 0.3s;
}

button:hover {
  background: linear-gradient(135deg, #2980b9, #4ca1af);
  transform: scale(1.05);
}

button.clear {
  background: linear-gradient(135deg, #e74c3c, #ff6e7f);
}

button.clear:hover {
  background: linear-gradient(135deg, #c0392b, #e96443);
}

#loader {
  margin-top: 15px;
  font-style: italic;
  color: #eee;
}

.hidden {
  display: none;
}

#responseBox {
  margin-top: 25px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 20px;
  border-radius: 10px;
  color: #000;
  text-align: left;
  white-space: pre-wrap;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

#history {
  margin-top: 30px;
  text-align: left;
}

.history-item {
  background: rgba(255, 255, 255, 0.1);
  border-left: 4px solid #ffffff;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.history-item h4 {
  margin: 0 0 5px;
  color: #ffffff;
}

/* Dugme za promenu teme */
#themeToggle {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  color: #333;
  font-size: 20px;
  border: none;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

body.dark-theme #themeToggle {
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
}

#themeToggle:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

/* Tamna tema override */
body.dark-theme {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #ddd;
}

body.dark-theme .app-container {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-theme textarea {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

body.dark-theme textarea:focus {
  border-color: #00aaff;
}

body.dark-theme #responseBox {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

body.dark-theme .history-item {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-left-color: #00aaff;
}

body.dark-theme .history-item h4 {
  color: #00aaff;
}

/* Mobilna verzija */
@media screen and (max-width: 600px) {
  .app-container {
    padding: 20px 15px;
  }

  textarea {
    height: 100px;
    font-size: 14px;
  }

  button {
    font-size: 14px;
    padding: 10px 18px;
    flex: 1 1 auto;
  }

  #themeToggle {
    top: 10px;
    right: 10px;
    font-size: 18px;
    padding: 6px;
    width: auto;
    height: auto;
    background-color: rgba(255, 255, 255, 0.85);
  }

  body.dark-theme #themeToggle {
    background-color: rgba(0, 0, 0, 0.5);
  }

  .button-group {
    flex-direction: column;
    gap: 8px;
  }
}
.hidden {
  display: none;
}

