:root {
    --bg-color: #0f1115;
    --surface-color: #181c23;
    --surface-accent: #212733;
    --text-color: #e6ecf3;
    --muted-color: #9ca8ba;
    --border-color: #2b3342;
}

html,
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100%;
}

.dark-body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.page-header h1,
h1,
h2,
h3,
h4 {
    color: var(--text-color);
}

.page-header {
    position: relative;
}

.home-title {
    font-size: 1.65rem;
}

.settings-gear-btn {
    position: absolute;
    top: -6px;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background-color: var(--surface-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1;
}

.search-stop-btn {
    height: 36px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid #3d66dd;
    background: linear-gradient(180deg, #5b86ff 0%, #3f68e7 100%);
    color: #f3f7ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 12px rgba(51, 92, 217, 0.35);
    transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.search-stop-btn:hover {
    color: #f3f7ff;
    filter: brightness(1.05);
    box-shadow: 0 6px 14px rgba(51, 92, 217, 0.42);
    text-decoration: none;
}

.search-stop-btn:active {
    transform: translateY(1px);
    box-shadow: 0 3px 8px rgba(51, 92, 217, 0.35);
}

.settings-gear-btn:hover {
    color: var(--text-color);
    background-color: var(--surface-accent);
    text-decoration: none;
}

.stop-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
}

.stop-card-header {
    background-color: var(--surface-accent);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.stop-alias {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.25;
}

.stop-number {
    font-size: 0.82rem;
    color: var(--muted-color);
    margin-top: 2px;
}

.stop-lines {
    font-size: 0.78rem;
    color: var(--muted-color);
    margin-top: 4px;
}

.card-body p {
    color: var(--text-color);
}

.next-bus-hint,
.next-bus-hint small {
    color: var(--muted-color);
    font-size: 13px;
}

.card-body hr {
    border-color: var(--border-color);
}

.dark-input {
    background-color: #10141a;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.dark-input:focus {
    background-color: #10141a;
    color: var(--text-color);
    border-color: #4d79ff;
    box-shadow: 0 0 0 0.2rem rgba(77, 121, 255, 0.15);
}

.text-muted {
    color: var(--muted-color) !important;
}

.table-dark {
    background-color: var(--surface-color);
}

.table-dark td,
.table-dark th,
.table-dark thead th {
    border-color: var(--border-color);
}

.refresh-countdown {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.08);
    z-index: 1200;
    pointer-events: none;
}

.refresh-countdown-fill {
    height: 100%;
    width: 100%;
    background-color: #4d79ff;
    box-shadow: 0 0 8px rgba(77, 121, 255, 0.45);
}
