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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0d1b2a;
  color: #e0f2f1;
  line-height: 1.6;
  padding: 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Nagłówek */
.header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.header h1 {
  font-size: 2rem;
  color: #8ff8e3;
  text-shadow: 0 0 4px #8ff8e3a0;
}

/* Główna zawartość */
.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

/* Box przesyłania */
.upload-box {
  background-color: rgba(255, 255, 255, 0.04);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(143, 248, 227, 0.1);
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  backdrop-filter: blur(4px);
}

.upload-box h2 {
  color: #8ff8e3;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Formularz */
form input[type="file"],
form select,
form button {
  display: block;
  width: 100%;
  margin: 0.7rem 0;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
}

form input[type="file"],
form select {
  background-color: #ffffff;
  color: #000;
}

form button {
  background-color: #8ff8e3;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #62d7c1;
}

/* Info o plikach */
.upload-info {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #d0eeea;
}

/* Box z linkiem */
.link-box {
  margin-top: 1rem;
  word-wrap: break-word;
  background-color: #1b263b;
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid #8ff8e3;
  color: #e0f2f1;
  font-size: 0.95rem;
}

/* Przycisk kopiowania */
#copyBtn {
  margin-top: 0.5rem;
  padding: 0.9rem;
  background-color: #8ff8e3;
  color: #000;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  font-size: 1rem;
}

#copyBtn:hover {
  background-color: #62d7c1;
}

/* Historia */
.history-box {
  margin-top: 2rem;
  padding: 1rem;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.03);
}

.history-box ul {
  list-style-type: none;
  padding-left: 0;
}

.history-box li {
  margin-bottom: 8px;
  font-size: 0.95em;
}

/* Stopka */
.footer {
  margin-top: 3rem;
  text-align: center;
  padding: 1rem 0;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  font-size: 0.9rem;
}

.footer p {
  color: #e0f2f1;
  margin-bottom: 0.5rem;
}

.footer a {
  color: #8ff8e3;
  text-decoration: none;
  margin: 0 0.5rem;
}

.footer a:hover {
  text-decoration: underline;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0e1a2b;
  color: #e0f7f9;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.9em;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-banner a {
  color: #66d9ef;
  text-decoration: underline;
}

.cookie-banner button {
  background: #66d9ef;
  border: none;
  color: #0e1a2b;
  padding: 0.8rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
}

/* 📱 Bardzo małe ekrany */
@media (max-width: 400px) {
  body {
    padding: 0.6rem;
  }

  .upload-box {
    padding: 0.8rem;
    border-radius: 10px;
  }

  .upload-box h2 {
    font-size: 1.2rem;
  }

  form input[type="file"],
  form select,
  form button,
  #copyBtn {
    font-size: 0.9rem;
    padding: 0.75rem;
  }

  .link-box {
    font-size: 0.9rem;
  }

  .cookie-banner {
    font-size: 0.85rem;
    padding: 0.8rem;
  }

  .cookie-banner button {
    padding: 0.6rem;
    font-size: 0.9rem;
  }

  .footer {
    font-size: 0.8rem;
  }

  .header h1 {
    font-size: 1.6rem;
  }
}

/* 💻 Desktop & Tablet */
@media (min-width: 768px) {
  body {
    padding: 2rem;
  }

  .header h1 {
    font-size: 3rem;
  }

  .main-content {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
  }

  .upload-box {
    max-width: 500px;
    padding: 2rem;
  }

  .cookie-banner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .cookie-banner button {
    width: auto;
  }

  #copyBtn {
    width: auto;
  }
}
