/* member-upload.css */

/* 🧩 Wrapper for the entire member upload section */
.member-upload {
  background: #fff;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 1100px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 🧾 Heading inside the upload box */
.member-upload h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #333;
}

/* 💬 Paragraphs inside the upload area (e.g. instructions) */
.member-upload p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #666;
}

/* 📁 File and password input fields */
.member-upload input[type="file"],
.member-upload input[type="password"] {
  padding: 0.6rem;
  width: 100%;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* 🔘 Upload button */
.member-upload button {
  background: linear-gradient(135deg, #2152E4, #7C26A6);
  color: #fff;
  font-weight: 600; /* Sorgt für leicht fetten Text */
  letter-spacing: 0.5px; /* Wirkt moderner und erhöht die Lesbarkeit */
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.member-upload button:hover {
  opacity: 0.85;
  transform: translateY(-1px); /* Erzeugt ein leichtes "Anheben" beim Hover */
}

/* 📊 Table for displaying parsed member data */
.member-upload table {
  margin-top: 1.5rem;
  width: 100%;
  border-collapse: collapse;
  background: #fafafa;
}

/* 🧱 Basic cell styles for th and td */
.member-upload th,
.member-upload td {
  padding: 0.6rem;
  border: 1px solid #ccc;
  text-align: left;
}

/* 📌 Header row styling */
.member-upload th {
  background-color: #f0f0f0;
}

/* 📏 Wraps long cell content to keep table layout clean */
.member-upload .cell-wrap {
  max-width: 200px;   
  word-break: break-word; 
  white-space: normal;
}

/* 📏 Wraps long result cells' content to keep table layout clean */
.member-upload .result-wrap {
  max-width: 250px;   
  word-break: break-word; 
  white-space: normal;
}


/* ✅ Status color classes based on HTTP response codes */

/* 🟢 200 OK: Successfully created */
.member-upload .status-200 {
  background-color: #1e7e34;
  color: white;
}

/* 🟢 2xx Success: Other successful responses */
.member-upload .status-2xx {
  background-color: #c3e6cb;
  color: #155724;
}

/* 🔴 401 Unauthorized: Invalid token */
.member-upload .status-401 {
  background-color: #f8d7da;
  color: #721c24;
}

/* 🟡 409 Conflict: Token already assigned to a user */
.member-upload .status-409 {
  background-color: #ffeeba;
  color: #856404;
}

/* 🟠 410 Gone: Account was deleted voluntarily */
.member-upload .status-410 {
  background-color: #f9d6b8;
  color: #7b4b17;
}

/* 🔴 422 Unprocessable Entity: Invalid role */
.member-upload .status-422 {
  background-color: #f5c6cb;
  color: #721c24;
}

/* 🔴 500 Internal Server Error: Creation failed */
.member-upload .status-500 {
  background-color: #f5c6cb;
  color: #721c24;
}


/* 🔄 Animated spinner used while processing */
.member-upload .spinner {
  margin: 1rem 0 1rem 3rem;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #2152E4;         /* CI Purple */
  border-top-color: #2152E4;          /* CI Blue */
  border-right-color: #7C26A6;        /* Lighter purple */
  border-bottom-color: #7C26A6;       /* Lighter blue */
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: spin 1.3s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
