﻿:root {
    --dlg-background: rgba(255, 255, 255, 0.98);
    --dlg-text-primary: #333;
    --dlg-text-secondary: #666;
    --dlg-content-bg: white;
    --dlg-button-bg: #1a1a1a;
    --dlg-button-hover: #45a049;
    --dlg-checkmark: #2ecc71;
}

.dlg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dlg-background);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: dlg-fadeIn 0.3s ease-in;
}

.dlg-content {
    text-align: center;
    padding: 2rem;
    background: var(--dlg-content-bg);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    max-width: 400px;
    width: 90%;
}

.dlg-title {
    color: var(--dlg-checkmark);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: var(--dlg-text-primary);
}

.dlg-message {
    color: var(--dlg-text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.dlg-button {
    background-color: var(--dlg-button-bg);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkmark__circle {
    stroke: var(--dlg-checkmark);
}

.checkmark__check {
    stroke: var(--dlg-checkmark);
}

/* Updated */

.dlg-icon {
    margin: 0 auto 1.5rem;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dlg-checkmark {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: var(--dlg-checkmark-stroke, #2ecc71);
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px var(--dlg-checkmark, #2ecc71);
    animation: dlg-fillCheckmark 0.4s ease-in-out 0.8s forwards, dlg-scaleCheckmark 0.3s ease-in-out 0.9s both;
}

.dlg-checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    animation: dlg-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.dlg-checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: dlg-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes dlg-fillCheckmark {
    100% {
        box-shadow: inset 0px 0px 0px 30px var(--dlg-checkmark, #2ecc71);
    }
}

@keyframes dlg-scaleCheckmark {
    0%, 100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}
