@import "../shared.css";

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--page-bg);
  color: var(--text);
  font-family: inherit;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 12px;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}

select,
input,
a {
  height: 34px;
}

select {
  min-width: 150px;
}

input {
  width: 120px;
  padding: 0 10px;
}

.year-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-foreground);
  font-size: 14px;
}

a {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  text-decoration: none;
}

#status {
  margin-left: auto;
}

.loading {
  position: fixed;
  inset: 52px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--background);
  z-index: 5;
  color: var(--muted-foreground);
  font-size: 14px;
}

.loading[hidden] {
  display: none;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

iframe {
  display: block;
  width: 100%;
  height: calc(100dvh - 52px);
  border: 0;
}

iframe[hidden] {
  display: none;
}
