/* --- Ogólne --- */

body {
  font-family: "Inter", Arial, sans-serif;
  background: #1d1f23;
  color: #e4e4e4;
  margin: 40px auto;
  max-width: 1100px;
  padding: 0 20px;
}

h1 {
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
  color: #f0f0f0;
}

h2 {
  margin-top: 0;
  font-weight: 600;
  font-size: 1.3rem;
  color: #ffffff;
}

/* --- Komunikaty --- */
.msg {
  background: #1f3b1f;
  border-left: 5px solid #4caf50;
  padding: 12px 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-size: 0.95rem;
  color: #d4ffd4;
}

/* --- Układ dwóch sekcji --- */
.container {
  display: flex;
  gap: 30px;
  justify-content: space-between;
}

/* --- Panel --- */
.panel {
  flex: 1;
  background: #2a2d33;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.5);
  border: 1px solid #3a3d45;
}

/* --- Formularz --- */
label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #ddd;
}

input[type="file"] {
  width: 100%;
  padding: 8px 0;
  margin-bottom: 15px;
  color: #ccc;
}

.btn {
  padding: 10px 18px;
  background: #20661f;
  border: none;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover {
  background: #3b4ce0;
  transform: translateY(-1px);
}

/* --- Responsywność --- */
@media (max-width: 800px) {
  .container {
    flex-direction: column;
  }
}

/* --- Nawigacja (zakładki) --- */
.nav {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
}

.nav-link {
  padding: 8px 14px;
  text-decoration: none;
  color: #ccc;
  border-radius: 6px 6px 0 0;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: #fff;
  background: #2a2d33;
}

.nav-link.active {
  background: #2a2d33;
  color: #fff;
  border-color: #3a3d45;
  border-bottom-color: transparent;
}

/* --- Lista plików w output --- */
.panel.full-width {
  margin-top: 10px;
}

.file-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #333;
}

.file-main {
  display: flex;
  flex-direction: column;
}

.file-name {
  font-weight: 600;
}

.file-size {
  font-size: 0.85rem;
  color: #aaa;
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.85rem;
}
