/* Alert Dialog Styles */

.alert-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.alert-dialog-overlay > .alert-dialog {
    position: relative;
    margin: 0;
}

.alert-dialog-overlay[data-state="closed"] {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.alert-dialog-overlay[data-state="open"] {
    opacity: 1;
    pointer-events: all;
    transition: opacity 0.2s ease;
}

.alert-dialog {
    position: relative;
    width: 100%;
    max-width: 32rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    outline: none;
    margin: auto;
}

.alert-dialog[data-state="closed"] {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.alert-dialog[data-state="open"] {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.alert-dialog-content {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
}

.alert-dialog-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

@media (min-width: 640px) {
    .alert-dialog-header {
        text-align: left;
    }
}

.alert-dialog-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--foreground);
    margin: 0;
}

.alert-dialog-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin: 0;
    line-height: 1.5;
}

.alert-dialog-footer {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .alert-dialog-footer {
        flex-direction: row;
        justify-content: flex-end;
        gap: 0.5rem;
    }
}

.alert-dialog-action,
.alert-dialog-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    height: 2.5rem;
    padding: 0 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    border: none;
}

.alert-dialog-action:focus-visible,
.alert-dialog-cancel:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

.alert-dialog-action:disabled,
.alert-dialog-cancel:disabled {
    pointer-events: none;
    opacity: 0.5;
}

.alert-dialog-action {
    background: var(--primary);
    color: var(--primary-foreground);
}

.alert-dialog-action:hover:not(:disabled) {
    background: var(--primary);
    opacity: 0.9;
}

.alert-dialog-action.destructive {
    background: var(--destructive);
    color: var(--destructive-foreground);
}

.alert-dialog-action.destructive:hover:not(:disabled) {
    background: var(--destructive);
    opacity: 0.9;
}

.alert-dialog-cancel {
    background: var(--background);
    color: var(--foreground);
    border: 1px solid var(--input);
}

.alert-dialog-cancel:hover:not(:disabled) {
    background: var(--accent);
    color: var(--accent-foreground);
}

@media (min-width: 640px) {
    .alert-dialog-cancel {
        margin-top: 0;
    }
}

/* Animation keyframes */
@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes zoom-in {
    from {
        transform: translate(-50%, -48%) scale(0.95);
    }
    to {
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes zoom-out {
    from {
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        transform: translate(-50%, -48%) scale(0.95);
    }
}

