:root{
  --bg:#0f1220;
  --card:#171a2b;
  --text:#e8e9f0;
  --muted:#b7b9c8;

  --pending:#f5c542;
  --accepted:#3aa0ff;
  --green:#38d27a;
  --rejected:#ff4b4b;

  --border: rgba(255,255,255,.08);
}

*{ box-sizing:border-box; }
body{
	height: 100%;
  min-height: 100vh;
background: #0A1729;
background: -moz-radial-gradient(center, #0A1729 0%, #051C0F 100%, #0A1729 100%);
background: -webkit-radial-gradient(center, #0A1729 0%, #051C0F 100%, #0A1729 100%);
background: radial-gradient(ellipse at center, #0A1729 0%, #051C0F 100%, #0A1729 100%);
  color:var(--text);
}

.container{
  width:min(980px, 92vw);
  margin: 28px auto 40px;
}

.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 18px;
}

h1{
  font-size: clamp(20px, 2.2vw, 28px);
  margin:0;
}

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items:end;
}

label{
  display:block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

input, select, textarea{
  width:100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  outline:none;
}

textarea{ min-height: 90px; resize: vertical; }

button, .btn{
  border:0;
  border-radius: 12px;
  padding: 11px 14px;
  font-weight: 650;
  cursor:pointer;
  background: rgba(255,255,255,.12);
  color: var(--text);
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

button:hover, .btn:hover{ background: rgba(255,255,255,.18); }

.notice{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--muted);
}

.notice.error{ color: #ffd0d0; border-color: rgba(255,75,75,.35); }
.notice.ok{ color: #c9ffe1; border-color: rgba(56,210,122,.35); }

.list{
  margin-top: 14px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.item{
  display:flex;
  gap:12px;
  align-items:flex-start;
  justify-content:space-between;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}

.item-left{ min-width: 0; }
.item-title{
  font-weight: 750;
  line-height: 1.2;
  word-break: break-word;
}
.item-meta{
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
  word-break: break-word;
}
.badge{
  white-space:nowrap;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.badge.pending{ background: rgba(245,197,66,.18); color: #ffe7a3; border-color: rgba(245,197,66,.35); }
.badge.accepted{ background: rgba(58,160,255,.18); color: #cfe8ff; border-color: rgba(58,160,255,.35); }
.badge.queued, .badge.played{ background: rgba(56,210,122,.16); color: #c9ffe1; border-color: rgba(56,210,122,.35); }
.badge.rejected{ background: rgba(255,75,75,.14); color: #ffd0d0; border-color: rgba(255,75,75,.35); }

.reason{
  margin-top: 6px;
  font-size: 13px;
  color: #ffd0d0;
}

.small{
  font-size: 12px;
  color: var(--muted);
}

/* RESPONSYWNOŚĆ */
@media (max-width: 720px){
  .grid{ grid-template-columns: 1fr; }
}
