/* 公共 Toast / 确认框 */
.success-toast {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 30px;
    min-width: 200px;
    max-width: 350px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 30050;
    animation: oaToastIn 0.35s ease;
    overflow: hidden;
}

@keyframes oaToastIn {
    from {
        transform: translateX(40px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.success-toast-content {
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.success-icon {
    font-size: 24px;
    font-weight: bold;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.success-toast.success .success-icon {
    background: #28a745;
    color: #fff;
}

.success-toast.info .success-icon {
    background: #17a2b8;
    color: #fff;
}

.success-toast.warning .success-icon {
    background: #ffc107;
    color: #333;
}

.success-toast.error .success-icon {
    background: #dc3545;
    color: #fff;
}

.success-message {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.success-toast.hiding {
    animation: oaToastOut 0.3s ease forwards;
}

@keyframes oaToastOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.confirm-dialog.is-open {
    display: flex;
}

.confirm-dialog-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    width: 90%;
}

.confirm-dialog-header {
    padding: 24px 24px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e9ecef;
}

.confirm-dialog-icon {
    font-size: 32px;
    line-height: 1;
}

.confirm-dialog-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.confirm-dialog-body {
    padding: 24px;
}

.confirm-dialog-message {
    margin: 0;
    font-size: 16px;
    color: #495057;
    line-height: 1.6;
    white-space: pre-line;
}

.confirm-dialog-footer {
    padding: 12px 16px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    background: #f8fafc;
    border-radius: 0 0 12px 12px;
}

.confirm-dialog-cancel,
.confirm-dialog-confirm,
.confirm-dialog-footer .btn {
    border: none;
    min-width: 72px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.confirm-dialog-cancel,
.confirm-dialog-footer .btn-secondary {
    background: #e2e8f0;
    color: #475569;
}

.confirm-dialog-cancel:hover,
.confirm-dialog-footer .btn-secondary:hover {
    background: #cbd5e1;
}

.confirm-dialog-confirm,
.confirm-dialog-footer .btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
}

.confirm-dialog-confirm:hover,
.confirm-dialog-footer .btn-danger:hover {
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.28);
}

@media (max-width: 768px) {
    .success-toast {
        right: 12px;
        left: 12px;
        bottom: 80px;
        max-width: none;
    }
}
