/* SAM Bans Plugin Styles */
/* Uses variables from the main theme */

.sam-bans-container {
  background-color: var(--dark-gray);
  min-height: 100vh;
  padding: var(--spacing-lg);
  color: var(--lighter-gray);
  font-family: var(--font-family-base);
}

/* Header Section */
.sam-bans-header {
  margin-bottom: var(--spacing-xxl);
}

.sam-bans-title-section {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.sam-bans-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
}

.sam-bans-title i {
  color: var(--primary-color);
}

.sam-bans-subtitle {
  font-size: 1.1rem;
  color: var(--light-gray);
  margin: 0;
}

/* Statistics Cards */
.sam-bans-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xxl);
}

.sam-stat-card {
  background: var(--dark-gray-lighter);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  box-shadow: var(--box-shadow-md);
  transition: var(--transition-base);
  border: 1px solid var(--dark-gray-lightest);
}

.sam-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-lg);
  border-color: var(--primary-color);
}

.sam-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.sam-stat-icon.sam-stat-danger {
  background: rgba(255, 59, 48, 0.2);
  color: var(--danger);
}

.sam-stat-icon.sam-stat-warning {
  background: rgba(255, 193, 7, 0.2);
  color: var(--warning);
}

.sam-stat-icon.sam-stat-info {
  background: rgba(90, 200, 250, 0.2);
  color: var(--info);
}

.sam-stat-icon.sam-stat-success {
  background: rgba(76, 217, 100, 0.2);
  color: var(--success);
}

.sam-stat-content {
  flex: 1;
}

.sam-stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.sam-stat-label {
  font-size: 0.9rem;
  color: var(--light-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Controls Section */
.sam-bans-controls {
  background: var(--dark-gray-lighter);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  border: 1px solid var(--dark-gray-lightest);
}

.sam-controls-left,
.sam-controls-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.sam-filter-group {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.sam-filter-label {
  color: var(--light-gray);
  font-weight: 500;
  white-space: nowrap;
}

.sam-filter-select {
  background: var(--dark-gray-lightest);
  color: var(--white);
  border: 1px solid var(--mid-gray);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.sam-filter-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(75, 139, 255, 0.2);
}

.sam-filter-select:hover {
  border-color: var(--primary-light);
}

.sam-search-container {
  display: flex;
  align-items: center;
  background: var(--dark-gray-lightest);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--mid-gray);
  overflow: hidden;
  transition: var(--transition-fast);
}

.sam-search-container:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(75, 139, 255, 0.2);
}

.sam-search-input {
  background: transparent;
  border: none;
  color: var(--white);
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 0.9rem;
  width: 300px;
  outline: none;
}

.sam-search-input::placeholder {
  color: var(--mid-gray);
}

.sam-search-button {
  background: var(--primary-color);
  border: none;
  color: var(--white);
  padding: var(--spacing-sm) var(--spacing-md);
  cursor: pointer;
  transition: var(--transition-fast);
}

.sam-search-button:hover {
  background: var(--primary-dark);
}

.sam-actions {
  display: flex;
  gap: var(--spacing-sm);
}

/* Buttons */
.sam-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius-md);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.sam-btn.sam-btn-sm {
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: 0.8rem;
}

.sam-btn.sam-btn-primary {
  background: var(--primary-color);
  color: var(--white);
}

.sam-btn.sam-btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.sam-btn.sam-btn-secondary {
  background: var(--dark-gray-lightest);
  color: var(--lighter-gray);
}

.sam-btn.sam-btn-secondary:hover {
  background: var(--mid-gray);
  color: var(--white);
}

.sam-btn.sam-btn-info {
  background: var(--info);
  color: var(--white);
}

.sam-btn.sam-btn-info:hover {
  background: #4A9FD1;
  color: var(--white);
}

.sam-btn.sam-btn-danger {
  background: var(--danger);
  color: var(--white);
}

.sam-btn.sam-btn-danger:hover {
  background: #E6342A;
  color: var(--white);
}

/* Table Styles */
.sam-bans-table-container {
  background: var(--dark-gray-lighter);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow-md);
  border: 1px solid var(--dark-gray-lightest);
}

.sam-table-wrapper {
  overflow-x: auto;
}

.sam-bans-table {
  width: 100%;
  border-collapse: collapse;
}

.sam-bans-table thead {
  background: var(--dark-gray-lightest);
}

.sam-bans-table th {
  padding: var(--spacing-md);
  text-align: left;
  font-weight: 600;
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--primary-color);
}

