:root {
    --app-bg-page: #f4f7fb;
    --app-surface: #ffffff;
    --app-border: #dbe4f2;
    --app-text: #1e293b;
    --app-text-muted: #64748b;
    --app-primary: #1d4f91;
    --app-primary-hover: #183f73;
}

html,
body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--app-text);
    background-color: var(--app-bg-page);
}

a,
.btn-link {
    color: var(--app-primary);
}

a:hover,
.btn-link:hover {
    color: var(--app-primary-hover);
}

.btn-primary {
    color: #fff;
    background-color: var(--app-primary);
    border-color: var(--app-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--app-primary-hover);
    border-color: var(--app-primary-hover);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(29, 79, 145, 0.15);
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #198754;
}

.invalid {
    outline: 1px solid #dc3545;
}

.validation-message {
    color: #dc3545;
}

.card {
    border: 1px solid var(--app-border);
    border-radius: 0.75rem;
}

.card-header {
    border-bottom: 1px solid var(--app-border);
}

.table {
    --bs-table-bg: #ffffff;
}

.table > :not(caption) > * > * {
    border-bottom-color: #e5edf7;
}

.table thead th {
    color: #334155;
    font-weight: 600;
    background-color: #f8fbff;
}

.alert {
    border-radius: 0.65rem;
}

.app-placeholder-card {
    border: 1px solid var(--app-border);
    border-radius: 0.75rem;
    background-color: var(--app-surface);
    padding: 1rem;
    min-height: 130px;
}

.app-placeholder-card h2 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.app-placeholder-card p {
    color: var(--app-text-muted);
    margin-bottom: 0;
}

.auth-shell {
    max-width: 520px;
    margin: 3rem auto;
}

.auth-card {
    border: 1px solid var(--app-border);
    border-radius: 0.85rem;
}

.auth-card .card-header {
    background-color: #1d4f91;
}

.page-hero {
    margin-bottom: 1rem;
}

.page-hero h1 {
    font-size: 1.6rem;
    margin-bottom: 0.35rem;
}

.page-hero p {
    color: var(--app-text-muted);
    margin-bottom: 0;
}

.empresa-card {
    transition: border-color 0.15s ease-in-out;
}

.empresa-card:hover {
    border-color: #c7d8f1;
}

.empresa-card-logo {
    width: 48px;
    height: 48px;
    object-fit: cover;
    flex: 0 0 48px;
}

.empresa-card-logo-placeholder {
    border-radius: 0.6rem;
    border: 1px solid #d6e2f4;
    background: linear-gradient(145deg, #f8fbff 0%, #eaf1fc 100%);
    color: #315482;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.blazor-error-boundary {
    background-color: #b02a37;
    color: #fff;
    border-radius: 0.5rem;
    padding: 1rem;
}

.blazor-error-boundary::after {
    content: "Se produjo un error.";
}

.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;
}
