html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.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;
}

.content {
    padding-top: 0.2rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* Professional styling enhancements */
.card {
    transition: box-shadow 0.3s ease;
    animation: fadeIn 0.3s ease-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.table th {
    border-top: none;
    font-weight: 600;
}

.btn {
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .card-body {
        padding: 0.5rem !important;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
        margin-bottom: 0.25rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
    }
}

@media (max-width: 576px) {
    .d-flex.gap-2 {
        flex-direction: column;
    }
    
    .d-flex.gap-2 .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .card-header h4 {
        font-size: 1.1rem;
    }
}

/* Logo and image styling */
.logo-container img {
    transition: transform 0.3s ease;
}

.logo-container img:hover {
    transform: scale(1.05);
}

.logo-placeholder {
    transition: background-color 0.3s ease;
}

.logo-placeholder:hover {
    background-color: #e9ecef !important;
}

/* Table improvements */
.table thead th {
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    color: #495057;
}

.table tbody td {
    vertical-align: middle;
}

/* Loading spinner improvements */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Modal improvements */
.modal-content {
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 2px solid #dee2e6;
}

.modal-footer {
    border-top: 2px solid #dee2e6;
}

/* Input group improvements */
.input-group-text {
    border-color: #ced4da;
}

/* Alert improvements */
.alert {
    border-radius: 0.5rem;
    border-left: 4px solid;
}

.alert-success {
    border-left-color: #198754;
}

.alert-danger {
    border-left-color: #dc3545;
}

.alert-info {
    border-left-color: #0dcaf0;
}

.alert-warning {
    border-left-color: #ffc107;
}

/* Professional spacing */
.mb-4 {
    margin-bottom: 1.5rem !important;
}

.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

/* Animation for page transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* New utility classes for subtle animations & interactive affordances */
.animate-fade-in { animation: fadeIn 0.4s ease-out both; }
.animate-slide-up { animation: slideUp 0.5s cubic-bezier(.25,.8,.25,1) both; }
.hover-lift { transition: transform var(--transition-medium,0.3s) ease, box-shadow var(--transition-medium,0.3s) ease; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: 0 0.75rem 1.5rem rgba(0,0,0,.12); }
.animate-stagger tbody tr { animation: fadeIn 0.5s ease both; }
.animate-stagger tbody tr:nth-child(2) { animation-delay: .05s; }
.animate-stagger tbody tr:nth-child(3) { animation-delay: .1s; }
.animate-stagger tbody tr:nth-child(4) { animation-delay: .15s; }
.animate-stagger tbody tr:nth-child(5) { animation-delay: .2s; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive helpers */
.stack-sm { display: flex; gap: 1rem; }
@media (max-width: 576px) { .stack-sm { flex-direction: column; } }

/* Refined badge styling for invoice statuses */
.badge.bg-secondary, .badge.bg-info, .badge.bg-success, .badge.bg-danger {
    padding: .45rem .75rem;
    border-radius: 0.5rem;
    box-shadow: 0 0 0 1px rgba(255,255,255,.4) inset;
}

/* Table row interactive highlight */
.table-hover tbody tr { transition: background-color .25s ease, transform .25s ease; }
.table-hover tbody tr:hover { transform: scale(1.01); }

/* Card polish */
.card { border-radius: 0.75rem; }
.card-header { border-top-left-radius: 0.75rem; border-top-right-radius: 0.75rem; }

/* Focus ring refinement */
.focus-outline { outline: 2px solid #258cfb; outline-offset: 2px; }

/* Utility spacing */
.space-y-2 > * + * { margin-top: .5rem; }
.space-y-3 > * + * { margin-top: .75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* ===================================================
   Auth Pages – shared styles (Login, Register, etc.)
   Consistent with anonymous marketing pages theme.
   =================================================== */

.auth-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 70vh;
    padding: 3rem 0 4rem;
    position: relative;
    overflow: hidden;
}

/* Centred auth card */
.auth-card {
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.09);
}

/* Decorative invoice-paper visuals (light-theme variant – used in hero section) */
.auth-invoice-paper {
    position: relative;
    width: 260px;
    height: 340px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transform: rotate(-8deg);
}

.auth-invoice-paper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 38px;
    background: #4a5a9c;
    border-radius: 8px 8px 0 0;
}

.auth-invoice-paper::after {
    content: "INVOICE";
    position: absolute;
    top: 10px;
    left: 18px;
    color: white;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
}

.auth-invoice-paper-2 {
    position: relative;
    width: 240px;
    height: 320px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: rotate(7deg);
    opacity: 0.85;
}

.auth-invoice-paper-2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 38px;
    background: #5a6aac;
    border-radius: 8px 8px 0 0;
}

.auth-invoice-paper-2::after {
    content: "RECEIPT";
    position: absolute;
    top: 10px;
    left: 18px;
    color: white;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
}

.auth-invoice-lines {
    position: absolute;
    top: 56px;
    left: 18px;
    right: 18px;
}

.auth-invoice-line {
    height: 11px;
    background: #e9ecef;
    margin-bottom: 13px;
    border-radius: 2px;
    animation: breathe-line 3s ease-in-out infinite;
}

.auth-invoice-line.short  { width: 60%; }
.auth-invoice-line.medium { width: 80%; }

.auth-invoice-line:nth-child(1)  { animation-delay: 0s;   }
.auth-invoice-line:nth-child(2)  { animation-delay: 0.3s; }
.auth-invoice-line:nth-child(3)  { animation-delay: 0.6s; }
.auth-invoice-line:nth-child(4)  { animation-delay: 0.9s; }
.auth-invoice-line:nth-child(5)  { animation-delay: 1.2s; }
.auth-invoice-line:nth-child(6)  { animation-delay: 1.5s; }
.auth-invoice-line:nth-child(7)  { animation-delay: 1.8s; }
.auth-invoice-line:nth-child(8)  { animation-delay: 2.1s; }
.auth-invoice-line:nth-child(9)  { animation-delay: 2.4s; }
.auth-invoice-line:nth-child(10) { animation-delay: 2.7s; }

@keyframes breathe-line {
    0%, 100% { opacity: 0.55; transform: scaleX(1);    }
    50%       { opacity: 1;    transform: scaleX(1.04); }
}

/* Floating animation (shared with anonymous hero section) */
@keyframes auth-float {
    0%, 100% { transform: translateY(0);    }
    50%       { transform: translateY(-18px); }
}

.auth-invoice-float {
    animation: auth-float 6s ease-in-out infinite;
    display: inline-block;
}

.auth-invoice-float-2 {
    animation: auth-float 6s ease-in-out infinite;
    animation-delay: 1s;
    display: inline-block;
}

/* Decoration column layout */
.auth-decoration-col {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}

.auth-decoration-papers {
    position: relative;
    width: 300px;
    height: 380px;
}

.auth-decoration-papers .auth-invoice-float {
    position: absolute;
    top: 20px;
    left: 0;
}

.auth-decoration-papers .auth-invoice-float-2 {
    position: absolute;
    bottom: 0;
    right: 0;
}

/* Brand block shown in the decoration column */
.auth-brand-block {
    text-align: left;
    margin-bottom: 2rem;
}

.auth-brand-block img {
    max-height: 64px;
    width: auto;
}

.auth-brand-block .auth-tagline {
    font-size: 1.05rem;
    color: #6c757d;
    margin-top: 0.5rem;
    font-weight: 400;
}

/* Confirmation / info pages (Lockout, AccessDenied, ForgotPasswordConfirmation, etc.) */
.auth-info-card {
    max-width: 520px;
    margin: 0 auto;
}