/* Search Page Styles */

.search-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.search-header {
  text-align: center;
  margin-bottom: 2rem;
}

.search-header h1 {
  color: #2845ae;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.search-description {
  color: #6c757d;
  font-size: 1.1rem;
  margin: 0;
}

.search-form {
  margin-bottom: 2rem;
}

.search-input-group {
  display: flex;
  gap: 0.75rem;
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-button {
  padding: 0.75rem 1.5rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.search-button:hover {
  background-color: #0056b3;
  transform: translateY(-1px);
}

.search-button:active {
  transform: translateY(0);
}

.search-results-section {
  margin-top: 2rem;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e9ecef;
}

.results-header h2 {
  color: #495057;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.results-count {
  background: #f8f9fa;
  color: #6c757d;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-result-card {
  display: block;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.search-result-card:hover {
  border-color: #007bff;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.result-content {
  width: 100%;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.result-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8f9fa;
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.result-type-badge.transaction {
  background: linear-gradient(135deg, #fd7e14 0%, #ffc107 100%);
}

.result-type-badge.account {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.result-type-badge.entity {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.result-type-badge.custom-field {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.result-type-badge i {
  font-size: 0.75rem;
}

.result-body {
  flex: 1;
}

.result-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #212529;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.result-subtitle {
  font-size: 1rem;
  color: #6c757d;
  margin: 0;
  line-height: 1.5;
}

mark {
  background: #fff3cd;
  color: #856404;
  padding: 0.125rem 0.25rem;
  border-radius: 3px;
  font-weight: 600;
}

.no-results {
  text-align: center;
  padding: 3rem 1rem;
  background: white;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.no-results-icon {
  font-size: 3rem;
  color: #6c757d;
  margin-bottom: 1rem;
}

.no-results h3 {
  color: #495057;
  margin-bottom: 0.5rem;
}

.no-results p {
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.no-results-suggestion {
  font-size: 0.9rem;
  color: #adb5bd;
}

@media (max-width: 768px) {
  .search-container {
    padding: 1rem;
  }

  .search-input-group {
    flex-direction: column;
  }

  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .search-result-card {
    padding: 1rem;
  }

  .result-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* Search Refresh */
.search-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem 1rem;
}

.search-theme-page .search-header {
  text-align: left;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid #e5e9f0;
  padding-bottom: 0.5rem;
}

.search-theme-page .search-header .app-page-title {
  color: #0f4c81;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  margin: 0;
}

.search-theme-page .search-form {
  margin-bottom: 0.75rem;
  padding: 0.6rem;
  border-radius: 14px;
  border: 1px solid #e5e9f0;
}

.search-theme-page .search-input-group {
  max-width: none;
  margin: 0;
  gap: 0.55rem;
}

.search-theme-page .search-input {
  border: 1px solid #d7dee9;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
}

.search-theme-page .search-button {
  min-height: 36px;
  padding: 0.42rem 0.9rem;
  font-size: 0.84rem;
  letter-spacing: normal;
  font-weight: 600;
}

.search-theme-page .search-results-section {
  margin-top: 0;
  border: 1px solid #e5e9f0;
  border-radius: 14px;
  padding: 0.65rem;
}

.search-theme-page .results-header {
  margin-bottom: 0.65rem;
  padding: 0 0.25rem 0.55rem;
  border-bottom: 1px solid #e5e9f0;
}

.search-theme-page .results-header h2 {
  font-size: 1rem;
}

.search-theme-page .results-count {
  font-size: 0.75rem;
  padding: 0.22rem 0.55rem;
  background: #eef2ff;
  color: #334155;
}

.search-theme-page .search-results-list {
  gap: 0.55rem;
}

.search-theme-page .search-result-card {
  padding: 0.7rem 0.8rem;
  border: 1px solid #e5e9f0;
  border-radius: 12px;
  box-shadow: none;
}

.search-theme-page .search-result-card:hover {
  border-color: #c8d5f6;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transform: none;
}

.search-theme-page .result-header {
  margin-bottom: 0.45rem;
}

.search-theme-page .result-type-badge {
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.66rem;
  letter-spacing: 0.35px;
}

.search-theme-page .result-type-badge.transaction {
  background: #fff3e6;
  color: #b45309;
}

.search-theme-page .result-type-badge.account {
  background: #e8f5e9;
  color: #166534;
}

.search-theme-page .result-type-badge.entity {
  background: #f3e8ff;
  color: #6b21a8;
}

.search-theme-page .result-type-badge.custom-field {
  background: #e6f7fa;
  color: #0f766e;
}

.search-theme-page .result-title {
  font-size: 0.95rem;
  line-height: 1.3;
  margin: 0 0 0.2rem;
}

.search-theme-page .result-subtitle {
  font-size: 0.82rem;
  line-height: 1.4;
}

.search-theme-page .no-results {
  border: 1px dashed #dbe4f0;
  border-radius: 14px;
  padding: 1.5rem 1rem;
}

.search-theme-page .no-results-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
