﻿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;
}

/* Ant Design Dropdown Override */
.custom-logout-dropdown .ant-dropdown-menu {
    background: #F4F4F4 !important;
}

.custom-logout-dropdown .ant-dropdown-menu-item:hover {
    background-color: #1890ff !important;
    color: #FFFFFF !important;
    font-weight: 700;
    border-radius: 3px !important;
}

.anticon {
    color: #4392BB !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #F4F4F4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #4392BB;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #367a9e;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #4392BB #F4F4F4;
}

/* Override Ant Design Modal Header */
.ant-modal-header {
    padding: 10px 10px !important;
    background: #F2F4F8 !important;
    border-radius: 5px !important;
    display: flex;
    justify-content: space-between;
}

/* Error mode styles */
.confirm-dialog-modal.error-mode .ant-modal-header {
    background: #FF3B30 !important;
}


.ant-modal-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #4392BB !important;
}

.ant-modal-close {
    top: 0 !important;
    right: 0 !important;
    height: 38px !important;
    width: 38px !important;
    background: #F2F4F8 !important;
    border-radius: 0 5px 0 0 !important;
}

.ant-modal-close-x {
    height: 38px !important;
    width: 38px !important;
    line-height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.ant-modal-content {
    border-radius: 10px !important;
    background-color: #FFFFFF !important;
    display: flex;
    flex-direction: column;
}

/* ===== CUSTOM NOTIFICATION STYLES ===== */

/* Success Notification */
.notification-success.ant-notification-notice {
    background: #5a991a !important;
    border-radius: 8px !important;
}

.notification-success .ant-notification-notice-message,
.notification-success .ant-notification-notice-description,
.notification-success .ant-notification-notice-close {
    color: #fff !important;
}

.notification-success .anticon {
    color: #fff !important;
}

/* Error Notification */
.notification-error.ant-notification-notice {
    background: #FFFFFF !important;
    border-radius: 8px !important;
    border: 1px solid #e50000 !important;
}

.notification-error .ant-notification-notice-message,
.notification-error .ant-notification-notice-description,
.notification-error .ant-notification-notice-close {
    color: #e50000 !important;
}

.notification-error .anticon {
    color: #e50000 !important;
}

/* Warning Notification */
.notification-warning.ant-notification-notice {
    background: #faad14 !important;
    border-radius: 8px !important;
}

.notification-warning .ant-notification-notice-message,
.notification-warning .ant-notification-notice-description,
.notification-warning .ant-notification-notice-close {
    color: #fff !important;
}

.notification-warning .anticon {
    color: #fff !important;
}

/* Info Notification */
.notification-info.ant-notification-notice {
    background: #1890ff !important;
    border-radius: 8px !important;
}

.notification-info .ant-notification-notice-message,
.notification-info .ant-notification-notice-description,
.notification-info .ant-notification-notice-close {
    color: #fff !important;
}

.notification-info .anticon {
    color: #fff !important;
}

/* ===== CONFIRM DIALOG MODAL (Specific to ConfirmDialog component) ===== */
.confirm-dialog-modal .ant-modal-header {
    background: #052c57 !important;
    border-bottom: none !important;
    padding: 10px 10px !important;
    border-radius: 5px 5px 0 0 !important;
}

.confirm-dialog-modal .ant-modal-title {
    color: #FFFFFF !important;
    font-weight: 500 !important;
    font-size: 16px !important;
}

.confirm-dialog-modal .ant-modal-close {
    background: transparent !important;
}

.confirm-dialog-modal .ant-modal-close-x {
    color: #FFFFFF !important;
}

.confirm-dialog-modal .ant-modal-close-x .anticon-close {
    color: #FFFFFF !important;
}

.confirm-dialog-modal .ant-modal-close:hover .ant-modal-close-x {
    opacity: 0.8;
}

.confirm-dialog-modal .ant-modal-body {
    padding: 30px 24px !important;
    text-align: center;
}

/* OK button*/
.confirm-dialog-modal .btn-dialog-confirm {
    min-width: 80px !important;
    background-color: #4392BB !important;
    border-color: #4392BB !important;
    color: #FFFFFF !important;
    border-radius: 3px !important;
}

.confirm-dialog-modal .btn-dialog-confirm:hover {
    background-color: #367a9e !important;
    border-color: #367a9e !important;
}

/* Cancel button */
.confirm-dialog-modal .btn-dialog-cancel {
    min-width: 80px !important;
    background-color: #FFFFFF !important;
    border: 1px solid #FF3B30 !important;
    color: #FF3B30 !important;
    border-radius: 3px !important;
}

.confirm-dialog-modal .btn-dialog-cancel:hover {
    background-color: #FFF5F5 !important;
    border-color: #FF3B30 !important;
    color: #FF3B30 !important;
}

/* Custom Width Dropdown */

.custom-width-dropdown .ant-dropdown-menu-item:hover {
    background-color: #1890ff !important;
    color: #FFFFFF;
    font-weight: 700;
    border-radius: 3px !important;
    width: 100% !important;
}

/* ===== ERROR POPOVER STYLES ===== */
.error-popover .ant-popover-inner {
    background: linear-gradient(135deg, #ff4d4f 0%, #cf1322 100%) !important;
    border-radius: 8px !important;
    box-shadow: 0 6px 16px rgba(255, 77, 79, 0.4) !important;
    border: none !important;
}

.error-popover .ant-popover-inner-content {
    color: #FFFFFF !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    padding: 10px 14px !important;
}

.error-popover .ant-popover-arrow-content {
    background: linear-gradient(135deg, #ff4d4f 0%, #cf1322 100%) !important;
}

.error-popover .ant-popover-arrow::before {
    background: #ff4d4f !important;
}