/* Admin Panel Styles */
.admin-panel-container {
  min-height: 100vh;
  background: #ffffff;
  position: relative;
}

.admin-panel-header {
  background: linear-gradient(135deg, #c8102e 0%, #13294b 100%);
  color: #ffffff;
  padding: 10px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-panel-main {
  padding: 40px 0;
}

.admin-panel-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.admin-panel-header-section {
  text-align: center;
  margin-bottom: 40px;
}

.admin-panel-header-section h2 {
  color: #13294b;
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.admin-panel-header-section p {
  color: #b1b3b3;
  font-size: 1.2rem;
  margin: 0;
}

.roles-legend {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.roles-legend h3 {
  color: #13294b;
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.role-description {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.role-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.role-description p {
  color: #b1b3b3;
  font-size: 0.9rem;
  margin: 0;
}

.players-management {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.players-management h3 {
  color: #13294b;
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.admin-players-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-players-table thead tr {
  background: linear-gradient(135deg, #c8102e 0%, #13294b 100%);
}

.admin-players-table th {
  background: none;
  color: #ffffff;
  padding: 15px 12px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
  border: none;
}

.admin-players-table th:first-child {
  border-top-left-radius: 12px;
}

.admin-players-table th:last-child {
  border-top-right-radius: 12px;
}

.admin-players-table td {
  padding: 15px 12px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9rem;
  color: #000000;
}

.admin-players-table tbody tr:hover {
  background: #f8f9fa;
}

.role-selector {
  padding: 6px 10px;
  border: 2px solid #b1b3b3;
  border-radius: 6px;
  background: #ffffff;
  color: #13294b;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.role-selector:focus {
  outline: none;
  border-color: #c8102e;
  box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.1);
}

.stats-summary {
  display: flex;
  gap: 8px;
  font-size: 0.8rem;
}

.stats-summary span {
  background: #f8f9fa;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
  color: #13294b;
}

.action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.edit-player-btn,
.stats-player-btn,
.delete-player-btn {
  background: linear-gradient(135deg, #c8102e 0%, #13294b 100%);
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stats-player-btn {
  background: linear-gradient(135deg, #13294b 0%, #c8102e 100%);
}

.delete-player-btn {
  background: linear-gradient(135deg, #dc3545 0%, #a71e2a 100%);
}

.delete-player-btn:disabled {
  background: #b1b3b3;
  cursor: not-allowed;
  opacity: 0.6;
}

.delete-player-btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

.edit-player-btn:hover,
.stats-player-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(200, 16, 46, 0.3);
}

.delete-player-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .admin-panel-content {
    padding: 0 15px;
  }
  
  .admin-panel-header-section h2 {
    font-size: 2rem;
  }
  
  .roles-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .players-table-container {
    overflow-x: auto;
  }
  
  .admin-players-table {
    min-width: 800px;
  }

  .action-buttons {
    flex-direction: column;
    gap: 4px;
  }
  
  .edit-player-btn,
  .stats-player-btn,
  .delete-player-btn {
    width: 100%;
    justify-content: center;
  }
}