html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1rem;
    background: #f4f6f8;
}

a, .btn-link {
    color: #006bb7;
}

/* Primary button */
.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn-primary:hover {
    background-color: #1861ac;
    border-color: #1555a0;
}

/* Focus rings */
.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;
}

/* Form validation */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
    font-size: .875rem;
}

/* Cards */
.card {
    border-color: #e5e7eb;
    border-radius: 10px;
}

.card.shadow-sm {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07) !important;
}

.clickable-card {
    transition: box-shadow .15s ease, transform .1s ease;
    cursor: pointer;
}

.clickable-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px);
}

.clickable-card:focus-visible {
    outline: 2px solid #1b6ec2;
    outline-offset: 2px;
}

/* Tables */
.table-wrapper {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.table-wrapper .table {
    margin-bottom: 0;
    font-size: .875rem;
}

.table-wrapper .table > thead {
    background: #f9fafb;
}

.table-wrapper .table > thead th {
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
    padding: .75rem 1rem;
}

.table-wrapper .table > tbody > tr > td {
    padding: .75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.table-wrapper .table > tbody > tr:last-child > td {
    border-bottom: none;
}

.table-wrapper .table-hover > tbody > tr:hover > td {
    background: #f9fafb;
}

/* Buttons – shared shape */
.btn {
    border-radius: 7px;
    font-size: .875rem;
    font-weight: 500;
}

/* Page headings */
h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

h1:focus {
    outline: none;
}

h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #111827;
}

/* Blazor error UI */
.blazor-error-boundary {
    background: #fff3cd;
    border-top: 1px solid #ffc107;
    padding: .75rem 1.25rem;
    font-size: .875rem;
    color: #111827;
}

.blazor-error-boundary::after {
    content: "Nastala chyba aplikace.";
}

/* Blazor error strip */
#blazor-error-ui {
    background: #fff3cd;
    border-top: 1px solid #ffc107;
    bottom: 0;
    left: 0;
    right: 0;
    position: fixed;
    padding: .6rem 1.25rem;
    font-size: .875rem;
    display: none;
    z-index: 1000;
}

#blazor-error-ui .reload {
    font-weight: 600;
    color: #1b6ec2;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    float: right;
    padding: .1rem .4rem;
}

/* Misc */
.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.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;
}
