/* ====== PANEL ADMINA – r2design ====== */

body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Outfit', sans-serif;
  color: #fff;
}

/* GRID LAYOUT */
.admin-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr;
  gap: 30px;
  margin-top: 20px;
}

/* FORM FIELDS */
.field {
  margin-bottom: 10px;
}

.field label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
  opacity: 0.8;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(15,15,30,0.7);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

/* ROWS */
.row {
  display: flex;
  gap: 10px;
}

.row .field {
  flex: 1;
}

/* BUTTONS */
.btn {
  display: inline-block;
  margin-top: 10px;
}

/* SET LIST */
.sets-list {
  max-height: 400px;
  overflow-y: auto;
}

.set-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(15,15,30,0.7);
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.set-item span {
  display: inline-block;
  margin-right: 8px;
  opacity: 0.9;
}

/* STATUS MESSAGES */
.status {
  margin-top: 10px;
  font-size: 0.9rem;
  opacity: 0.9;
}

.status.ok {
  color: #7CFFB2;
}

.status.err {
  color: #FF7C7C;
}

/* CARD */
.card {
  background: rgba(20,20,40,0.6);
  padding: 20px;
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

/* ============================
   PRZEŁĄCZNIK PROMPT – WERSJA BUTTON
   ============================ */

.prompt-buttons {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.prompt-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(120,150,255,0.35);
  background: rgba(20,25,45,0.7);
  color: #dbe4ff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.prompt-btn:hover {
  opacity: 0.9;
}

.prompt-btn.active {
  background: rgba(100,140,255,0.35);
  border-color: rgba(100,140,255,0.55);
  color: #ffffff;
}

/* textarea */
.prompt-area {
  width: 100%;
  min-height: 110px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(120,150,255,0.25);
  background: rgba(18, 22, 40, 0.92);
  color: #ffffff;
  font-size: 14px;
  resize: vertical;
  outline: none;
}

.prompt-area:focus {
  border-color: rgba(120,150,255,0.55);
}

.progress-container {
  width: 100%;
  height: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px;
  margin-bottom: 10px;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #6ea8ff, #4d7dff);
  transition: width 0.15s linear;
}

.collapsible {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    background: rgba(15,15,30,0.7); /* dopasowane do Twojego UI */
    backdrop-filter: blur(6px);
}

.collapsible-header {
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(20,20,40,0.6); /* dopasowane do .card */
    font-weight: 600;
    user-select: none;
    color: #dbe4ff;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.collapsible-header:hover {
    background: rgba(30,30,55,0.7);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out;
    padding: 0 14px;
}

.collapsible.open .collapsible-content {
    padding: 10px 14px;
}

.collapsible .arrow {
    transition: transform 0.25s ease;
    opacity: 0.8;
}

.collapsible.open .arrow {
    transform: rotate(180deg);
}

select optgroup {
  background: rgba(15,15,30,0.9);
  color: #9aa4c2;
  font-style: normal;
  font-weight: 600;
  padding: 4px 0;
}

#settingsPanel.disabled {
  opacity: 0.4;
  pointer-events: none;
  filter: grayscale(40%);
}
