 @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@400;500&display=swap');

/* ===== BODY ===== */
body {
  font-family: 'Inter', sans-serif;
  background: url('/background.png') no-repeat center center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  color: #1a1a1a;
}

/* ===== CONTAINER ===== */
.container {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  border: 1px solid #fcd34d; /* yellow accent */
  padding: 2.5rem 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}

/* ===== TITLE ===== */
h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
/*      margin-bottom: 0.8rem;*/
  background: linear-gradient(90deg, #b36b00, #804d00); /* dark gold/brown gradient */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

p {
  font-size: 0.95rem;
  color: #1a1a1a;
  margin-bottom: 2rem;
}

/* ===== LABELS ===== */
label {
  font-weight: 500;
  font-size: 0.95rem;
  color: #1a1a1a;
  display: block;
  margin-bottom: 0.5rem;
}

/* ===== INPUTS & SELECTS ===== */
.file-wrapper, .select-wrapper {
  margin-bottom: 1.5rem;
  width: 100%;
  text-align: left;
}

input[type="file"],
select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid #fcd34d;
  font-size: 0.95rem;
  background: #fff8e5;
  color: #1a1a1a;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

input[type="file"]:hover,
select:hover {
  border-color: #fbbf24;
  box-shadow: 0 4px 12px rgba(251,191,36,0.25);
}

input[type="file"]:focus,
select:focus {
  outline: none;
  border-color: #fbbf24;
  box-shadow: 0 0 0 4px rgba(251,191,36,0.2);
}

/* ===== SUBMIT BUTTON ===== */
input[type="submit"] {
  background: linear-gradient(90deg, #fbbf24, #fcd34d);
  color: #1a1a1a;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  padding: 0.9rem;
  cursor: pointer;
  font-size: 1rem;
  width: 100%;
  transition: all 0.2s ease;
}

input[type="submit"]:hover {
  background: linear-gradient(90deg, #fcd34d, #fbbf24);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(251,191,36,0.3);
}

/* ===== FOOTER ===== */
footer {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: #1a1a1a;
}

/* ===== NOTICE MESSAGE ===== */
.notice {
  background-color: #fef3c7; /* light yellow background */
  color: #b45309; /* darker yellow/brown text */
  border: 1px solid #fcd34d; /* yellow accent border */
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(251,191,36,0.2);
  animation: noticeFade 0.5s ease-in-out;
}

/* Optional: fade-in animation */
@keyframes noticeFade {
  0% { opacity: 0; transform: translateY(-5px); }
  100% { opacity: 1; transform: translateY(0); }
}

#logs {
  white-space: pre-wrap;
  height: 120px;               /* fixed height */
  overflow-y: scroll;          /* always show vertical scroll */
  padding: 12px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: monospace;
  font-size: 14px;
}

#content_check {
  white-space: pre-wrap;
  height: 120px;               /* fixed height */
  overflow-y: scroll;          /* always show vertical scroll */
  padding: 12px;
  background-color: #FF7F7F;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: monospace;
  font-size: 14px;
  color: white;
}

.logs-container {
  display: flex;
  flex-direction: column;
  align-items: center; /* centers the table horizontally */
  margin-top: 40px;
}

.logs-table {
  border-collapse: separate; /* allows border-radius on table */
  border-spacing: 0;
  width: 80%;
  max-width: 800px;
  background-color: #fdfdf0; /* very light yellowish background */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 16px; /* more rounded corners */
  overflow: hidden;
}

.logs-table th,
.logs-table td {
  padding: 12px 18px;
  text-align: left;
  width: 180px;
}

.logs-table th {
  background: linear-gradient(90deg, #a2d39c, #fdfd96); /* soft green-yellow gradient */
  color: #202020;
  font-weight: 600;
}

.logs-table td {
  border-bottom: 1px solid #e0e0c2; /* soft divider */
}

.logs-table tr:nth-child(even) td {
  background-color: #f8f9e0; /* alternating soft row color */
}

.logs-table tr:hover td {
  background-color: #e6f2c3; /* gentle hover highlight */
}

.logs-table a {
  color: #4a772e; /* soft green link */
  text-decoration: none;
  font-weight: 500;
}

.logs-table a:hover {
  text-decoration: underline;
}

a[href="/logs"] {
  display: inline-block;
  padding: 10px 18px;
  margin-top: 20px;
  background: linear-gradient(90deg, #fcd34d88, #fde68a88); 

  color: #202020;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

a[href="/logs"]:hover {
  background: linear-gradient(90deg, #fcd34d88, #fde68a88);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}