:root {
    --helmSpacing: .25rem;
    --helmNormalIconColor: #e1e1e160;
    --helmInfoIconColor: #e7f0ff;
    --helmSuccessIconColor: #ecfdf5;
    --helmWarningIconColor: #fff7ed;
    --helmErrorIconColor: #fef2f2;
    --helmCustomIconColor: #f3f4f6;
}

.helmToast--normal .helmToast-icon { background-color: var(--helmNormalIconColor); color: #2b2b2b; }
.helmToast--info .helmToast-icon { background-color: var(--helmInfoIconColor); color: #1d4ed8; }
.helmToast--success .helmToast-icon { background-color: var(--helmSuccessIconColor); color: #047857; }
.helmToast--warning .helmToast-icon { background-color: var(--helmWarningIconColor); color: #c2410c; }
.helmToast--error .helmToast-icon { background-color: var(--helmErrorIconColor); color: #b91c1c; }
.helmToast--custom .helmToast-icon { background-color: var(--helmCustomIconColor); color: #4b5563; }


.helm-container {
    position: fixed;
    display: flex;
    flex-direction: column;
    gap: calc(var(--helmSpacing) * 2);
    pointer-events: none;
}

.helm-top-right { right: 20px; top: 20px; align-items: flex-end; }
.helm-top-left { left: 20px; top: 20px; align-items: flex-start; }
.helm-bottom-right { right: 20px; bottom: 20px; align-items: flex-end; }
.helm-bottom-left { left: 20px; bottom: 20px; align-items: flex-start; }

.helmToast {
    max-width: 320px;
    width: 100%;
    padding: calc(var(--helmSpacing) * 4);
}

.helmToast-description {
    font-size: 12px;
    font-weight: 300;
}


.helmToast {
    width: 320px;
    padding: calc(var(--helmSpacing) * 3) calc(var(--helmSpacing) * 3);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: calc(var(--helmSpacing) * 4);
    border-radius: 10px;
    background-color: #fff;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    transform: translateY(8px);
    opacity: 0;
    transition: transform .18s ease, opacity .18s ease;
    pointer-events: auto; /* clickable */
}

.helmToast--show {
    transform: translateY(0);
    opacity: 1;
}

.helmToast--hide {
    opacity: 0;
    transform: translateY(8px);
}

.helmToast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: calc(var(--helmSpacing) * 10);
    width: calc(var(--helmSpacing) * 12);
    border-radius: calc(var(--helmSpacing) * 2);
    background-color: var(--helmNormalIconColor);
}


.helmToast-icon svg {
    width: calc(var(--helmSpacing) * 6);
    height: calc(var(--helmSpacing) * 6);
}

.helmToast-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: calc(var(--helmSpacing) * 8);
    width: calc(var(--helmSpacing) * 8);
    transition: background-color 0.1s ease;
}

.helmToast-close:hover {
    background-color: var(--helmNormalIconColor);
    border-radius: calc(var(--helmSpacing) * 2);
    cursor: pointer;
}

.helmToast-close svg {
    height: calc(var(--helmSpacing) * 6);
    width: calc(var(--helmSpacing) * 6);
}

.helmToast-content {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(var(--helmSpacing) * 3);
}

.helmToast-text {
    display: flex;
    flex-direction: column;
    gap: calc(var(--helmSpacing) * 0.5);
}

.helmToast-header {
    font-size: 16px;
    font-weight: 400;
    color: #111827;
}

.helmToast-description {
    font-size: 13px;
    line-height: 1.4;
    color: #4b5563;
}

/* Alert Dialog Styles */
.helm-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.helm-alert-overlay--show {
    opacity: 1;
    pointer-events: auto;
}

.helmAlert {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.helmAlert--show {
    transform: scale(1);
    opacity: 1;
}

.helmAlert--hide {
    transform: scale(0.95);
    opacity: 0;
}

.helmAlert-content {
    padding: calc(var(--helmSpacing) * 6);
    display: flex;
    flex-direction: column;
    gap: calc(var(--helmSpacing) * 4);
}

.helmAlert-header {
    font-size: 20px;
    font-weight: 500;
    color: #111827;
    margin: 0;
}

.helmAlert-text {
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
    margin: 0;
}

.helmAlert-actions {
    display: flex;
    justify-content: flex-end;
    gap: calc(var(--helmSpacing) * 2);
    margin-top: calc(var(--helmSpacing) * 2);
}

.helmAlert-button {
    padding: calc(var(--helmSpacing) * 2) calc(var(--helmSpacing) * 4);
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
    font-family: inherit;
}

.helmAlert-button--primary {
    background-color: #111827;
    color: #fff;
}

.helmAlert-button--primary:hover {
    background-color: #1f2937;
}

.helmAlert-button--primary:active {
    transform: scale(0.98);
}

.helmAlert-button--secondary {
    background-color: #f3f4f6;
    color: #111827;
}

.helmAlert-button--secondary:hover {
    background-color: #e5e7eb;
}

.helmAlert-button--secondary:active {
    transform: scale(0.98);
}

.helmAlert-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}