/* verhindert Textauswahl */
*,
*::before,
*::after {
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -webkit-touch-callout: none;
    touch-action: pan-x pan-y;
    outline: none;/* entfernt Fokus-Ring */
}

/* Chrome, Edge, Safari, passwort visibility toggle hide (gibt keinen in Firefox und in den anderen wirds jz auch versteckt) */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-textfield-decoration-container {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
}

.notification span,
.markable {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
}

/* Damit nicht alle <a> elemente unterschrichen werden */
a,
a:hover,
a:visited,
a:focus,
a:active {
    text-decoration: none !important;
}

canvas#firewall-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    display: block;
}

.notification-container {
    width: fit-content;
    height: fit-content;
    position: fixed;
    top: 45px;
    right: 20px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    overflow-x: hidden;
}

.notification {
    background: linear-gradient(90deg, rgb(125, 125, 125) 0%, rgb(155, 155, 155) 35%, rgb(125, 125, 125) 100%);
    color: black;
    padding: 8px 2px 8px 0;
    width: fit-content;
    height: fit-content;
    margin: 5px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-20px);
}

.notification .message {
    white-space: pre-line;
    color: white;
    display: inline-block;
    line-height: 1.2;
    margin-right: 10px;
    margin-left: 10px;
}

.notification.success {
    background: linear-gradient(90deg, rgba(0, 161, 0, 1) 0%, rgb(0 209 0) 35%, rgba(0, 143, 0, 1) 100%);
    /*background-color: #4caf50;*/
}

.notification.warning {
    background: linear-gradient(90deg, rgb(161, 80, 0) 0%, rgb(209, 130, 0) 35%, rgb(143, 70, 0) 100%);
}

.notification.error {
    background: linear-gradient(90deg, rgba(161, 0, 0, 1) 0%, rgba(255, 0, 0, 1) 50%, rgba(143, 0, 0, 1) 100%);
    /*background-color: rgb(194, 0, 0);*/
}

.notification.show {
    animation: slideIn 0.5s forwards;
}

.notification.hide {
    animation: fadeOut 0.25s forwards;
}

.notification.Interactable:hover {
    box-shadow: 0 4px 6px rgba(127, 4, 228, 0.815);
}

.notification-close-btn {
    width: 26px;
    height: 26px;
    padding: 0;
    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 6px;

    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);

    cursor: pointer;

    font-size: 18px;
    font-weight: bold;
    line-height: 1;

    transition: all 0.2s ease;
    backdrop-filter: blur(6px);
}

.notification.success .notification-close-btn:hover,
.notification.info .notification-close-btn:hover {
    background: rgba(255, 0, 0, 0.18);
    color: white;
    transform: scale(1.08);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.25);
}

.notification.warning .notification-close-btn:hover,
.notification.error .notification-close-btn:hover {
    background: rgba(255, 255, 255, 0.65);
    color: #ff6b6b;
    transform: scale(1.08);
    box-shadow: 0 0 10px rgba(155, 155, 155, 0.35);
}

.notification .notification-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.notification .notification-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(100%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(0, 0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #555;
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0;
    background-color: #0f0;
    transition: width 0.2s;
}
