/* confirm_dialog.css — confirmDialog 共通ダイアログ (A6)
 * テーマトークン (tokens.css) に依存 */

/* Overlay */
.cd-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    animation: cd-fade-in 0.15s ease-out;
}

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

/* Dialog box */
.cd-dialog {
    background: var(--color-bg-elevated, #1e293b);
    border: 1px solid var(--color-border-light, rgba(255, 255, 255, 0.12));
    border-radius: 12px;
    padding: 24px;
    min-width: 320px;
    max-width: 440px;
    width: 90vw;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: cd-slide-up 0.15s ease-out;
}

@keyframes cd-slide-up {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Title */
.cd-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-primary, #f1f5f9);
    line-height: 1.4;
}

/* Message */
.cd-message {
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--color-text-secondary, #94a3b8);
    line-height: 1.6;
}

/* Button row */
.cd-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Button base */
.cd-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    line-height: 1.4;
}

.cd-btn:focus-visible {
    box-shadow: 0 0 0 2px var(--color-accent-primary, #60a5fa);
}

/* Cancel button */
.cd-btn-cancel {
    background: var(--color-bg-surface-hover, #1a2332);
    color: var(--color-text-secondary, #94a3b8);
}

.cd-btn-cancel:hover {
    background: var(--color-bg-surface, #111827);
    color: var(--color-text-primary, #f1f5f9);
}

/* Confirm button (normal) */
.cd-btn-confirm {
    background: var(--color-accent-primary, #60a5fa);
    color: #fff;
}

.cd-btn-confirm:hover {
    background: var(--color-accent-hover, #3b82f6);
}

/* Confirm button (danger) */
.cd-btn-danger {
    background: var(--color-danger, #ef4444);
}

.cd-btn-danger:hover {
    background: #dc2626;
}
