﻿.dialog-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.dialog {
    background: #ffffff;
    padding: 24px 28px;
    border-radius: 10px;
    min-width: 420px;
    max-width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.05);
}

.dialog h3 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}
.dialog-actions .btn {
    min-width: 90px;
}

.dialog label {
    font-size: 12px;
    font-weight: 500;
    color: #666;
}
.dialog label::after {
    content: "";
}
.dialog .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}
.dialog input,
.dialog select {
    width: calc(100% - 8px);
    padding: 8px 10px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fafafa;
    box-sizing: border-box;
}

.dialog input:focus,
.dialog select:focus {
    outline: none;
    border-color: #0366d6;
    background: #fff;
}

.dialog-backdrop {
    animation: fadeIn 120ms ease-out;
}

.dialog {
    animation: popIn 120ms ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popIn {
    from {
        transform: translateY(8px) scale(0.98);
        opacity: 0;
    }

    to {
        transform: none;
        opacity: 1;
    }
}

.dialog-backdrop {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(1px);
}

.dialog-body {
    padding: 0 4px;
}