/* Last Updated: 05.02.2026 at 12:30 (CEST) */
/* Monitor Refresh Rate Test styles */

.refresh-tool {
  --rrt-surface: #ffffff;
  --rrt-surface-alt: #f7f9fc;
  --rrt-border: #e2e8f0;
  --rrt-text: #0f172a;
  --rrt-muted: #64748b;
  --rrt-accent: #2563eb;
  --rrt-accent-strong: #1d4ed8;
  --rrt-positive: #0ea5e9;
  --rrt-success: #10b981;
  --rrt-warning: #f59e0b;
  --rrt-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  color: var(--rrt-text);
}

html.dark-mode .refresh-tool {
  --rrt-surface: #0f172a;
  --rrt-surface-alt: #111827;
  --rrt-border: #1f2937;
  --rrt-text: #e5e7eb;
  --rrt-muted: #94a3b8;
  --rrt-accent: #60a5fa;
  --rrt-accent-strong: #3b82f6;
  --rrt-positive: #38bdf8;
  --rrt-success: #34d399;
  --rrt-warning: #fbbf24;
  --rrt-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.refresh-tool .tool-description {
  margin: 0 0 1.5rem;
  color: var(--rrt-muted);
}

.rate-dashboard {
  background: linear-gradient(180deg, var(--rrt-surface-alt), var(--rrt-surface));
  border: 1px solid var(--rrt-border);
  border-radius: 18px;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  box-shadow: var(--rrt-shadow);
  display: grid;
  gap: 1.25rem;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.status-text {
  margin: 0;
  color: var(--rrt-muted);
  font-size: 0.95rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--rrt-surface-alt);
  border: 1px solid var(--rrt-border);
  color: var(--rrt-text);
}

.status-badge.running::before,
.status-badge.paused::before,
.status-badge.final::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--rrt-accent);
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.12);
}

.status-badge.paused::before {
  background: var(--rrt-warning);
  box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.16);
}

.status-badge.final::before {
  background: var(--rrt-success);
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.16);
}

.rate-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 780px) {
  .rate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.rate-card {
  background: var(--rrt-surface-alt);
  border: 1px solid var(--rrt-border);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  display: grid;
  gap: 0.75rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rate-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  transform: translateY(-2px);
}

.rate-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.rate-label {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.rate-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--rrt-accent-strong);
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.18);
}

.rate-value {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.rate-number {
  font-size: clamp(2.5rem, 2rem + 2vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.rate-unit {
  font-size: 1rem;
  color: var(--rrt-muted);
}

.rate-hint {
  margin: 0;
  color: var(--rrt-muted);
  font-size: 0.95rem;
}

.smoothness-block {
  background: var(--rrt-surface-alt);
  border: 1px solid var(--rrt-border);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  display: grid;
  gap: 0.5rem;
}

.smoothness-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.smoothness-label {
  margin: 0;
  font-weight: 700;
}

.smoothness-score {
  font-weight: 800;
  color: var(--rrt-accent-strong);
}

.smoothness-meter {
  height: 10px;
  width: 100%;
  background: var(--rrt-surface);
  border-radius: 999px;
  border: 1px solid var(--rrt-border);
  overflow: hidden;
}

.smoothness-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--rrt-accent), var(--rrt-success));
  transition: width 0.2s ease;
}

.smoothness-hint {
  margin: 0;
  color: var(--rrt-muted);
  font-size: 0.92rem;
}

.meta-row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.meta-item {
  background: var(--rrt-surface-alt);
  border: 1px solid var(--rrt-border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: grid;
  gap: 0.25rem;
}

.meta-label {
  margin: 0;
  font-size: 0.9rem;
  color: var(--rrt-muted);
}

.meta-value {
  margin: 0;
  font-weight: 700;
  font-size: 1.1rem;
}

.controls {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.controls .btn {
  min-width: 150px;
  justify-content: center;
}

@media (max-width: 640px) {
  .controls {
    flex-direction: column;
    align-items: stretch;
  }

  .controls .btn {
    width: 100%;
  }
}
