/* Search Component Styles */
.search-section {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.search-header {
  margin-bottom: 30px;
  text-align: center;
}

.search-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}

.search-subtitle {
  font-size: 16px;
  color: #666;
  margin: 0;
}

/* Search Input */
.search-input-container {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
}

.search-input {
  width: 100%;
  padding: 16px 50px 16px 50px;
  font-size: 16px;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  background: #fff;
  transition: all 0.2s ease;
  outline: none;
}

.search-input:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-input::placeholder {
  color: #999;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  pointer-events: none;
}

.search-loading {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  justify-content: center;
}

.search-spinner {
  color: #007bff;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Results Container */
.search-results-container {
  min-height: 400px;
}

/* Placeholder States */
.search-placeholder,
.search-no-results,
.search-minimum-chars,
.search-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: #666;
}

.search-placeholder svg,
.search-no-results svg,
.search-minimum-chars svg,
.search-error svg {
  color: #ccc;
  margin-bottom: 20px;
}

.search-placeholder h3,
.search-no-results h3,
.search-minimum-chars h3,
.search-error h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #333;
}

.search-placeholder p,
.search-no-results p,
.search-minimum-chars p,
.search-error p {
  font-size: 14px;
  margin: 0;
  color: #666;
}

.search-error {
  color: #dc3545;
}

.search-error svg {
  color: #dc3545;
}

/* Search Results */
.search-results {
  animation: fadeIn 0.3s ease;
}

.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f1f1f1;
}

.search-results-header h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: #333;
}

.search-results-count {
  font-size: 14px;
  color: #666;
  background: #f8f9fa;
  padding: 4px 12px;
  border-radius: 20px;
}

.search-results-list {
  display: grid;
  gap: 16px;
}

/* Reservation Cards */
.reservation-card {
  background: #fff;
  border: 1px solid #e1e5e9;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.reservation-card:hover {
  border-color: #007bff;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
  transform: translateY(-2px);
}

.reservation-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.guest-info {
  flex: 1;
}

.guest-name {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #333;
}

.guest-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.guest-phone,
.guest-email {
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
}

.guest-phone::before {
  content: "📞";
  margin-right: 4px;
}

.guest-email::before {
  content: "✉️";
  margin-right: 4px;
}

.reservation-status {
  flex-shrink: 0;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-reserved {
  background: #28a745;
  color: white;
}

.status-awaiting_payment {
  background: #FF9800;
  color: white;
}

.status-badge {
  text-transform: capitalize;
}

/* Reservation Details */
.reservation-details {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #555;
}

.detail-item svg {
  color: #666;
  flex-shrink: 0;
}

.detail-notes {
  align-items: flex-start;
}

.detail-notes svg {
  margin-top: 2px;
}

.notes-text {
  line-height: 1.4;
  font-style: italic;
  background: #f8f9fa;
  padding: 8px 12px;
  border-radius: 6px;
  border-left: 3px solid #007bff;
}

/* Actions */
.reservation-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid #f1f1f1;
}

.action-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.action-btn-secondary {
  background: #6c757d;
  color: white;
}

.action-btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-1px);
}

.action-btn-danger {
  background: #dc3545;
  color: white;
}

.action-btn-danger:hover {
  background: #c82333;
  transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .search-section {
    padding: 15px;
  }
  
  .search-header h2 {
    font-size: 24px;
  }
  
  .search-input {
    padding: 14px 45px 14px 45px;
    font-size: 16px;
  }
  
  .reservation-card {
    padding: 16px;
  }
  
  .reservation-card-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  
  .guest-details {
    flex-direction: column;
    gap: 6px;
  }
  
  .reservation-actions {
    flex-direction: column;
  }
  
  .action-btn {
    justify-content: center;
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