.sam-th-player { 
  min-width: 180px; 
}

.sam-th-steamid { 
  min-width: 150px; 
}

.sam-th-reason { 
  min-width: 200px; 
}

.sam-th-admin { 
  min-width: 120px; 
}

.sam-th-duration { 
  min-width: 120px; 
}

.sam-th-status { 
  min-width: 100px; 
}

.sam-th-actions { 
  min-width: 100px; 
  text-align: center; 
}

.sam-bans-table tbody tr {
  border-bottom: 1px solid var(--dark-gray-lightest);
  transition: var(--transition-fast);
}

.sam-bans-table tbody tr:hover {
  background: rgba(75, 139, 255, 0.1);
}

.sam-ban-row.sam-ban-permanent {
  background: rgba(255, 59, 48, 0.05);
}

.sam-ban-row.sam-ban-expired {
  opacity: 0.7;
}

.sam-bans-table td {
  padding: var(--spacing-md);
  color: var(--lighter-gray);
  font-size: 0.9rem;
  vertical-align: middle;
}

.sam-td-actions {
  text-align: center;
}

/* Player Info */
.sam-player-info {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.sam-player-name {
  font-weight: 500;
  color: var(--white);
}

.sam-steam-link {
  color: var(--info);
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--transition-fast);
}

.sam-steam-link:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

/* SteamID */
.sam-steamid {
  background: var(--dark-gray-lightest);
  color: var(--primary-light);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-sm);
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
}

/* Reason */
.sam-reason {
  color: var(--lighter-gray);
  line-height: 1.4;
}

/* Admin Info */
.sam-admin-info {
  color: var(--light-gray);
  font-weight: 500;
}

/* Duration */
.sam-permanent {
  color: var(--danger);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.sam-time-remaining {
  color: var(--warning);
  font-weight: 500;
}

.sam-expired {
  color: var(--mid-gray);
  font-style: italic;
}

/* Status Badges */
.sam-status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.sam-status-badge.sam-status-permanent {
  background: rgba(255, 59, 48, 0.2);
  color: var(--danger);
  border: 1px solid var(--danger);
}

.sam-status-badge.sam-status-active {
  background: rgba(255, 193, 7, 0.2);
  color: var(--warning);
  border: 1px solid var(--warning);
}

.sam-status-badge.sam-status-expired {
  background: rgba(154, 154, 154, 0.2);
  color: var(--mid-gray);
  border: 1px solid var(--mid-gray);
}

/* Action Buttons */
.sam-action-buttons {
  display: flex;
  gap: var(--spacing-xs);
  justify-content: center;
}

/* Empty State */
.sam-empty-state {
  text-align: center;
  padding: var(--spacing-xxl);
  color: var(--light-gray);
}

.sam-empty-icon {
  font-size: 4rem;
  color: var(--mid-gray);
  margin-bottom: var(--spacing-lg);
}

.sam-empty-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--spacing-sm);
}

.sam-empty-text {
  font-size: 1rem;
  margin-bottom: var(--spacing-lg);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Pagination */
.sam-pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--spacing-lg);
  background: var(--dark-gray-lightest);
  border-top: 1px solid var(--dark-gray-lightest);
}

.sam-pagination-wrapper .pagination {
  margin: 0;
}

.sam-pagination-wrapper .pagination-button {
  background-color: var(--dark-gray-lighter);
  color: var(--lighter-gray);
  border: 1px solid var(--mid-gray);
}

.sam-pagination-wrapper .pagination-button:hover {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.sam-pagination-wrapper .pagination-button.active {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.sam-pagination-wrapper .pagination-button.disabled {
  background-color: var(--dark-gray-lightest);
  color: var(--mid-gray);
  border-color: var(--dark-gray-lightest);
}

/* Responsive Design */
@media (max-width: 768px) {
  .sam-bans-container {
    padding: var(--spacing-md);
  }

  .sam-bans-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .sam-controls-left,
  .sam-controls-right {
    justify-content: center;
  }

  .sam-search-container .sam-search-input {
    width: 100%;
  }

  .sam-bans-stats {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .sam-bans-title {
    font-size: 2rem;
    flex-direction: column;
    gap: var(--spacing-sm);
  }
}

@media (max-width: 576px) {
  .sam-bans-table {
    font-size: 0.8rem;
  }

  .sam-bans-table th,
  .sam-bans-table td {
    padding: var(--spacing-sm);
  }

  .sam-player-info {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
  }

  .sam-action-buttons {
    flex-direction: column;
  }
}