/* ============================================================
   BEETEAM — admin.css
   Estilos para el panel de administración completo
============================================================ */

@import url('./components.css');

/* ==================== NOTIFICATION TOASTS ==================== */
.notif-toast {
  position: fixed; bottom: 80px; right: 24px; z-index: 99999;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 20px; font-size: 0.88rem;
  color: var(--white); backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  opacity: 0; transform: translateX(20px);
  transition: opacity .3s, transform .3s;
  max-width: 320px;
}
.notif-toast.show { opacity: 1; transform: translateX(0); }
.notif-toast.ok   { border-color: rgba(87,242,135,0.4); background: rgba(87,242,135,0.08); }
.notif-toast.error{ border-color: rgba(255,80,80,0.4);  background: rgba(255,80,80,0.08);  color: #ff7070; }
.notif-toast.info { border-color: var(--border); }

/* ==================== INLINE FORM INPUTS (table) ==================== */
.inline-input {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 7px; padding: 7px 12px; color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 0.85rem; outline: none;
  transition: border-color .2s; width: 100%; max-width: 160px;
}
.inline-input:focus { border-color: var(--accent); }
.inline-select {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 7px; padding: 7px 12px; color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 0.85rem; outline: none;
  transition: border-color .2s; cursor: pointer;
}
.inline-select:focus { border-color: var(--accent); }

/* ==================== ADMIN STATS OVERVIEW ==================== */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.admin-stats-loading {
  color: var(--text-dim); padding: 40px; text-align: center; font-size: 0.9rem;
}
.admin-stat-card {
  background: var(--bg4); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px 22px; text-align: center;
  transition: border-color .3s, transform .3s;
}
.admin-stat-card:hover { border-color: rgba(168,85,247,0.4); transform: translateY(-2px); }
.admin-stat-card.red { border-color: rgba(255,80,80,0.2); }
.admin-stat-card.red:hover { border-color: rgba(255,80,80,0.5); }
.admin-stat-icon { font-size: 1.8rem; margin-bottom: 10px; }
.admin-stat-num  { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; color: var(--accent); margin-bottom: 4px; }
.admin-stat-card.red .admin-stat-num { color: #ff7070; }
.admin-stat-label{ font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }

/* ==================== ADMIN RECENT LOG (overview) ==================== */
.admin-recent-log {
  background: var(--bg4); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px 24px;
}
.admin-recent-log h4 {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.9rem;
  color: var(--white); margin-bottom: 14px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.log-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.83rem;
}
.log-row:last-child { border-bottom: none; }
.log-action {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 3px 8px; border-radius: 6px;
  background: rgba(168,85,247,0.15); color: var(--accent);
  white-space: nowrap;
}
.log-action.delete_chat, .log-action.ban_user { background: rgba(255,80,80,0.12); color: #ff7070; }
.log-action.add_member, .log-action.add_rank, .log-action.add_pic { background: rgba(87,242,135,0.1); color: #57F287; }
.log-action.unban_user { background: rgba(87,242,135,0.1); color: #57F287; }
.log-admin { color: var(--white); font-weight: 600; }
.log-target { color: var(--text-dim); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-time { color: var(--text-dim); font-size: 0.72rem; white-space: nowrap; margin-left: auto; }

/* ==================== ADMIN CHAT LIST ==================== */
.admin-chat-list {
  display: flex; flex-direction: column; gap: 0;
  max-height: 600px; overflow-y: auto;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg4);
}
.admin-chat-list::-webkit-scrollbar { width: 4px; }
.admin-chat-list::-webkit-scrollbar-thumb { background: var(--orange-dim); border-radius: 99px; }

.admin-chat-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background .2s;
}
.admin-chat-row:last-child { border-bottom: none; }
.admin-chat-row:hover { background: rgba(168,85,247,0.04); }
.admin-chat-row.deleted { opacity: 0.45; }

.admin-action-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 7px; font-size: 0.75rem; font-weight: 600;
  cursor: pointer; border: 1px solid; transition: background .2s; white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
}
.admin-action-btn.del {
  background: rgba(255,80,80,0.1); border-color: rgba(255,80,80,0.25); color: #ff7070;
}
.admin-action-btn.del:hover { background: rgba(255,80,80,0.22); }
.admin-action-btn.ban {
  background: rgba(255,140,0,0.1); border-color: rgba(255,140,0,0.25); color: #ffa040;
}
.admin-action-btn.ban:hover { background: rgba(255,140,0,0.22); }

/* Chat moderation buttons (inline in chat) */
.chat-mod-btn {
  background: none; border: none; cursor: pointer; font-size: 0.8rem;
  color: var(--text-dim); padding: 1px 4px; border-radius: 4px;
  transition: color .2s, background .2s; line-height: 1;
}
.chat-mod-btn:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.chat-mod-btn.ban:hover { color: #ffa040; }

/* ==================== ADMIN BADGES ==================== */
.admin-badge {
  display: inline-block; font-size: 0.62rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 2px 7px; border-radius: 5px;
  background: rgba(168,85,247,0.15); color: var(--accent);
  border: 1px solid rgba(168,85,247,0.25);
}
.admin-badge.red { background: rgba(255,80,80,0.12); color: #ff7070; border-color: rgba(255,80,80,0.25); }
.admin-badge.green { background: rgba(87,242,135,0.1); color: #57F287; border-color: rgba(87,242,135,0.25); }

/* ==================== EVENTO FORM ==================== */
.evento-form {
  background: var(--bg4); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px; max-width: 640px;
}

/* ==================== ADD MEMBER GRID ==================== */
.add-member-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr auto;
  gap: 12px; align-items: end;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
  .admin-stats-grid { grid-template-columns: repeat(3, 1fr); }
  .add-member-grid  { grid-template-columns: 1fr 1fr; }
  .pics-meta-grid   { grid-template-columns: 1fr; }
  .dashboard-header { flex-direction: column; }
  .tab-logo > div   { grid-template-columns: 1fr !important; }
}
@media (max-width: 600px) {
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-tab span    { display: none; }
}

/* ==================== TICKETS ==================== */
.admin-ticket-row {
  background: var(--bg4); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 20px; margin-bottom: 12px;
  transition: border-color .2s;
}
.admin-ticket-row:hover { border-color: rgba(168,85,247,0.4); }
.admin-ticket-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 10px;
}
.admin-ticket-nick {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 0.9rem; color: var(--white);
}
.admin-ticket-type {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 2px 8px; border-radius: 6px;
  background: rgba(168,85,247,0.15); color: var(--accent);
  border: 1px solid rgba(168,85,247,0.25);
}
.admin-ticket-status {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em;
}
.admin-ticket-subject {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 0.88rem; color: var(--white); margin-bottom: 6px;
}
.admin-ticket-desc {
  font-size: 0.85rem; color: var(--text-dim); line-height: 1.6;
  white-space: pre-wrap; word-break: break-word;
}