:root {
    --brand-color: #2563eb;
    --brand-dark: #1a2744;
}

body {
    background-color: #f8fafc;
}

/* ── Navbar ── */
#main-navbar {
    background-color: var(--brand-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* ── Results table ── */
.results-table-wrap {
    max-height: 60vh;
    overflow-y: auto;
}

.results-thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #212529;
    white-space: nowrap;
}

#history_table td,
#pricingTable td {
    min-width: 110px;
    vertical-align: middle;
}

#history_table td:first-child,
#pricingTable td:first-child {
    text-align: left;
    font-weight: 500;
    font-family: monospace;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.saved-cell {
    min-width: 120px;
}

.highest-price {
    color: #198754;
    font-weight: 700;
    background-color: rgba(25, 135, 84, 0.08);
}

.price-x {
    color: red;
    font-weight: bold;
    cursor: pointer;
}

.vendor-row {
    margin-top: 0.5rem;
}

/* ── Get Prices button ── */
.btn-get-prices {
    background-color: #059669;
    border-color: #059669;
    color: #fff;
}

.btn-get-prices:hover,
.btn-get-prices:focus {
    background-color: #047857;
    border-color: #047857;
    color: #fff;
}

.btn-get-prices:active {
    background-color: #065f46;
    border-color: #065f46;
    color: #fff;
}

/* Hide the ISBN hint when the floating label moves up */
.form-floating > .form-control:focus ~ label .isbn-hint,
.form-floating > .form-control:not(:placeholder-shown) ~ label .isbn-hint {
  display: none;
}

/* Mute the ISBN example hint */
.isbn-hint {
  opacity: 0.5;
}

/* Mute the ISBN label in its default (non-floating) position */
.form-floating > #isbn ~ label {
  color: rgba(0, 0, 0, 0.35);
}

/* ── DataTables customization ── */

/* Sort arrows: visible on dark header */
table.dataTable thead th.sorting::before,
table.dataTable thead th.sorting::after,
table.dataTable thead th.sorting_asc::before,
table.dataTable thead th.sorting_asc::after,
table.dataTable thead th.sorting_desc::before,
table.dataTable thead th.sorting_desc::after {
    color: rgba(255, 255, 255, 0.5);
}
table.dataTable thead th.sorting_asc::before,
table.dataTable thead th.sorting_desc::after {
    color: #fff;
    opacity: 1;
}

/* Top controls row: length + search side by side */
div.dataTables_wrapper div.dataTables_length,
div.dataTables_wrapper div.dataTables_filter {
    display: inline-block;
    margin-bottom: 0.75rem;
}
div.dataTables_wrapper div.dataTables_filter {
    float: right;
}
div.dataTables_wrapper div.dataTables_filter input {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    margin-left: 0.4rem;
}
div.dataTables_wrapper div.dataTables_length select {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.25rem 0.4rem;
    font-size: 0.875rem;
    margin: 0 0.3rem;
}

/* Bottom row: info + pagination */
div.dataTables_wrapper div.dataTables_info {
    font-size: 0.85rem;
    color: #6c757d;
    padding-top: 0.6rem;
}
div.dataTables_wrapper div.dataTables_paginate {
    float: right;
    padding-top: 0.25rem;
}
div.dataTables_wrapper div.dataTables_paginate span .paginate_button,
div.dataTables_wrapper div.dataTables_paginate .paginate_button {
    display: inline-block;
    padding: 0.3rem 0.65rem;
    font-size: 0.85rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    margin: 0 1px;
    cursor: pointer;
    background: #fff;
    color: #212529 !important;
    line-height: 1.5;
    text-decoration: none;
}
div.dataTables_wrapper div.dataTables_paginate .paginate_button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}
div.dataTables_wrapper div.dataTables_paginate .paginate_button.current,
div.dataTables_wrapper div.dataTables_paginate .paginate_button.current:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff !important;
}
div.dataTables_wrapper div.dataTables_paginate .paginate_button.disabled,
div.dataTables_wrapper div.dataTables_paginate .paginate_button.disabled:hover {
    color: #adb5bd !important;
    cursor: default;
    background: #fff;
}

/* Keepa styles */
.headerBig {
	font-size: 1.75rem;
	font-weight: bold;
}

.label-fixed-height {
	height: 3em;
	display: flex;
	align-items: center;
}


