/*********************************************/
/*              GENERAL CSS                  "/
/*********************************************/

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #343a40;
    background: #ffffff;
}

a, .btn-link {
    color: #006bb7;
    outline: none;
    text-decoration: none !important;
}

.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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4w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or-error-boundary::after {
        content: "An error has occurred."
    }

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


.padding {
    padding: 3rem
}

.box.box-warning {
    border-top-color: #f39c12;
}

.box {
    position: relative;
    border-radius: 3px;
    background: #ffffff;
    border-top: 3px solid #d2d6de;
    margin-bottom: 20px;
    width: 100%;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.box-header.with-border {
    border-bottom: 1px solid #f4f4f4
}

.box-header.with-border {
    border-bottom: 1px solid #f4f4f4;
}

.box-header {
    color: #444;
    display: block;
    padding: 10px;
    position: relative;
}

    .box-header:before, .box-body:before, .box-footer:before, .box-header:after, .box-body:after, .box-footer:after {
        content: " ";
        display: table;
    }

.box-header {
    color: #444;
    display: block;
    padding: 10px;
    position: relative
}

    .box-header > .fa, .box-header > .glyphicon, .box-header > .ion, .box-header .box-title {
        display: inline-block;
        font-size: 18px;
        margin: 0;
        line-height: 1;
    }

    .box-header > .box-tools {
        position: absolute;
        right: 10px;
        top: 5px;
    }

        .box-header > .box-tools [data-toggle="tooltip"] {
            position: relative;
        }

.bg-yellow, .callout.callout-warning, .alert-warning, .label-warning, .modal-warning .modal-body {
    background-color: #f39c12 !important;
}

.bg-yellow {
    color: #fff !important;
}

.btn {
    border-radius: 3px;
    -webkit-box-shadow: none;
    box-shadow: none;
    border: 1px solid transparent;
}

.btn-box-tool {
    padding: 5px;
    font-size: 12px;
    background: transparent;
    color: #97a0b3;
}

.direct-chat .box-body {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    position: relative;
    overflow-x: hidden;
    padding: 0;
}

.box-body {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
    padding: 10px;
}

    .box-header:before, .box-body:before, .box-footer:before, .box-header:after, .box-body:after, .box-footer:after {
        content: " ";
        display: table;
    }

.top-row {
    position: relative;
    z-index: 5000; /* higher than overlays if needed */
}

.row-deleted {
    background-color: #eaf3fb !important;
}

/* Stili per il grafico */
.chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

    .chart-container canvas {
        max-width: 100%;
        max-height: 100%;
    }

.chart-center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px; /* or your preferred height */
    width: 100%;
}

/* Floating AI button */
.ai-support-fab {
    position: fixed;
    right: 32px;
    bottom: 32px;
    width: 56px;
    height: 56px;
    background: #1B5086;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2000;
    transition: background 0.2s;
}

    .ai-support-fab:hover {
        background: #155079;
    }

/* Popup overlay */
.ai-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1051;
}
    .ai-popup-overlay[style*="display:none"] {
        pointer-events: none !important;
    }

/* Popup card */
.ai-popup {
    position: fixed;
    right: 40px;
    bottom: 100px;
    width: 550px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    z-index: 1052;
    padding: 0;
    overflow: hidden;
}

.ai-popup-header {
    background: #1B5086;
    color: #fff;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-popup-body {
    padding: 16px;
}

.ai-support-fab:hover {
    background: #155079;
    box-shadow: 0 4px 16px rgba(27,80,134,0.2);
}

/* Notification Bell Styles */
.report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1.5rem 0.5rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e0e0e0;
    min-height: 56px;
    position: relative;
}

.report-bell-container {
    display: flex;
    align-items: center;
    position: relative;
}

.report-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0.5rem 1rem;
}

    .report-dashboard-header .notification-bell {
        background: transparent !important;
        box-shadow: none !important;
    }

.notification-bell {
    position: relative;
    display: inline-block;
    margin-left: 24px;
    cursor: pointer;
    font-size: 1.5rem;
    color: #1B5086;
    vertical-align: middle;
}

    .notification-bell .bell-icon {
        font-size: 1.8rem;
        color: #1B5086;
        transition: color 0.2s;
    }

    .notification-bell:hover .bell-icon {
        color: #155079;
    }

    .notification-bell .badge {
        position: absolute;
        top: 0;
        right: -6px;
        background: #2196f3; /* blue variant */
        color: #fff;
        border-radius: 50%;
        padding: 2px 7px;
        font-size: 0.75rem;
        font-weight: bold;
        box-shadow: 0 1px 4px rgba(0,0,0,0.15);
        z-index: 2;
    }

.notification-bell-container {
    position: relative;
    display: inline-block;
}

.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 42, 60, 0.35);
    z-index: 2000;
}

.notification-dropdown {
    position: absolute;
    top: 36px; /* or 100% if you want it just below the bell */
    right: 0;
    min-width: 320px;
    max-width: 400px;
    max-height: 350px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(27,80,134,0.12);
    overflow-y: auto;
    padding: 0.5rem 0;
    z-index: 2001;
}

.notification-item {
    padding: 0.75rem 1rem 0.5rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.98rem;
    color: #333;
    background: #fff;
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
}

    .notification-item:last-child {
        border-bottom: none;
    }

    .notification-item.unread {
        background: #eaf3fb;
        font-weight: 600;
    }

    .notification-item:hover {
        background: #f5faff;
    }

.notification-date {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-top: 2px;
    font-weight: normal;
}
.user-bell-row {
    display: flex;
    align-items: center;
    width: 100%;
}
.username {
    font-weight: 500;
    font-size: 1.1rem;
}

.notification-banner {
    background: #e6f4ff;
    color: #155084;
    padding: 0.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    border-bottom: 1px solid #b6e0fe;
    z-index: 4000;
    font-size: 1rem;
    min-height: unset;
    box-shadow: 0 2px 8px rgba(21, 80, 132, 0.04);
    max-height: calc(3 * 36px + 0.4rem); /* 3 items + gaps */
    overflow-y: auto;
    transition: max-height 0.2s;
}

.notification-banner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0f8ff;
    padding: 0.2rem 0.75rem;
    border-radius: 4px;
    font-size: 0.98rem;
    position: relative;
    border: 1px solid #b6e0fe;
    box-shadow: 0 1px 2px rgba(21, 80, 132, 0.05);
    min-height: 28px;
    transition: background 0.2s;
}

    .notification-banner-item .notification-date {
        margin-left: 1rem;
        font-size: 0.85rem;
        color: #3a7ca5;
    }

.notification-close {
    background: transparent;
    border: none;
    color: #3a7ca5;
    font-size: 1.1rem;
    margin-left: 1rem;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    line-height: 1;
    padding: 0 0.25rem;
    border-radius: 50%;
}

    .notification-close:hover {
        color: #fff;
        background: #3a7ca5;
    }
