﻿.cd-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    opacity: 0;
    animation: cdFadeIn 200ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.cd-dialog {
    position: relative;
    width: 95%;
    max-width: 450px;
    margin: 1.5rem;
    background-color: #1a1a1a;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 20px 25px -5px rgba(0, 0, 0, 0.8), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    transform: scale(0.95) translateY(10px);
    animation: cdDialogIn 200ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.cd-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
}

.cd-header {
    text-align: center;
    padding-bottom: 0.5rem;
}

.cd-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}

.cd-body {
    padding: 0.5rem 0;
}

.cd-message {
    margin: 0;
    color: #d1d5db;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
}

.cd-footer {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.cd-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    cursor: pointer;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.cd-btn__text {
    position: relative;
    z-index: 1;
}

.cd-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 200ms;
}

.cd-btn:hover::before {
    opacity: 1;
}

.cd-btn--primary {
    background-color: #2563eb;
    color: #ffffff;
}

    .cd-btn--primary::before {
        background-color: #1d4ed8;
    }

.cd-btn--secondary {
    background-color: #27272a;
    color: #ffffff;
}

    .cd-btn--secondary::before {
        background-color: #3f3f46;
    }

.cd-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px #1a1a1a, 0 0 0 4px #2563eb;
}

@keyframes cdFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes cdDialogIn {
    from {
        transform: scale(0.95) translateY(10px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .cd-dialog {
        width: 100%;
        margin: 1rem;
        max-width: none;
    }

    .cd-btn {
        flex: 1;
    }
}
