html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.chart-container {
    margin: 20px 0;
    min-height: 400px;
}

/* Font Size Presets */
.font-size-btn.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.font-size-controls {
    font-size: 14px !important; /* Keep controls consistent regardless of body size */
}

/* Half-point score buttons */
.score-half {
    font-size: 0.8rem;
    padding: 0.2rem 0.4rem;
}

.score-display {
    min-width: 45px;
    text-align: center;
}

/* Combine mode controls */
.combine-controls {
    font-size: 14px !important;
}

#toggleCombineMode.active {
    background-color: #0d6efd;
    color: white;
}

/* Temp candidate controls */
.temp-candidate-controls {
    font-size: 14px !important;
}

/* Ko-Fi badge */
.kofi-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #e8a838 0%, #f0c040 50%, #e8a838 100%);
    color: #1a1a2e;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(232, 168, 56, 0.25);
}

.kofi-badge:link,
.kofi-badge:visited {
    color: #1a1a2e;
}

.kofi-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(232, 168, 56, 0.45);
    color: #1a1a2e;
    text-decoration: none;
}

.kofi-badge-sm {
    padding: 1px 10px;
    font-size: 11px;
    line-height: 2;
    box-shadow: 0 1px 6px rgba(232, 168, 56, 0.2);
}

/* Ko-Fi footer link */
.kofi-link {
    color: #c00;
    text-decoration: none;
    transition: color 0.2s ease;
}

.kofi-link:hover {
    color: #ff4444;
}

/* Dark mode overrides */
[data-bs-theme="dark"] .kofi-link {
    color: #ff6b6b;
}

[data-bs-theme="dark"] .kofi-link:hover {
    color: #ff9999;
}

[data-bs-theme="dark"] .btn:focus,
[data-bs-theme="dark"] .btn:active:focus,
[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem var(--bs-body-bg), 0 0 0 0.25rem #258cfb;
}

[data-bs-theme="dark"] .btn-outline-success {
    --bs-btn-color: #75d5a0;
    --bs-btn-border-color: #75d5a0;
    --bs-btn-hover-bg: #75d5a0;
    --bs-btn-hover-border-color: #75d5a0;
}

[data-bs-theme="dark"] .btn-success {
    --bs-btn-bg: #5cb85c;
    --bs-btn-border-color: #5cb85c;
    --bs-btn-hover-bg: #6fcf6f;
    --bs-btn-hover-border-color: #6fcf6f;
}
