/* Whitelist Management Styles - Professional Design */

/* Enhanced Page Header */
#whitelist-page .page-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

#whitelist-page .page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

#whitelist-page .page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
}

/* Enhanced Tab Design */
#whitelist-page .admin-tabs {
  background: var(--card-background);
  border-radius: 15px;
  padding: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
}

#whitelist-page .tab-btn {
  background: var(--card-background);
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

#whitelist-page .tab-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s;
}

#whitelist-page .tab-btn:hover::before {
  left: 100%;
}

#whitelist-page .tab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

#whitelist-page .tab-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* Enhanced Section Headers */
#whitelist-page .section-header {
  background: var(--card-background);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid #667eea;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  border: 1px solid var(--border-color);
}

#whitelist-page .section-header h2 {
  color: var(--text-color);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
}

.whitelist-requests-list {
  margin-top: 20px;
}

.whitelist-request-item {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.whitelist-request-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: width 0.3s ease;
}

.whitelist-request-item:hover::before {
  width: 8px;
}

.whitelist-request-item:hover {
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
  transform: translateY(-5px);
  border-color: #667eea;
  background: var(--surface-hover);
}

.request-info {
  flex: 1;
}

.player-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.server-name {
  font-size: 1.2rem;
  font-weight: bold;
  padding: 0.5rem 1rem;
  background: var(--card-background);
  color: var(--text-secondary);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  margin-bottom: 5px;
}

.request-time {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.request-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.request-status.pending {
  background-color: #fef3c7;
  color: #92400e;
}

.request-status.approved {
  background-color: #d1fae5;
  color: #065f46;
}

.request-status.rejected {
  background-color: #fee2e2;
  color: #991b1b;
}

.player-ip {
  font-size: 12px;
  color: var(--text-muted);
  font-family: monospace;
}

.request-actions {
  display: flex;
  gap: 10px;
}

.request-response {
  text-align: right;
  font-size: 12px;
  color: var(--text-secondary);
}

.response-time {
  margin-bottom: 2px;
}

.responded-by {
  margin-bottom: 2px;
}

.response-reason {
  font-style: italic;
}

/* Server Whitelist Styles */

.whitelist-players-list {
  margin-top: 20px;
}

.whitelist-player-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.whitelist-player-item:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.player-info {
  flex: 1;
}

.player-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.player-uuid {
  font-size: 12px;
  color: var(--text-muted);
  font-family: monospace;
}

.player-actions {
  display: flex;
  gap: 10px;
}

/* Server Select Styles */

#server-select {
  min-width: 200px;
  margin-right: 10px;
}

/* Enhanced Empty State Styles */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  background: var(--card-background);
  border-radius: 20px;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.empty-state::before {
  content: "📋";
  font-size: 64px;
  display: block;
  margin-bottom: 20px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.empty-state::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  animation: rotate 10s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.empty-state p {
  font-size: 1rem;
  margin: 0;
  opacity: 0.8;
}

/* Responsive Design */

@media (max-width: 768px) {
  .whitelist-request-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .request-actions {
    width: 100%;
    justify-content: flex-end;
  }
  
  .whitelist-player-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .player-actions {
    width: 100%;
    justify-content: flex-end;
  }
  
  #server-select {
    min-width: 150px;
  }
}

/* Animation for new requests */

.whitelist-request-item.new {
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Status badges with icons */

.request-status.pending::before {
  content: "⏳ ";
}

.request-status.approved::before {
  content: "✅ ";
}

.request-status.rejected::before {
  content: "❌ ";
}

/* Enhanced Button Styles */
.approve-whitelist-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  color: white;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.approve-whitelist-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.approve-whitelist-btn:hover::before {
  left: 100%;
}

.approve-whitelist-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.reject-whitelist-btn {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  color: white;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.reject-whitelist-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.reject-whitelist-btn:hover::before {
  left: 100%;
}

.reject-whitelist-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.remove-player-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  color: white;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.remove-player-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.remove-player-btn:hover::before {
  left: 100%;
}

.remove-player-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.delete-player-db-btn {
  background-color: #f59e0b;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.delete-player-db-btn:hover {
  background-color: #d97706;
  transform: scale(1.05);
}

.delete-player-db-btn i {
  font-size: 10px;
}

/* Enhanced Loading States */
.whitelist-requests-list.loading,
.whitelist-players-list.loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.whitelist-requests-list.loading::after,
.whitelist-players-list.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.whitelist-requests-list.loading::before,
.whitelist-players-list.loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 11;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Enhanced Status Badges */
.request-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.request-status::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.request-status:hover::before {
  left: 100%;
}

.request-status.pending {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border: 1px solid #f59e0b;
}

.request-status.approved {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border: 1px solid #10b981;
}

.request-status.rejected {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
  border: 1px solid #ef4444;
} 