/* Perusasetukset ja fontit */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #ffffff;
  color: #202124;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

/* Keskialueen säiliö */
.search-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 584px;
}

/* Logo / otsikko */
.logo {
  font-size: 3.5rem;
  font-weight: 600;
  letter-spacing: -1px;
  margin-bottom: 30px;
  color: #202124;
}

/* Lomake ja syötekenttä */
.search-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 16px;
  color: #9aa0a6;
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 48px;
  padding: 0 20px 0 48px;
  font-size: 16px;
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.search-input:hover,
.search-input:focus {
  border-color: transparent;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
}

/* Painikkeet */
.button-group {
  display: flex;
  gap: 12px;
}

.btn {
  background-color: #f8f9fa;
  border: 1px solid #f8f9fa;
  border-radius: 4px;
  color: #3c4043;
  font-size: 14px;
  padding: 10px 20px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  background-color: #f1f3f4;
  border-color: #dadce0;
  color: #202124;
}

.btn:focus {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}
/* Disabled-napin tyyli */
.btn:disabled {
  background-color: #f1f3f4;
  color: #a0a0a0;
  border-color: #f1f3f4;
  cursor: not-allowed;
  box-shadow: none;
}

/* Virheilmoitus */
.error-message {
  margin-top: 15px;
  padding: 10px 15px;
  background-color: #fce8e6;
  color: #c5221f;
  border-radius: 8px;
  font-size: 14px;
  width: 100%;
  text-align: center;
}

/* Tuloslaatikoiden säiliö */
.results-container {
  width: 100%;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Yksittäinen tuloslaatikko */
.result-box {
  background-color: #f8f9fa;
  border: 1px solid #dfe1e5;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.result-box:hover {
  border-color: #c6c9ce;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.result-box .label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #70757a;
}

.result-box .value {
  font-size: 16px;
  font-weight: 500;
  color: #202124;
  word-break: break-word;
}