.container {
  background: #1e1e2f;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  padding: 30px 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  color: #f1f1f1;
}

h2 {
  font-size: 26px;
  color: #61dafb;
  margin-top: 0;
  text-align: center;
}

label {
  font-weight: 600;
  display: block;
  margin-top: 20px;
  margin-bottom: 6px;
  color: #ddd;
}

input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #444;
  box-sizing: border-box;
  background-color: #2a2a3d;
  color: #f1f1f1;
}

button {
  display: inline-block;
  color: white;
  font-size: 16px;
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background-color: #3399ff;
  transition: background 0.3s;
}

button:hover {
  background-color: #007fff;
}

#player-info {
  display: flex;
  align-items: center;
  background: #2a2a3d;
  border-radius: 12px;
  padding: 15px;
  margin-top: 20px;
  gap: 15px;
}

#player-info img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
}

#player-details {
  font-weight: bold;
  font-size: 16px;
  line-height: 1.4;
  color: #fff;
}

#captcha-img {
  max-height: 40px;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
}

#captcha-refresh {
  height: 40px;
  width: 40px;
}

#captcha-refresh.loading {
  animation: rotate 1s linear infinite;
  pointer-events: none;
  opacity: 0.7;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.redeem-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.redeem-row input[type="text"] {
  flex: 1;
  padding: 12px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #444;
  background-color: #2a2a3d;
  color: #f1f1f1;
  height: 40px; /* wymuszenie spójnej wysokości */
  box-sizing: border-box;
}

.redeem-row button {
  height: 40px;
  padding: 0 10px;
  font-size: 16px;
  border-radius: 10px;
  border: none;
  background-color: #3399ff;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.redeem-row button:hover {
  background-color: #007fff;
}

.admin-code-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-code-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-code-btn {
  color: white;
  font-size: 16px;
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background-color: #3399ff;
  transition: background 0.3s;
}

.admin-code-btn.expired {
  background-color: #aaa;
  color: #eee;
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

#message {
  margin-top: 20px;
  padding: 10px 15px;
  border-radius: 10px;
  font-weight: bold;
  background: #2a2a3d;
  color: #f1f1f1;
  border-left: 4px solid #61dafb;
}

#message.success {
  background-color: #253e2d;
  color: #00e676;
  border-left-color: #00e676;
}

#message.error {
  background-color: #3e1f1f;
  color: #ff1744;
  border-left-color: #ff1744;
}

pre {
  background: #2a2a3d;
  padding: 10px;
  border-radius: 10px;
  margin-top: 20px;
  font-size: 13px;
  max-height: 300px;
  overflow-y: auto;
  color: #e0e0e0;
}
#toast-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
}

.toast {
  padding: 12px 18px;
  margin-bottom: 10px;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  font-family: sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: fadeOut 0.5s ease-in-out 5s forwards;
  opacity: 1;
}

.toast.info { background-color: #3498db; }
.toast.success { background-color: #27ae60; }
.toast.error { background-color: #e74c3c; }

@keyframes fadeOut {
  to { opacity: 0; transform: translateY(-10px); }
}
