/* ═══════════════════════════════════════════════════════════
   ARENA CROSS — V2 NEW COMPONENTS
   Adicione ao final do css/admin.css ou inclua como arquivo separado.
   ═══════════════════════════════════════════════════════════ */

/* ── Login: mensagem de sucesso ── */
.login-success {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 16px;
  display: none;
}
.login-success.show { display: block; }
.login-success strong { font-weight: 600; }

/* ── Composer (montagem de sessão) ── */
.composer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
  min-height: 360px;
}

@media (max-width: 720px) {
  .composer-grid { grid-template-columns: 1fr; }
}

.composer-section-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--text-strong, #111);
}

.composer-library, .composer-session {
  background: var(--bg-soft, #f8f8f8);
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.library-list {
  flex: 1;
  overflow-y: auto;
  max-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.library-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.library-item:hover {
  border-color: var(--primary, #8B3FE8);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}
.library-item.used {
  opacity: 0.6;
  cursor: default;
  background: #fafafa;
}
.library-item.used:hover {
  border-color: var(--border, #e5e5e5);
  box-shadow: none;
  transform: none;
}

/* ── Working list (WODs adicionados à sessão) ── */
.working-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
}

.empty-working {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  padding: 30px 16px;
  border: 2px dashed var(--border, #e5e5e5);
  border-radius: 8px;
}

.working-item {
  display: grid;
  grid-template-columns: auto auto 110px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 8px;
  transition: opacity 0.15s, transform 0.15s;
}
.working-item.dragging {
  opacity: 0.45;
  transform: scale(0.99);
}

.drag-handle {
  cursor: grab;
  color: var(--text-muted, #999);
  font-weight: bold;
  letter-spacing: -2px;
  user-select: none;
}
.drag-handle:active { cursor: grabbing; }

.working-num {
  background: var(--primary, #8B3FE8);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  flex-shrink: 0;
}

.working-label {
  height: 32px;
  padding: 4px 8px;
  font-size: 0.82rem;
}

.working-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.working-info strong {
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.working-info .text-muted {
  font-size: 0.75rem;
}

.working-actions {
  display: flex;
  gap: 4px;
}

.row-action-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ── Sessions: blocos de WODs ── */
.session-wod-block {
  border-left: 3px solid var(--primary, #8B3FE8);
  padding: 10px 14px;
  margin: 10px 0;
  background: rgba(139, 63, 232, 0.04);
  border-radius: 0 6px 6px 0;
}

.session-wod-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.session-wod-num {
  background: var(--primary, #8B3FE8);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
}

.session-wod-block .wod-body {
  white-space: pre-wrap;
  font-family: inherit;
  margin: 0;
  font-size: 0.88rem;
  color: var(--text, #333);
}

/* ── Approval list extras ── */
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-secondary { background: #E5E7EB; color: #374151; }
.badge-info { background: #DBEAFE; color: #1E40AF; }
.badge-success { background: #D1FAE5; color: #065F46; }

.btn-sm { padding: 6px 12px; font-size: 0.82rem; }
.btn-danger { background: #DC2626; color: #fff; border: 1px solid #B91C1C; }
.btn-danger:hover { background: #B91C1C; }

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted, #999);
  margin-top: 4px;
}
.form-hint a { color: var(--primary, #8B3FE8); }

/* ── Nav badge para contagem de pendentes ── */
.nav-badge {
  background: #DC2626;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
