/* ════════════════════════════════════════════════════════════════════════════
   ADMIN PAGE STYLES
   ════════════════════════════════════════════════════════════════════════════ */

.admin-page {
  background: #0a0a0a;
  min-height: 100vh;
  padding: 20px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #d4af37;
}

.admin-header h1 {
  color: #d4af37;
  font-size: 28px;
}

.logout-btn {
  padding: 10px 20px;
  background: #ff4d4d;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.logout-btn:hover {
  background: #ff6b6b;
  transform: translateY(-2px);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: #151515;
  border: 2px solid #d4af37;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.stat-value {
  color: #d4af37;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 10px;
}

.stat-label {
  color: #888;
  font-size: 14px;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid #333;
  padding-bottom: 10px;
}

.admin-tab {
  padding: 10px 20px;
  background: #1a1a1a;
  border: 2px solid #444;
  border-radius: 8px;
  color: #888;
  cursor: pointer;
  transition: 0.3s;
}

.admin-tab:hover {
  border-color: #d4af37;
  color: #d4af37;
}

.admin-tab.active {
  background: #d4af37;
  color: #000;
  border-color: #d4af37;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s;
}

.panel {
  background: #151515;
  border: 2px solid #d4af37;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.panel h2 {
  color: #d4af37;
  margin-bottom: 15px;
  font-size: 20px;
}

.formula-box {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid #d4af37;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  color: #d4af37;
  font-size: 14px;
}

.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.search-bar input {
  flex: 1;
  padding: 12px;
  background: #000;
  border: 1px solid #444;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
}

.search-bar input:focus {
  border-color: #d4af37;
  outline: none;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, #d4af37, #f5d76e);
  color: #000;
}

.btn-success {
  background: #00cc66;
  color: #fff;
}

.btn-blue {
  background: #4fc3f7;
  color: #000;
}

.btn-danger {
  background: #ff4d4d;
  color: #fff;
}

.btn-orange {
  background: #ff9800;
  color: #fff;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-add {
  margin-top: 15px;
  width: 100%;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  color: #d4af37;
  font-size: 14px;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  background: #000;
  border: 1px solid #444;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #d4af37;
  outline: none;
}

.gift-form,
.ban-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  align-items: end;
}

.player-lock-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #666;
  background: #1a1a1a;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.player-lock-btn.is-unlocked {
  border-color: #00cc66;
  background: rgba(0, 204, 102, 0.15);
}

input.asset-locked {
  opacity: 0.55;
  cursor: not-allowed;
}

.player-row-locked td {
  opacity: 0.92;
}

.presence-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.presence-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.presence-status.is-online {
  color: #00cc66;
}

.presence-status.is-online .presence-dot {
  background: #00cc66;
  box-shadow: 0 0 8px rgba(0, 204, 102, 0.8);
}

.presence-status.is-offline {
  color: #ff4d4d;
}

.presence-status.is-offline .presence-dot {
  background: #ff4d4d;
  box-shadow: 0 0 8px rgba(255, 77, 77, 0.7);
}

.history-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 3fr 1fr;
  gap: 10px;
  padding: 10px;
  background: #1a1a1a;
  border-radius: 8px;
  margin-bottom: 10px;
  font-weight: bold;
  color: #d4af37;
}

@media (max-width: 768px) {
  .stats-row {
    grid-template-columns: 1fr 1fr;
  }
  
  .admin-tabs {
    flex-wrap: wrap;
  }
  
  .search-bar {
    flex-direction: column;
  }
  
  .gift-form,
  .ban-form {
    grid-template-columns: 1fr;
  }
  
  .history-header {
    grid-template-columns: 1fr;
    font-size: 12px;
  }
}