* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #2c3e50 0%, #3b4371 50%, #4a5568 100%);
  min-height: 100vh;
  color: #333;
}

.listing-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.listing-header {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.listing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.listing-logo {
  font-size: 1.8rem;
  font-weight: bold;
  background: linear-gradient(45deg, #4fd1c7, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.listing-nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.listing-nav-links a {
  text-decoration: none;
  color: #e2e8f0;
  font-weight: 500;
  transition: all 0.3s ease;
}

.listing-nav-links a:hover {
  color: #4fd1c7;
}

.listing-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #e2e8f0;
  font-size: 1.5rem;
  cursor: pointer;
}

.listing-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(30, 41, 59, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
}

.listing-mobile-menu.active {
  display: block;
}

.listing-mobile-menu a {
  display: block;
  color: #e2e8f0;
  text-decoration: none;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Page Header */
.games-page-header {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.games-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #e2e8f0;
}

.games-page-title {
  font-size: 2rem;
  font-weight: bold;
  color: white;
}

.games-add-btn {
  background: linear-gradient(45deg, #2d8a7f, #0891b2);
  color: #e2e8f0;
  border: none;
  padding: 1rem 2rem;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(45, 138, 127, 0.4);
  text-decoration: none;
  display: inline-block;
}

.games-add-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 138, 127, 0.6);
}

/* Table Container */
.games-table-container {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

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

.games-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.games-table th,
.games-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.games-table th {
  background: rgba(45, 55, 72, 0.5);
  color: #4fd1c7;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.games-table td {
  color: #e2e8f0;
  vertical-align: middle;
}

.games-table tbody tr:hover {
  background: rgba(45, 55, 72, 0.3);
}

.games-product-image {
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #2d8a7f, #0891b2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
  font-weight: bold;
  overflow: hidden;
}

.games-product-image img {
  height: inherit;
}

.games-product-title {
  font-weight: 600;
  max-width: 200px;
}

.games-platform-badge {
  background: linear-gradient(45deg, #2d8a7f, #0891b2);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  display: inline-block;
}

.games-condition-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.games-condition-excellent {
  background: rgba(39, 174, 96, 0.2);
  color: #27ae60;
}

.games-condition-good {
  background: rgba(241, 196, 15, 0.2);
  color: #f1c40f;
}

.games-condition-fair {
  background: rgba(230, 126, 34, 0.2);
  color: #e67e22;
}

.games-status-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.games-status-active {
  background: rgba(39, 174, 96, 0.2);
  color: #27ae60;
}

.games-status-inactive {
  background: rgba(156, 163, 175, 0.2);
  color: #9ca3af;
}

.games-status-sold {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
}

.games-price {
  font-weight: bold;
  color: #4fd1c7;
  font-size: 1.1rem;
}

.games-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.games-action-btn {
  padding: 0.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.games-btn-edit {
  background: rgba(52, 152, 219, 0.2);
  color: #3498db;
}

.games-btn-edit:hover {
  background: #3498db;
  color: white;
}

.games-btn-delete {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
}

.games-btn-delete:hover {
  background: #e74c3c;
  color: white;
}

/* Pagination */
.games-pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding: 1rem;
  background: rgba(45, 55, 72, 0.3);
  border-radius: 15px;
}

.games-pagination-info {
  color: #cbd5e0;
  font-size: 0.9rem;
}

.games-pagination {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.games-pagination-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  background: rgba(79, 209, 199, 0.1);
  color: #4fd1c7;
  border: 1px solid rgba(79, 209, 199, 0.3);
}

.games-pagination-btn:hover:not(:disabled) {
  background: #4fd1c7;
  color: white;
  transform: translateY(-1px);
}

.games-pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.games-pagination-btn.active {
  background: #4fd1c7;
  color: white;
}

.games-page-size-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #cbd5e0;
  font-size: 0.9rem;
}

.games-page-size-select {
  padding: 0.3rem 0.5rem;
  border: 1px solid rgba(79, 209, 199, 0.3);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 0.9rem;
}

.games-page-size-select:focus {
  outline: none;
  border-color: #4fd1c7;
}

/* Responsive */
@media (max-width: 768px) {
  .listing-nav-links {
    display: none;
  }

  .listing-menu-toggle {
    display: block;
  }

  .games-header-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .games-actions {
    flex-direction: column;
    gap: 0.3rem;
  }

  .games-pagination-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .games-pagination {
    flex-wrap: wrap;
    justify-content: center;
  }

  .games-pagination-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .games-page-size-selector {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .listing-container {
    padding: 0 10px;
  }

  .games-page-title {
    font-size: 2rem;
  }

  .games-table {
    font-size: 0.9rem;
  }

  .games-pagination {
    gap: 0.3rem;
  }

  .games-pagination-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }

  #gamesPaginationNumbers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    justify-content: center;
  }
}