@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

body {
  font-family: 'Inter', sans-serif;
  background: #1B3A57;
  color: #FFFFFF;
  min-height: 100vh;
}

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

header {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px 0;
}

header h1 {
  font-size: 2.2rem;
  color: #FFFFFF;
  margin-bottom: 8px;
  font-weight: 700;
}

header p {
  color: #FFFFFF;
  font-size: 1rem;
  opacity: 0.8;
}

.search-section {
  background: #FFFFFF;
  padding: 24px;
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(27, 58, 87, 0.1);
  margin-bottom: 20px;
  border: 1px solid rgba(27, 58, 87, 0.1);
}

.form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.form-row-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
}

.form-group {
  flex: 1;
  min-width: 180px;
}

.form-group-small {
  flex: 0 0 120px;
  min-width: 100px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #1B3A57;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  border: 2px solid rgba(27, 58, 87, 0.2);
  border-radius: 2px;
  transition: border-color 0.2s;
  color: #1B3A57;
}

.form-group input:focus {
  outline: none;
  border-color: #F5B800;
}

.form-group input::placeholder {
  color: rgba(27, 58, 87, 0.5);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #1B3A57;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #F5B800;
}

button[type="submit"] {
  padding: 10px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: #1B3A57;
  background: #F5B800;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

button[type="submit"]:hover {
  background: #e0a800;
  transform: translateY(-1px);
}

button[type="submit"]:disabled {
  background: rgba(245, 184, 0, 0.5);
  cursor: not-allowed;
  transform: none;
}

.progress-section {
  margin-bottom: 20px;
}

.progress-container {
  background: #FFFFFF;
  padding: 20px;
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(27, 58, 87, 0.1);
  border: 1px solid rgba(27, 58, 87, 0.1);
}

.progress-text {
  color: #1B3A57;
  font-weight: 500;
  margin-bottom: 12px;
}

.progress-bar-wrapper {
  background: rgba(27, 58, 87, 0.1);
  border-radius: 2px;
  height: 8px;
  overflow: hidden;
}

.progress-bar {
  background: #F5B800;
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.filters-section {
  margin-bottom: 20px;
}

.filters-container {
  background: #FFFFFF;
  padding: 16px 20px;
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(27, 58, 87, 0.1);
  border: 1px solid rgba(27, 58, 87, 0.1);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group label {
  font-size: 0.9rem;
  color: #1B3A57;
  font-weight: 500;
}

.filter-group select {
  padding: 6px 12px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  border: 2px solid rgba(27, 58, 87, 0.2);
  border-radius: 2px;
  background: white;
  cursor: pointer;
  color: #1B3A57;
}

.filter-group select:focus {
  outline: none;
  border-color: #F5B800;
}

.filter-results {
  margin-left: auto;
  font-size: 0.9rem;
  color: #1B3A57;
  opacity: 0.7;
}

.results-section {
  background: #FFFFFF;
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(27, 58, 87, 0.1);
  border: 1px solid rgba(27, 58, 87, 0.1);
  overflow: hidden;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(27, 58, 87, 0.1);
}

.results-header h2 {
  font-size: 1.2rem;
  color: #1B3A57;
  font-weight: 600;
}

.results-actions {
  display: flex;
  gap: 10px;
}

.action-btn {
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.export-btn {
  color: #1B3A57;
  background: #F5B800;
}

.export-btn:hover {
  background: #e0a800;
  transform: translateY(-1px);
}

.copy-btn {
  color: #FFFFFF;
  background: #1B3A57;
}

.copy-btn:hover {
  background: #152d45;
  transform: translateY(-1px);
}

.clear-btn {
  color: #1B3A57;
  background: rgba(27, 58, 87, 0.1);
}

.clear-btn:hover {
  background: rgba(27, 58, 87, 0.2);
}

.table-wrapper {
  overflow-x: auto;
  max-height: 600px;
  overflow-y: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

th, td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(27, 58, 87, 0.1);
}

th {
  background: rgba(27, 58, 87, 0.05);
  font-weight: 600;
  color: #1B3A57;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}

tr:hover {
  background: rgba(245, 184, 0, 0.05);
}

td {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1B3A57;
}

td a {
  color: #1B3A57;
  text-decoration: none;
  font-weight: 500;
}

td a:hover {
  text-decoration: underline;
  color: #F5B800;
}

.rating {
  display: flex;
  align-items: center;
  gap: 3px;
}

.rating-star {
  color: #F5B800;
}

.error-section {
  margin-top: 20px;
}

.error-message {
  background: #ffebee;
  color: #c62828;
  padding: 15px 20px;
  border-radius: 2px;
  font-weight: 500;
}

.no-data {
  color: rgba(27, 58, 87, 0.4);
}

.warning-box {
  margin-top: 16px;
  padding: 12px 16px;
  background: #fff3cd;
  border: 1px solid #ffcc00;
  border-radius: 2px;
  color: #856404;
  font-size: 0.85rem;
  line-height: 1.5;
}

.copied-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #1B3A57;
  color: white;
  padding: 12px 24px;
  border-radius: 2px;
  font-size: 0.9rem;
  z-index: 1000;
  animation: fadeInOut 2s ease;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
  15% { opacity: 1; transform: translateX(-50%) translateY(0); }
  85% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

#userInfo {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.9rem;
}

#userName {
  opacity: 0.9;
}

.logout-link {
  color: #F5B800;
  text-decoration: none;
  font-weight: 500;
}

.logout-link:hover {
  text-decoration: underline;
}

.login-section {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

.login-box {
  background: #FFFFFF;
  padding: 40px 60px;
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(27, 58, 87, 0.1);
  text-align: center;
  border: 1px solid rgba(27, 58, 87, 0.1);
}

.login-box h2 {
  color: #1B3A57;
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.login-box p {
  color: #1B3A57;
  opacity: 0.7;
  margin-bottom: 24px;
}

.login-btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: #1B3A57;
  background: #F5B800;
  border: none;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}

.login-btn:hover {
  background: #e0a800;
  transform: translateY(-1px);
}

.search-buttons {
  display: flex;
  gap: 10px;
}

.save-search-btn {
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: #1B3A57;
  background: rgba(27, 58, 87, 0.1);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
}

.save-search-btn:hover {
  background: rgba(27, 58, 87, 0.2);
}

.saved-searches-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(27, 58, 87, 0.1);
}

.saved-searches-header {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1B3A57;
  margin-bottom: 10px;
}

.saved-searches-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.saved-search-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(27, 58, 87, 0.08);
  border-radius: 2px;
  padding: 6px 10px;
  font-size: 0.85rem;
}

.saved-search-load {
  color: #1B3A57;
  cursor: pointer;
  border: none;
  background: none;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  padding: 0;
}

.saved-search-load:hover {
  color: #F5B800;
  text-decoration: underline;
}

.saved-search-delete {
  color: rgba(27, 58, 87, 0.5);
  cursor: pointer;
  border: none;
  background: none;
  font-size: 1rem;
  padding: 0;
  line-height: 1;
}

.saved-search-delete:hover {
  color: #c62828;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }
  
  .form-group, .form-group-small {
    width: 100%;
    flex: none;
  }
  
  .form-row-options {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  
  button[type="submit"] {
    width: 100%;
  }
  
  .results-header {
    flex-direction: column;
    gap: 12px;
  }
  
  .results-actions {
    width: 100%;
    justify-content: stretch;
  }
  
  .action-btn {
    flex: 1;
  }
  
  .filters-container {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .filter-results {
    margin-left: 0;
  }
}
