/* Location Settings Styles */

.table-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.table-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.settings-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 10px;
}

.settings-tab {
  padding: 10px 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.settings-tab:hover {
  background: #f3f4f6;
  color: #374151;
}

.settings-tab.active {
  background: #6C5CE7;
  color: white;
}

.settings-tab-content {
  display: none;
}

.settings-tab-content.active {
  display: block;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.table thead {
  background: #f9fafb;
}

.table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: #6b7280;
  text-transform: uppercase;
  border-bottom: 2px solid #e5e7eb;
}

.table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
  color: #374151;
}

.table tbody tr:hover {
  background: #f9fafb;
}

.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.select {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  color: #374151;
  background: white;
  cursor: pointer;
}

.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: #6C5CE7;
  color: white;
}

.btn-primary:hover {
  background-color: #5a4ad1;
}

.btn-secondary {
  background-color: #6b7280;
  color: white;
}

.btn-secondary:hover {
  background-color: #4b5563;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 24px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-content h3 {
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6b7280;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.close-btn:hover {
  background: #f3f4f6;
  color: #111827;
}

.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 0px;
    width: auto;

}
.form-group {
  width: 100%;
  margin-bottom: 20px;
}

.label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
  color: #374151;
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  color: #111827;
  background: #f9fafb;
  transition: all 0.2s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: #6C5CE7;
  background: white;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.input::placeholder,
.textarea::placeholder {
  color: #9ca3af;
}

.textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

.select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%236B7280' d='M7 11L2 5h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
}

.select option {
  background: white;
  color: #111827;
  padding: 12px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

/* State Modal Specific Styles */
#stateModal {
  z-index: 1000;
}

#stateModal .modal-content {
  width: 400px;
}

#stateName,
#stateCode,
#stateActive {
  padding: 14px 16px;
  margin-bottom: 20px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  color: var(--text-primary);
  background: #f9fafb;
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-family: inherit;
}

#stateName:focus,
#stateCode:focus,
#stateActive:focus {
  outline: none;
  border-color: #6C5CE7;
  background: white;
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

#stateName::placeholder {
  color: #9ca3af;
}

#stateActive {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%236B7280' d='M7 11L2 5h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
  background-color: #f9fafb;
}

#stateActive:focus {
  background-color: white;
}

#stateActive option {
  background: white;
  color: var(--text-primary);
  padding: 12px;
}

/* City Modal Specific Styles */
#cityModal {
  z-index: 1001;
}

#cityModal .modal-content {
  width: 700px;
}

#cityState,
#cityName,
#cityActive {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 20px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  color: var(--text-primary);
  background: #f9fafb;
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-family: inherit;
}

#cityState:focus,
#cityName:focus,
#cityActive:focus {
  outline: none;
  border-color: #6C5CE7;
  background: white;
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

#cityName::placeholder {
  color: #9ca3af;
}

#cityState,
#cityActive {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%236B7280' d='M7 11L2 5h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
  background-color: #f9fafb;
}

#cityState:focus,
#cityActive:focus {
  background-color: white;
}

#cityState option,
#cityActive option {
  background: white;
  color: var(--text-primary);
  padding: 12px;
}

/* Sightseeing Modal Specific Styles */
#sightseeingModal {
  z-index: 1002;
}

#sightseeingModal .modal-content {
  width: 700px;
  max-width: 700px;
}

#sightseeingState,
#sightseeingCity,
#sightseeingName,
#sightseeingCategory,
#sightseeingPopular,
#sightseeingActive,
#sightseeingDescription {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 20px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  color: var(--text-primary);
  background: #f9fafb;
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-family: inherit;
}

#sightseeingState:focus,
#sightseeingCity:focus,
#sightseeingName:focus,
#sightseeingCategory:focus,
#sightseeingPopular:focus,
#sightseeingActive:focus,
#sightseeingDescription:focus {
  outline: none;
  border-color: #6C5CE7;
  background: white;
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

#sightseeingName::placeholder,
#sightseeingCategory::placeholder,
#sightseeingDescription::placeholder {
  color: #9ca3af;
}

#sightseeingState,
#sightseeingCity,
#sightseeingPopular,
#sightseeingActive {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%236B7280' d='M7 11L2 5h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
  background-color: #f9fafb;
}

#sightseeingState:focus,
#sightseeingCity:focus,
#sightseeingPopular:focus,
#sightseeingActive:focus {
  background-color: white;
}

#sightseeingDescription {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

#sightseeingState option,
#sightseeingCity option,
#sightseeingPopular option,
#sightseeingActive option {
  background: white;
  color: var(--text-primary);
  padding: 12px;
}

/* Chips Container */
.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #6C5CE7;
  color: white;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

.chip-remove {
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.chip-remove:hover {
  opacity: 1;
}

/* Entry Ticket Styles */
.ticket-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ticket-input {
  flex: 1;
  min-width: 120px;
}

.ticket-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

/* Opening Hours Styles */
#openingHoursContainer {
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 16px;
  background: #F9FAFB;
}

.day-row {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #E5E7EB;
}

.day-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.day-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.day-label input[type="checkbox"] {
  width: auto;
  cursor: pointer;
}

.time-slots {
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-left: 24px;
  margin-bottom: 8px;
}

.time-slot {
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-primary);
  background: white;
}

.time-input:focus {
  outline: none;
  border-color: #6C5CE7;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.time-separator {
  color: #9CA3AF;
  font-size: 13px;
}

.add-slot-btn {
  display: none;
  margin-left: 24px;
  padding: 6px 12px;
  background: #6C5CE7;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.add-slot-btn:hover {
  background: #5B4DB4;
}

.remove-slot-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EF4444;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.remove-slot-btn:hover {
  background: #DC2626;
}
