/* Прайс-лист артистов - стили */

.price-list-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.price-list-header {
  text-align: center;
  margin-bottom: 30px;
}

.price-list-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.price-list-note {
  color: #666;
  font-size: 14px;
  font-style: italic;
}

.price-list-container {
  display: flex;
  gap: 30px;
}

/* Фильтры */
.price-list-filters {
  flex: 0 0 280px;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.filters-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

.filter-group {
  margin-bottom: 25px;
}

.filter-label {
  display: block;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
  font-size: 14px;
}

.filter-option {
  display: block;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #555;
  transition: color 0.2s;
}

.filter-option:hover {
  color: #0066cc;
}

.filter-option input {
  margin-right: 8px;
  cursor: pointer;
}

.btn-reset-filters {
  width: 100%;
  padding: 10px;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s;
}

.btn-reset-filters:hover {
  background: #5a6268;
}

/* Основной контент */
.price-list-content {
  flex: 1;
}

.price-list-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toolbar-left label {
  font-weight: 500;
  color: #333;
}

.sort-select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  background: white;
}

.toolbar-right {
  display: flex;
  gap: 10px;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-primary {
  background: #0066cc;
  color: white;
}

.btn-primary:hover {
  background: #0052a3;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #5a6268;
}

/* Таблица */
.price-list-table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  background: white;
}

.price-list-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.price-list-table thead {
  background: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
}

.price-list-table th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: #333;
  font-size: 14px;
  white-space: nowrap;
}

.price-list-table tbody tr {
  border-bottom: 1px solid #dee2e6;
  transition: background 0.2s;
}

.price-list-table tbody tr:hover {
  background: #f8f9fa;
}

.price-list-table tbody tr.selected {
  background: #e3f2fd;
}

.price-list-table tbody tr.selected:hover {
  background: #bbdefb;
}

.price-list-table td {
  padding: 15px;
  vertical-align: middle;
  font-size: 14px;
  color: #333;
}

.col-checkbox {
  width: 50px;
  text-align: center;
}

.col-photo {
  width: 100px;
}

.col-name {
  width: 25%;
}

.col-genre {
  width: 30%;
}

.col-price {
  width: 20%;
}

.col-actions {
  width: 150px;
}

.artist-photo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 5px;
  display: block;
}

.no-photo {
  width: 80px;
  height: 80px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-size: 12px;
  color: #999;
}

.price-list-table a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
}

.price-list-table a:hover {
  text-decoration: underline;
}

.btn-know-price {
  padding: 8px 15px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.3s;
  white-space: nowrap;
}

.btn-know-price:hover {
  background: #218838;
}

.loading-row td,
.text-center {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

/* Счетчик артистов */
.artists-count {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #666;
}

.artists-count #artists-count-number {
  font-weight: 600;
  color: #0066cc;
}

/* Popup */
.price-list-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
}

.popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.popup-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #dee2e6;
}

.popup-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #333;
}

.popup-close {
  background: none;
  border: none;
  font-size: 32px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-close:hover {
  color: #333;
}

.popup-body {
  padding: 20px;
}

.selected-artists-preview {
  margin-bottom: 25px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 5px;
}

.selected-artists-preview h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
}

.selected-artist-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #dee2e6;
}

.selected-artist-item:last-child {
  border-bottom: none;
}

.artist-name {
  font-weight: 500;
  color: #333;
}

.artist-price {
  color: #0066cc;
  font-weight: 600;
}

/* Форма */
.request-form {
  margin-top: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: #0066cc;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #dee2e6;
}

/* Адаптивность */
@media (max-width: 992px) {
  .price-list-container {
    flex-direction: column;
  }

  .price-list-filters {
    position: static;
    flex: none;
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .price-list-header h1 {
    font-size: 24px;
  }

  .price-list-toolbar {
    flex-direction: column;
    gap: 15px;
  }

  .toolbar-left,
  .toolbar-right {
    width: 100%;
  }

  .toolbar-right {
    flex-direction: column;
  }

  .price-list-table th,
  .price-list-table td {
    padding: 10px;
    font-size: 12px;
  }

  .artist-photo,
  .no-photo {
    width: 60px;
    height: 60px;
  }

  .popup-container {
    width: 95%;
  }

  .popup-header h2 {
    font-size: 20px;
  }
}

/* Улучшение UX */
input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

select,
input {
  font-family: inherit;
}

button {
  font-family: inherit;
}

/* Скролл для больших таблиц */
.price-list-table-wrapper::-webkit-scrollbar {
  height: 8px;
}

.price-list-table-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.price-list-table-wrapper::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.price-list-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: #555;
}

