/* QuickCode toastr overrides — load after toastr.min.css */

#toast-container {
    position: fixed;
    z-index: 110000;
    top: calc(var(--qc-navbar-offset, 56px) + 10px);
    right: 14px;
    pointer-events: none;
}

#toast-container > div,
#toast-container > .toast,
#toast-container > .toast-warning,
#toast-container > .toast-error,
#toast-container > .toast-success,
#toast-container > .toast-info {
    position: relative;
    width: min(22rem, calc(100vw - 1.75rem));
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--qc-panel-border);
    background-image: none !important;
    background-position: unset !important;
    background-repeat: no-repeat !important;
    background-color: var(--qc-color-white) !important;
    color: var(--qc-text-primary) !important;
    font-family: var(--qc-font-body);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.01em;
    opacity: 1;
    box-shadow: var(--qc-panel-shadow);
    pointer-events: auto;
}

#toast-container > div:hover {
    opacity: 1;
    box-shadow: var(--qc-panel-shadow);
    cursor: default;
}

#toast-container > .toast .toast-close-button {
    position: absolute;
    top: 0.5rem;
    right: 0.625rem;
    left: auto;
    bottom: auto;
    float: none;
    margin: 0;
    padding: 0.125rem 0.25rem;
    line-height: 1;
    font-size: 1.25rem;
    font-weight: 400;
    text-shadow: none;
    color: var(--qc-text-muted);
    opacity: 0.75;
}

#toast-container > .toast .toast-close-button:hover,
#toast-container > .toast .toast-close-button:focus {
    color: var(--qc-text-primary);
    opacity: 1;
}

#toast-container > .toast-warning {
    border-left: 4px solid var(--qc-color-warning);
}

#toast-container > .toast-error {
    border-left: 4px solid var(--qc-color-danger);
}

#toast-container > .toast-success {
    border-left: 4px solid var(--qc-color-success);
}

#toast-container > .toast-info {
    border-left: 4px solid var(--qc-color-action);
}

#toast-container > .toast .toast-message {
    display: block;
    padding: 0;
    margin: 0;
    padding-right: 0.25rem;
}

#toast-container > .toast .toast-message a,
#toast-container > .toast .toast-message label {
    color: inherit;
}

[data-theme="dark"] #toast-container > div,
[data-theme="dark"] #toast-container > .toast-warning,
[data-theme="dark"] #toast-container > .toast-error,
[data-theme="dark"] #toast-container > .toast-success,
[data-theme="dark"] #toast-container > .toast-info {
    background-color: var(--theme-card-bg, #1a1d24) !important;
    color: var(--theme-text-primary, #e8eaed) !important;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] #toast-container > .toast .toast-close-button {
    color: var(--theme-text-muted, #9aa0a6);
}

[data-theme="dark"] #toast-container > .toast .toast-close-button:hover,
[data-theme="dark"] #toast-container > .toast .toast-close-button:focus {
    color: var(--theme-text-primary, #e8eaed);
}
