.dkce-element {
    font-size: inherit;
    font-family: inherit;
    font-style: inherit;
    font-weight: inherit;
}

.dkce-element-spelling-error {
    text-decoration: none;
}

.dkce-element-grammar-error {
    text-decoration: none;
}

.dkce-element-rejected-error {
    text-decoration: none;
}

.dkce-element-style-error {
    text-decoration: none;
}

.dkce-element-glossary-info {
    text-decoration: none;
}

.dkce-context-menu-active {
    border: 2px solid #5891b4;
    margin-left: -2px;
    margin-top: -2px;
    width: 389px !important;
}

.dkce-toast-message {
    width: 300px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 16px;
    position: fixed;
    opacity: 0;
    z-index: 16777271;
    right: 20px;
    border: 1px solid;
    box-shadow: rgba(0, 0, 0, 0.2) 2px 2px 7px;
    overflow: hidden;
    transition: opacity 0.2s, top 0.2s;
    cursor: pointer;
}

.dkce-toast-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.dkce-toast-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.dkce-toast-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}
.dkce-toast-info {
    color: #004085;
    background-color: #cce5ff;
    border-color: #b8daff;
}

.dkce-loader,
.dkce-loader:after,
.dkce-loader:before {
    background: #7f70ff;
    -webkit-animation: load1 1s infinite ease-in-out;
    animation: load1 1s infinite ease-in-out;
    width: 2px
}

.dkce-loader {
    color: #7f70ff;
    position: absolute;
    top: 19px;
    left: 19px;
    font-size: 2px;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation-delay: -.16s;
    animation-delay: -.16s
}

.dkce-loader:after,
.dkce-loader:before {
    position: absolute;
    top: 0;
    content: ''
}

.dkce-loader:before {
    left: -1.5em;
    -webkit-animation-delay: -.32s;
    animation-delay: -.32s
}

.dkce-loader:after {
    left: 1.5em
}

@-webkit-keyframes load1 {
    0%, 100%, 80% {
        box-shadow: 0 0;
        height: 4em
    }

    40% {
        box-shadow: 0 -2em;
        height: 5em
    }
}

@keyframes load1 {
    0%, 100%, 80% {
        box-shadow: 0 0;
        height: 4em
    }

    40% {
        box-shadow: 0 -2em;
        height: 5em
    }
}

/*
 * NOTE(jochen): The following classes are for the AI Dialogue. As soon
 * as we refacter the UI we can remove them or adapt them
 */

.btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    color: #fff;
    background-color: #0069d9;
    border-color: #0062cc;
}

.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    color: #fff;
    background-color: #5a6268;
    border-color: #545b62;
}

.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.btn-small {
    margin-left: 4px;
    font-size: 0.8rem;
    padding: .05rem;
    cursor: pointer;
    text-transform: uppercase;
}

/* Styling for the spinner overlay */
.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 3px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    transform: translate(-50%, -50%);
    pointer-events: none;
    /* Allows clicks to pass through */
    display: none;
    transform: translate(-50%, -50%);
    /* Initially hidden */
}

/* Spinner animation */
@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
        /* Start at 0 degrees */
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
        /* Rotate to 360 degrees */
    }
}
