/* ==========================================================================
   BluebirdRP — Router, Discord OAuth & Planning Staff Espace Admin
   ========================================================================== */

/* Bouton Discord & Statut dans la Navbar */
.bb-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 12px;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.35);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.bb-auth-badge:hover {
  background: rgba(88, 101, 242, 0.25);
  border-color: rgba(88, 101, 242, 0.6);
  transform: translateY(-1px);
}
.bb-auth-badge img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #5865f2;
  object-fit: cover;
}
.bb-auth-badge .bb-role-tag {
  background: #2563eb;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 6px;
}

/* Modale Espace Admin & Planning */
.bb-admin-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 7, 12, 0.94);
  backdrop-filter: blur(8px);
  animation: bbFadeIn 0.2s ease-out both;
}

.bb-admin-modal {
  position: relative;
  width: min(1180px, 98vw);
  max-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
  background: #0f121a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(59, 130, 246, 0.15);
  overflow: hidden;
  animation: bbSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.bb-admin-header {
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: #131722;
}

.bb-admin-header-title {
  display: flex;
  align-items: center;
  gap: 14px;
}
.bb-admin-header-title .bb-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(88, 101, 242, 0.3));
  border: 1px solid rgba(59, 130, 246, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
}
.bb-admin-header-title h2 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
}
.bb-admin-header-title p {
  font-size: 12px;
  color: #94a3b8;
  margin: 2px 0 0 0;
}

.bb-admin-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.bb-admin-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ef4444;
}

.bb-admin-body {
  padding: 24px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Grille du Formulaire Ajout Planning */
.bb-schedule-form-card {
  background: #141824;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 20px 24px;
}
.bb-schedule-form-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 14px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bb-schedule-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  align-items: flex-end;
}

.bb-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bb-form-group label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bb-form-group input, .bb-form-group select {
  background: #0b0d13;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.bb-form-group input:focus, .bb-form-group select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.bb-btn-submit {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.bb-btn-submit:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

/* Grille Visuelle des Plannings Staff */
.bb-schedule-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.bb-schedule-section-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}
.bb-schedule-section-header span {
  font-size: 12px;
  color: #64748b;
}

.bb-schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 16px;
}

.bb-staff-card {
  background: #141824;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s, border-color 0.2s;
}
.bb-staff-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

.bb-staff-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bb-staff-card-top img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #2563eb;
  object-fit: cover;
}
.bb-staff-card-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.bb-staff-card-info span {
  font-size: 11px;
  color: #3b82f6;
  font-weight: 600;
}

.bb-slot-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bb-slot-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: #0d1017;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  font-size: 12px;
}
.bb-slot-item .bb-slot-date {
  color: #94a3b8;
  font-weight: 500;
  min-width: 90px;
}
.bb-slot-item .bb-slot-hours {
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-family: monospace;
}
.bb-slot-item .bb-slot-delete {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s;
}
.bb-slot-item .bb-slot-delete:hover {
  color: #ef4444;
}

.bb-slot-empty {
  text-align: center;
  padding: 16px;
  font-size: 12px;
  color: #64748b;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}

/* Modale Erreur Config Discord */
.bb-banner-config {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #fde68a;
  font-size: 12px;
  line-height: 1.5;
}
.bb-banner-config strong {
  color: #fbbf24;
}

@keyframes bbFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes bbSlideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
