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: 1.1rem;
}

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;
}

.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;
}

/* ===== File Upload Area - Global ===== */
.file-upload-area {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: linear-gradient(135deg, #fafbfc 0%, #f0f4f8 100%);
    overflow: hidden;
}

.file-upload-area:hover {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
}

.file-upload-area .file-input,
.file-upload-area input[type="file"] {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 10 !important;
}

.upload-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    pointer-events: none;
}

.upload-icon {
    font-size: 3.5rem;
    color: #10b981;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(16, 185, 129, 0.2));
}

.file-upload-area:hover .upload-icon {
    transform: scale(1.1);
}

.upload-content p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.file-upload-area:hover .upload-content p {
    color: #059669;
}

.upload-content small {
    font-size: 0.875rem;
    color: #9ca3af;
    background: rgba(156, 163, 175, 0.1);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
}

.selected-file {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    border-radius: 12px;
}

.selected-file i {
    font-size: 1.5rem;
    color: #10b981;
}

.selected-file span {
    font-weight: 600;
    color: #065f46;
}

/* ===== Global Search Box Styles ===== */
.search-box {
    position: relative !important;
    flex: 1;
    max-width: 300px;
    display: flex;
    align-items: center;
}

.search-box > i.bi-search,
.search-box > i.bi,
.search-box i.bi-search,
.search-box i.bi {
    position: absolute !important;
    right: 12px !important; /* RTL: icon on the right side */
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #9ca3af !important;
    font-size: 1rem !important;
    pointer-events: none !important;
    z-index: 2 !important;
    display: inline-block !important;
}

/* For LTR layouts - icon on the left */
[dir="ltr"] .search-box > i.bi-search,
[dir="ltr"] .search-box > i.bi,
[dir="ltr"] .search-box i.bi-search,
[dir="ltr"] .search-box i.bi {
    left: 12px !important;
    right: auto !important;
}

.search-box > input,
.search-box > input.form-control,
.search-box input,
.search-box input.form-control {
    width: 100% !important;
    padding-block: 0.625rem !important;
    padding-right: 2.5rem !important; /* RTL: padding on the right for icon */
    padding-left: 1rem !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    font-size: 0.875rem !important;
    background: #fff !important;
    transition: all 0.2s ease !important;
}

/* For LTR layouts - padding on the left for icon */
[dir="ltr"] .search-box > input,
[dir="ltr"] .search-box > input.form-control,
[dir="ltr"] .search-box input,
[dir="ltr"] .search-box input.form-control {
    padding-left: 2.5rem !important;
    padding-right: 1rem !important;
}

.search-box > input:focus,
.search-box > input.form-control:focus,
.search-box input:focus,
.search-box input.form-control:focus {
    outline: none !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

.search-box > input::placeholder,
.search-box > input.form-control::placeholder,
.search-box input::placeholder,
.search-box input.form-control::placeholder {
    color: #9ca3af !important;
}

/* Clear button inside search box */
.search-box .btn-clear {
    position: absolute !important;
    inset-inline-end: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    padding: 0.25rem !important;
    cursor: pointer !important;
    color: #9ca3af !important;
    font-size: 0.875rem !important;
    z-index: 3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
}

.search-box .btn-clear:hover {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

/* Adjust input padding when clear button is visible */
.search-box:has(.btn-clear) input,
.search-box:has(.btn-clear) input.form-control {
    padding-inline-end: 2.5rem !important;
}

/* ===== Global Filter Tabs Styles ===== */
.filter-tabs {
    display: flex !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
}

.filter-tab {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.5rem 1rem !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #374151 !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    line-height: 1.5 !important;
}

.filter-tab:hover {
    border-color: #2563eb !important;
    color: #2563eb !important;
    background: #eff6ff !important;
}

.filter-tab.active {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #fff !important;
}

.filter-tab.active:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #fff !important;
}

.filter-tab i {
    font-size: 1rem !important;
}