/* Osnovni reset */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #eef2f7;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1rem 5rem;
  color: #2c3e50;
  min-height: 100vh;
}

h1 {
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #34495e;
  text-align: center;
  letter-spacing: 1px;
}

#output {
  width: 100%;
  max-width: 900px;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.page {
  background: white;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transition: box-shadow 0.3s ease;
  border: 1px solid #dce3e8;
}

.page:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

.page h3 {
  margin-top: 0;
  color: #2c3e50;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border-bottom: 2px solid #2980b9;
  padding-bottom: 0.4rem;
  letter-spacing: 0.05em;
}

pre {
  white-space: pre-wrap;
  font-family: 'Source Code Pro', monospace;
  font-size: 1rem;
  color: #34495e;
  line-height: 1.6;
  font-weight: 500;
  user-select: text;
  word-wrap: break-word;
}

/* Gumbi */
#uploadBtn, #readBtn {
  position: fixed;
  bottom: 30px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  font-size: 1.4rem;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border: none;
  box-shadow: 0 6px 18px rgba(41, 128, 185, 0.5);
  cursor: pointer;
  transition: background 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.05em;
  user-select: none;
}

#uploadBtn {
  right: 30px;
  font-size: 2.2rem;
  line-height: 1;
}

#readBtn {
  right: 110px;
  display: none;
}

#uploadBtn:hover, #readBtn:hover {
  background: linear-gradient(135deg, #1f618d, #1b4f72);
  box-shadow: 0 8px 22px rgba(27, 79, 114, 0.7);
}

#uploadBtn:active, #readBtn:active {
  transform: scale(0.95);
  box-shadow: 0 5px 15px rgba(27, 79, 114, 0.9);
  transition: transform 0.1s ease;
}

/* Skrit file input */
#fileInput {
  display: none;
}

/* Responsivnost */
@media (max-width: 600px) {
  body {
    padding: 2rem 0 5rem;
  }
  h1 {
    font-size: 2rem;
    padding: 0 1rem;
  }
  .page {
    padding: 1.2rem 1.5rem;
  }
  pre {
    font-size: 0.9rem;
  }
  #uploadBtn, #readBtn {
    width: 60px;
    height: 60px;
    font-size: 1.1rem;
  }
  #readBtn {
    right: 90px;
  }
}
