.dnext-align-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dnext-ee-admin-header-title {
    padding: 12px 16px;
    border-bottom: 1px solid #E5E7EB;

    h1 {
        color: #222c39;
        font-size: 12px;
        font-weight: 500;
        line-height: 18px;
        padding: 0;
    }
}

.dnxte-arrow-up {
    &.rotated {
        transform: rotate(180deg);
        transition: transform 0.3s ease;
    }
}

.dnext-ee-admin-header-sub-title {
    padding: 10px 16px;
    border-bottom: 1px solid #E5E7EB;

    p {
        color: #222c39;
        font-size: 12px;
        font-weight: 500;
        line-height: 14px;
        margin: 0;
    }
}

.dnext-ee-admin-content {
    padding: 24px 17px;
    position: relative;
}

.dnext-ee-row {
    &+& {
        margin-top: 20px;
    }

    label {
        color: #586892;
        font-size: 12px;
        font-weight: 500;
        line-height: 16px;
    }
}

.dnext-ee-wrapper {
    border-radius: 2px 2px 0 0;
    border: 1px solid #e5e7eb;
    background: #fff;
    position: relative;

    .toggle {
        cursor: pointer;
        display: inline-flex;
        align-items: center;

        >span {
            min-width: 123px;
        }
    }

    .toggle-switch {
        display: inline-block;
        background: #ccc;
        border-radius: 16px;
        width: 44px;
        height: 22px;
        position: relative;
        vertical-align: middle;
        transition: background 0.25s;

        &::before,
        &::after {
            content: "";
        }

        &::before {
            display: block;
            background: #fff;
            border-radius: 50%;
            box-shadow: none;
            width: 16px;
            height: 16px;
            position: absolute;
            top: 3px;
            left: 4px;
            transition: left 0.25s;
        }
    }

    .toggle-checkbox {
        position: absolute;
        visibility: hidden;

        &:checked+.toggle-switch {
            background: #7a5af8;

            &::before {
                left: 24px;
            }
        }
    }

    .dnext-ee-btn {
        display: inline-flex;
        height: 32px;
        padding: 8px 12px;
        justify-content: center;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
        color: #fff;
        text-align: center;
        font-size: 12px;
        font-weight: 600;
        line-height: 14px;
        border-radius: 4px;
        background: #7A5AF8;
        position: absolute;
        bottom: -57px;
        left: 0;
        border: 0;

        &:hover {
            background: #6B55D3;
        }

        &:disabled {
            background: #7A5AF8 !important;
        }
    }

    span.dnxte-arrow-up-icons {
        display: block;
        margin-left: auto;

        img {
            cursor: pointer;

            &.dnxte-angle-down.dnxte-control-icon {
                transform: rotate(180deg);
            }
        }
    }

	&.dnext-ee-hide-adminbar {
		.toggle {
			> span {
				min-width: 200px;
			}

			.dnxte-tooltip-container {
				margin-right: 12px;
			}
		}
	}
}

.dnxte-tooltip-container {
    position: relative;
    display: inline-block;
    cursor: help;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    text-align: center;
    line-height: 16px;
    margin-right: 100px;
    box-sizing: border-box;

    .tooltip-text {
        visibility: hidden;
        background-color: black;
        color: #fff;
        text-align: center;
        padding: 6px 10px;
        border-radius: 4px;
        position: absolute;
        z-index: 10;
        bottom: 1px;
        left: 50%;
        transform: translate(-50%, -10%);
        opacity: 0;
        font-size: 13px;
        width: 200px;
        box-sizing: border-box;
        transition: all 0.15s ease;
        pointer-events: none;

        &::before {
            right: 0;
            display: block;
            position: absolute;
            bottom: 1px;
            left: 50%;
            width: 0;
            height: 0;
            content: "";
            border: solid;
            border-width: 10px 10px 0 10px;
            border-color: transparent;
            transform: translate(-50%, 100%);
            border-top-color: #000;
            box-sizing: border-box;
        }
    }

    &:hover {
        .tooltip-text {
            visibility: visible;
            opacity: 1;
            transform: translate(-50%, -45%);
            width: 200px;
            height: auto;
        }
    }
}

.dnxte-toast {
    position: fixed;
    top: 40px;
    right: 20px;
    z-index: 99999;
    background-color: #23282d;
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;

    &.show {
        opacity: 0.95;
        transform: translateY(0);
        pointer-events: auto;
    }

    &.error {
        background-color: #d63638;
    }

    &.success {
        background-color: #46b450;
    }
}